@superblocksteam/vite-plugin-file-sync 2.0.18-next.2 → 2.0.18-next.21

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 (215) hide show
  1. package/dist/ai-service/app-interface/source-tracker.d.ts +9 -2
  2. package/dist/ai-service/app-interface/source-tracker.d.ts.map +1 -1
  3. package/dist/ai-service/app-interface/source-tracker.js +22 -4
  4. package/dist/ai-service/app-interface/source-tracker.js.map +1 -1
  5. package/dist/ai-service/artifacts/bolt.js +4 -4
  6. package/dist/ai-service/artifacts/bolt.js.map +1 -1
  7. package/dist/ai-service/context/app-context.d.ts +37 -0
  8. package/dist/ai-service/context/app-context.d.ts.map +1 -0
  9. package/dist/ai-service/context/app-context.js +205 -0
  10. package/dist/ai-service/context/app-context.js.map +1 -0
  11. package/dist/ai-service/evals/content-matchers/index.d.ts +1 -0
  12. package/dist/ai-service/evals/content-matchers/index.d.ts.map +1 -1
  13. package/dist/ai-service/evals/content-matchers/index.js +8 -0
  14. package/dist/ai-service/evals/content-matchers/index.js.map +1 -1
  15. package/dist/ai-service/evals/helpers/eval-scoring.d.ts +23 -4
  16. package/dist/ai-service/evals/helpers/eval-scoring.d.ts.map +1 -1
  17. package/dist/ai-service/evals/helpers/eval-scoring.js +211 -34
  18. package/dist/ai-service/evals/helpers/eval-scoring.js.map +1 -1
  19. package/dist/ai-service/evals/helpers/index.d.ts +20 -1
  20. package/dist/ai-service/evals/helpers/index.d.ts.map +1 -1
  21. package/dist/ai-service/evals/helpers/index.js +108 -2
  22. package/dist/ai-service/evals/helpers/index.js.map +1 -1
  23. package/dist/ai-service/evals/llm-provider.d.ts +2 -0
  24. package/dist/ai-service/evals/llm-provider.d.ts.map +1 -0
  25. package/dist/ai-service/evals/llm-provider.js +9 -0
  26. package/dist/ai-service/evals/llm-provider.js.map +1 -0
  27. package/dist/ai-service/index.d.ts +10 -1
  28. package/dist/ai-service/index.d.ts.map +1 -1
  29. package/dist/ai-service/index.js +80 -11
  30. package/dist/ai-service/index.js.map +1 -1
  31. package/dist/ai-service/integrations/from-prompt-context.js +1 -1
  32. package/dist/ai-service/integrations/from-prompt-context.js.map +1 -1
  33. package/dist/ai-service/integrations/store.d.ts +3 -5
  34. package/dist/ai-service/integrations/store.d.ts.map +1 -1
  35. package/dist/ai-service/integrations/store.js +5 -13
  36. package/dist/ai-service/integrations/store.js.map +1 -1
  37. package/dist/ai-service/llm/impl/anthropic.d.ts +3 -0
  38. package/dist/ai-service/llm/impl/anthropic.d.ts.map +1 -0
  39. package/dist/ai-service/llm/impl/anthropic.js +42 -0
  40. package/dist/ai-service/llm/impl/anthropic.js.map +1 -0
  41. package/dist/ai-service/llm/provider.d.ts +3 -0
  42. package/dist/ai-service/llm/provider.d.ts.map +1 -0
  43. package/dist/ai-service/llm/provider.js +30 -0
  44. package/dist/ai-service/llm/provider.js.map +1 -0
  45. package/dist/ai-service/llm/types.d.ts +15 -0
  46. package/dist/ai-service/llm/types.d.ts.map +1 -0
  47. package/dist/ai-service/llm/types.js +2 -0
  48. package/dist/ai-service/llm/types.js.map +1 -0
  49. package/dist/ai-service/llm/utils.d.ts +9 -0
  50. package/dist/ai-service/llm/utils.d.ts.map +1 -0
  51. package/dist/ai-service/llm/utils.js +49 -0
  52. package/dist/ai-service/llm/utils.js.map +1 -0
  53. package/dist/ai-service/prompt-builder-service/builders/code-generation.d.ts.map +1 -1
  54. package/dist/ai-service/prompt-builder-service/builders/code-generation.js +95 -38
  55. package/dist/ai-service/prompt-builder-service/builders/code-generation.js.map +1 -1
  56. package/dist/ai-service/prompt-builder-service/builders/incremental-edits.d.ts +13 -0
  57. package/dist/ai-service/prompt-builder-service/builders/incremental-edits.d.ts.map +1 -0
  58. package/dist/ai-service/prompt-builder-service/builders/incremental-edits.js +71 -0
  59. package/dist/ai-service/prompt-builder-service/builders/incremental-edits.js.map +1 -0
  60. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts +24 -0
  61. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts.map +1 -0
  62. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +117 -0
  63. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -0
  64. package/dist/ai-service/prompt-builder-service/constants/superblocks-platform-fragments.d.ts +2 -2
  65. package/dist/ai-service/prompt-builder-service/constants/superblocks-platform-fragments.d.ts.map +1 -1
  66. package/dist/ai-service/prompt-builder-service/constants/superblocks-platform-fragments.js +56 -29
  67. package/dist/ai-service/prompt-builder-service/constants/superblocks-platform-fragments.js.map +1 -1
  68. package/dist/ai-service/prompt-builder-service/fragment-generators/base-fragment.d.ts +3 -1
  69. package/dist/ai-service/prompt-builder-service/fragment-generators/base-fragment.d.ts.map +1 -1
  70. package/dist/ai-service/prompt-builder-service/fragment-generators/base-fragment.js +36 -3
  71. package/dist/ai-service/prompt-builder-service/fragment-generators/base-fragment.js.map +1 -1
  72. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ButtonPropsDocs.d.ts +1 -1
  73. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ButtonPropsDocs.d.ts.map +1 -1
  74. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ButtonPropsDocs.js +2 -2
  75. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ButtonPropsDocs.js.map +1 -1
  76. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/CheckboxPropsDocs.js +1 -1
  77. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ColumnPropsDocs.d.ts +1 -1
  78. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ColumnPropsDocs.d.ts.map +1 -1
  79. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ColumnPropsDocs.js +2 -2
  80. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ColumnPropsDocs.js.map +1 -1
  81. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ContainerPropsDocs.d.ts +1 -1
  82. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ContainerPropsDocs.d.ts.map +1 -1
  83. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ContainerPropsDocs.js +2 -2
  84. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ContainerPropsDocs.js.map +1 -1
  85. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/DatePickerPropsDocs.d.ts +1 -1
  86. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/DatePickerPropsDocs.d.ts.map +1 -1
  87. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/DatePickerPropsDocs.js +2 -2
  88. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/DatePickerPropsDocs.js.map +1 -1
  89. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/DropdownPropsDocs.js +1 -1
  90. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/IconPropsDocs.js +1 -1
  91. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ImagePropsDocs.d.ts +1 -1
  92. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ImagePropsDocs.d.ts.map +1 -1
  93. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ImagePropsDocs.js +2 -2
  94. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ImagePropsDocs.js.map +1 -1
  95. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/InputPropsDocs.d.ts +1 -1
  96. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/InputPropsDocs.d.ts.map +1 -1
  97. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/InputPropsDocs.js +2 -2
  98. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/InputPropsDocs.js.map +1 -1
  99. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ModalPropsDocs.d.ts +1 -1
  100. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ModalPropsDocs.d.ts.map +1 -1
  101. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ModalPropsDocs.js +2 -2
  102. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/ModalPropsDocs.js.map +1 -1
  103. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/PagePropsDocs.js +1 -1
  104. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SectionPropsDocs.js +1 -1
  105. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SlideoutPropsDocs.d.ts +1 -1
  106. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SlideoutPropsDocs.d.ts.map +1 -1
  107. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SlideoutPropsDocs.js +2 -2
  108. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SlideoutPropsDocs.js.map +1 -1
  109. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/SwitchPropsDocs.js +1 -1
  110. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TablePropsDocs.d.ts +1 -1
  111. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TablePropsDocs.d.ts.map +1 -1
  112. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TablePropsDocs.js +2 -2
  113. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TablePropsDocs.js.map +1 -1
  114. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TextPropsDocs.d.ts +1 -1
  115. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TextPropsDocs.d.ts.map +1 -1
  116. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TextPropsDocs.js +2 -2
  117. package/dist/ai-service/prompt-builder-service/static-fragments/library-components/TextPropsDocs.js.map +1 -1
  118. package/dist/ai-service/prompt-builder-service/static-fragments/library-typedefs/Dim.js +1 -1
  119. package/dist/ai-service/prompt-builder-service/static-fragments/library-typedefs/EventFlow.js +1 -1
  120. package/dist/ai-service/prompt-builder-service/static-fragments/library-typedefs/TextStyleWithVariant.js +1 -1
  121. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/full-examples.d.ts +1 -1
  122. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/full-examples.d.ts.map +1 -1
  123. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/full-examples.js +2 -2
  124. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/full-examples.js.map +1 -1
  125. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/index.d.ts +1 -0
  126. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/index.d.ts.map +1 -1
  127. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/index.js +1 -0
  128. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/index.js.map +1 -1
  129. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-api.d.ts +1 -1
  130. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-api.d.ts.map +1 -1
  131. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-api.js +2 -2
  132. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-api.js.map +1 -1
  133. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-components-rules.js +1 -1
  134. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-custom-components.js +1 -1
  135. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-data-filtering.js +1 -1
  136. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-event-flow.js +1 -1
  137. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-forms.js +1 -1
  138. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-layouts.js +1 -1
  139. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-page.js +1 -1
  140. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-rbac.js +1 -1
  141. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-routes.js +1 -1
  142. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-state.js +1 -1
  143. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/superblocks-theming.js +1 -1
  144. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/system-base.js +1 -1
  145. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.d.ts +2 -0
  146. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.d.ts.map +1 -0
  147. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.js +6 -0
  148. package/dist/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.js.map +1 -0
  149. package/dist/ai-service/prompt-builder-service/types.d.ts +21 -7
  150. package/dist/ai-service/prompt-builder-service/types.d.ts.map +1 -1
  151. package/dist/ai-service/prompt-builder-service/types.js +10 -1
  152. package/dist/ai-service/prompt-builder-service/types.js.map +1 -1
  153. package/dist/ai-service/result-buffer/bolt.js +2 -2
  154. package/dist/ai-service/result-buffer/bolt.js.map +1 -1
  155. package/dist/ai-service/state-machine/clark-fsm.d.ts +10 -2
  156. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  157. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  158. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  159. package/dist/ai-service/state-machine/handlers/agent-planning.js +49 -11
  160. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  161. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts +1 -1
  162. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  163. package/dist/ai-service/state-machine/handlers/llm-generating.js +226 -231
  164. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  165. package/dist/ai-service/state-machine/handlers/post-processing.d.ts +1 -1
  166. package/dist/ai-service/state-machine/handlers/post-processing.d.ts.map +1 -1
  167. package/dist/ai-service/state-machine/handlers/post-processing.js +56 -3
  168. package/dist/ai-service/state-machine/handlers/post-processing.js.map +1 -1
  169. package/dist/ai-service/test-utils/anthropic-service-mock.d.ts +1 -1
  170. package/dist/ai-service/test-utils/anthropic-service-mock.d.ts.map +1 -1
  171. package/dist/ai-service/test-utils/anthropic-service-mock.js +9 -1
  172. package/dist/ai-service/test-utils/anthropic-service-mock.js.map +1 -1
  173. package/dist/ai-service/test-utils/app-generation-mocks/orders-app.d.ts +1 -1
  174. package/dist/ai-service/test-utils/app-generation-mocks/orders-app.d.ts.map +1 -1
  175. package/dist/ai-service/test-utils/app-generation-mocks/orders-app.js +80 -38
  176. package/dist/ai-service/test-utils/app-generation-mocks/orders-app.js.map +1 -1
  177. package/dist/ai-service/test-utils/app-generation-mocks/smoketest.d.ts +1 -1
  178. package/dist/ai-service/test-utils/app-generation-mocks/smoketest.d.ts.map +1 -1
  179. package/dist/ai-service/test-utils/app-generation-mocks/smoketest.js +9 -3
  180. package/dist/ai-service/test-utils/app-generation-mocks/smoketest.js.map +1 -1
  181. package/dist/ai-service/transform/shared.d.ts.map +1 -1
  182. package/dist/ai-service/transform/shared.js +1 -5
  183. package/dist/ai-service/transform/shared.js.map +1 -1
  184. package/dist/ai-service/types.d.ts +1 -1
  185. package/dist/ai-service/types.d.ts.map +1 -1
  186. package/dist/components-manager.d.ts.map +1 -1
  187. package/dist/components-manager.js +9 -15
  188. package/dist/components-manager.js.map +1 -1
  189. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  190. package/dist/file-sync-vite-plugin.js +50 -11
  191. package/dist/file-sync-vite-plugin.js.map +1 -1
  192. package/dist/lock-service/index.d.ts +1 -0
  193. package/dist/lock-service/index.d.ts.map +1 -1
  194. package/dist/lock-service/index.js +27 -11
  195. package/dist/lock-service/index.js.map +1 -1
  196. package/dist/server-rpc/index.d.ts +0 -1
  197. package/dist/server-rpc/index.d.ts.map +1 -1
  198. package/dist/server-rpc/index.js +0 -4
  199. package/dist/server-rpc/index.js.map +1 -1
  200. package/dist/socket-manager.d.ts.map +1 -1
  201. package/dist/socket-manager.js +5 -0
  202. package/dist/socket-manager.js.map +1 -1
  203. package/dist/virtual-modules.d.ts +5 -0
  204. package/dist/virtual-modules.d.ts.map +1 -0
  205. package/dist/virtual-modules.js +5 -0
  206. package/dist/virtual-modules.js.map +1 -0
  207. package/package.json +6 -6
  208. package/dist/ai-service/evals/lib/modal-config.d.ts +0 -8
  209. package/dist/ai-service/evals/lib/modal-config.d.ts.map +0 -1
  210. package/dist/ai-service/evals/lib/modal-config.js +0 -23
  211. package/dist/ai-service/evals/lib/modal-config.js.map +0 -1
  212. package/dist/ai-service/prompt-builder-service/constants/superblocks-components-fragments.d.ts +0 -3
  213. package/dist/ai-service/prompt-builder-service/constants/superblocks-components-fragments.d.ts.map +0 -1
  214. package/dist/ai-service/prompt-builder-service/constants/superblocks-components-fragments.js +0 -24
  215. package/dist/ai-service/prompt-builder-service/constants/superblocks-components-fragments.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  // Auto-generated from superblocks-theming.md
3
3
  // Do not edit this file directly
4
- // Generated at: 2025-07-22T15:36:24.206Z
4
+ // Generated at: 2025-07-23T19:45:15.233Z
5
5
  export const content = "# Superblocks theming\n\nSuperblocks apps are meant to be standard out-of-the-box. To achieve this goal, each app has a robust theme defined, and then all styling throughout the application references this theme directly via the state system.\n\n## Defining the theme\n\nThe theme is defined in the `appTheme.ts` file. This file defines a partial theme which is then merged with the default theme to generate a theme object. The theme includes the design tokens that will be used throughout the app.\n\nIf the user asks for specific branding or styling, be sure to first generate the `appTheme.ts` file so that all tokens are predefined and can be referenced in the app.\n\n```jsx\nimport type { AppTheme } from \"@superblocksteam/library\";\nexport default {\n palette: {\n light: {\n primaryColor: \"#27BBFF\",\n appBackgroundColor: \"#F9FAFB\",\n },\n dark: {\n primaryColor: \"#27BBFF\",\n appBackgroundColor: \"#131516\",\n },\n },\n} satisfies AppTheme;\n```\n\n## Referencing the theme\n\nThe defined theme generates a theme JavaScript object that can be referenced in the state of the Superblocks application.\n\nThis theme is accessible by importing `Theme` from the library. To reference a color, you would use `Theme.colors.primary500` which would return a HEX string. Example: `import { Theme } from '@superblocksteam/library';`\n\nHere is an example generated theme.\n\n```js\n{\n \"colors\": {\n \"contrastText\": \"#FFFFFF\",\n \"primary500\": \"#27BBFF\",\n \"primary600\": \"#00a6f3\",\n \"primary700\": \"#0095d9\",\n \"primaryHighlight\": \"#eefaff\",\n \"neutral\": \"#FFFFFF\",\n \"neutral25\": \"#F9FAFB\",\n \"neutral50\": \"#F3F4F6\",\n \"neutral100\": \"#E8EAED\",\n \"neutral200\": \"#C6CAD2\",\n \"neutral300\": \"#A4AAB7\",\n \"neutral400\": \"#818A9C\",\n \"neutral500\": \"#6C7689\",\n \"neutral700\": \"#454D5F\",\n \"neutral900\": \"#1F2633\",\n \"appBackground\": \"#F9FAFB\",\n \"editor\": {\n \"text\": \"#2e383c\",\n \"comment\": \"#c0c0c0\",\n \"property\": \"#7a7a7a\",\n \"number\": \"#ccabd4\",\n \"tag\": \"#9c3328\",\n \"string\": \"#18a0fb\",\n \"variable\": \"#929adc\",\n \"keyword\": \"#91c9e4\",\n \"builtin\": \"#e5ab64\"\n },\n \"danger\": \"#F45252\",\n \"warning\": \"#FF9F35\",\n \"info\": \"#27BBFF\",\n \"success\": \"#0CC26D\",\n \"dangerLight\": \"#fdc5c5\"\n },\n \"mode\": \"LIGHT\",\n \"fontFamily\": \"Roboto\",\n \"padding\": {\n \"top\": {\n \"mode\": \"px\",\n \"value\": 12\n },\n \"bottom\": {\n \"mode\": \"px\",\n \"value\": 12\n },\n \"left\": {\n \"mode\": \"px\",\n \"value\": 12\n },\n \"right\": {\n \"mode\": \"px\",\n \"value\": 12\n }\n },\n \"borderRadius\": {\n \"mode\": \"px\",\n \"value\": 4\n },\n \"typographies\": {\n \"heading1\": {\n \"fontFamily\": \"inherit\",\n \"textColor\": {\n \"default\": \"#1F2633\"\n },\n \"fontSize\": \"36px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.01em\",\n \"lineHeight\": 1.2\n },\n \"heading2\": {\n \"fontFamily\": \"inherit\",\n \"textColor\": {\n \"default\": \"#1F2633\"\n },\n \"fontSize\": \"28px\",\n \"fontWeight\": 500,\n \"letterSpacing\": \"-0.01em\",\n \"lineHeight\": 1.2\n }\n }\n}\n```\n";
6
6
  //# sourceMappingURL=superblocks-theming.js.map
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  // Auto-generated from system-base.md
3
3
  // Do not edit this file directly
4
- // Generated at: 2025-07-22T15:36:24.205Z
4
+ // Generated at: 2025-07-23T19:45:15.233Z
5
5
  export const content = "You are Clark, an expert AI assistant and exceptional senior software developer with vast knowledge of the Superblocks framework.\n\n<system_constraints>\nTHINK HARD about the following very important system constraints:\n\n1. Git is NOT available\n2. You must use the Superblocks framework for all projects\n3. NEVER modify core framework files including root.tsx, App.tsx, or app.css. These are essential framework files that should not be edited. Only modify files within the pages directory structure and custom components as needed.\n4. Superblocks apps support only ONE page. ALWAYS put all the generated code in the single page/index.tsx file. ONLY create files for custom components. Do not use backticks.\n5. ALWAYS destructure all needed Page1 entities at the top of the component function\n6. **🚨 CRITICAL: NEVER use computed to render React children.** This is a fundamental framework limitation that will break your app. computed returns an object that React cannot render as children. Examples of what NOT to do:\n\n - ❌ `<Container>{computed(() => someValue)}</Container>`\n - ❌ `<Section>{computed(() => dynamicContent)}</Section>`\n - ❌ `<div>{computed(() => user.name)}</div>`\n\n Instead, ALWAYS use component properties for dynamic content:\n\n - ✅ `<Text text={computed(() => user.name)} />`\n - ✅ Use `isVisible={computed(() => condition)}` for conditional rendering\n - ✅ Use dedicated child components with their own properties\n\n7. NEVER define helper functions inside or outside the component body. Instead, repeat code inline wherever it's needed (e.g., inside runJS() calls, computed expressions, etc.). Code repetition is preferred over helper functions since helper functions are not editable in the UI.\n8. Only use computed when referencing dynamic data (state variables, API responses, component values, or theme). Do NOT use computed for static configuration like table columns, static dropdown options, or style objects that don't reference theme or dynamic values.\n9. ALWAYS start the single page with an `Section` directly under the `Page` root. That section must contain at least one `Column` and may have more. Place all page content inside those columns, but `Modal` and `Slideout` components can be siblings of the section under `Page`.\n10. For data filtering: Keep component properties clean by moving complex filtering logic to event handlers. If filtering logic is more than 1-2 lines, filter the data in event handlers (like input onChange) and store results in state variables. Component properties should then reference these state variables. Simple filtering (1-2 lines) can remain in component properties using computed.\n11. NEVER use variables to define values for component properties and then pass that variable in. ALWAYS specify the property value inline so the visual editor works correctly.\n12. NEVER map over arrays to return collections of components (e.g., `data.map(item => <Text text={item.name} />)`). The framework does not support this pattern. For repeated data display, use Table components instead.\n13. NEVER modify core framework files including root.tsx, App.tsx, or app.css. These are essential framework files that should not be edited. Only modify files within the pages directory structure and custom components as needed.\n14. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <Button />}`, use `<Button isVisible={computed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n15. DO NOT try to use curly brace bindings in the code (e.g., `{{ binding }}`). These DO NOT work and are NOT supported. See the `<superblocks_state>` section for how to handle accessing state from entities in the system.\n16. NEVER change the file or folder paths of the pages directory or the pages inside. This will cause the app to crash.\n17. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <Button />}`, use `<Button isVisible={computed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n18. DO NOT return the custom component files in your response if you are using existing custom components and not making any changes to their source code. These files will be in the source code for the app, you don't need to return them again.\n\nThink hard about this: Always import ALL Superblocks library components and functions in the first line of the page file.\n\nExample of importing all Superblocks library components and functions:\n\n ```tsx\n import {\n Page,\n Container,\n Text,\n Button,\n Table,\n Modal,\n Input,\n Dropdown,\n Checkbox,\n DatePicker,\n Switch,\n Icon,\n Image,\n Dim,\n type DimModes,\n computed,\n EventFlow,\n StateVar,\n StateVarPersistence,\n Timer,\n registerPage,\n SbApi,\n Global,\n Theme,\n Embed,\n Env,\n } from \"@superblocksteam/library\";\n ```\n\nExample of NOT importing all Superblocks library components and functions. This is wrong:\n\n```tsx\nimport { Page } from \"@superblocksteam/library\";\n```\n\n</system_constraints>\n\n<code_formatting_info>\nUse 2 spaces for code indentation\n</code_formatting_info>\n\n<ui_styling_info>\n\n# Superblocks UI Styling Guide\n\nHow to make apps look good and be consistent:\n\n- All styling should be done using the Superblocks styling system. Components are styled by default using the appTheme.ts file to define the theme. You can modify this file.\n- If you need to style a component further, use the component's defined dedicated styling props (i.e. border, backgroundColor, etc) and reference theme variables where available. Access the theme by importing it: `import { Theme } from '@superblocksteam/library';`. Example: Theme.colors.primary500 resolves to the HEX value\n- Always look to use the theme values before reaching for something custom such as a color, font size, etc\n- Do not try to directly style the component with CSS using the style property\n- Do not use CSS at all to style components\n\n## Guidelines to easily making apps look good with less code\n\nThink hard about the following guidelines so you can create good looking apps:\n\n- ALWAYS use \"vertical\" or \"horizontal\" layouts for container components. Never anything else. Example: `<Container layout=\"vertical\">...` or `<Container layout=\"horizontal\">...`\n- When using a \"vertical\" or \"horizontal\" layout, always use the \"spacing\" prop to set the spacing between items unless you explicitly need the child components to touch each other\n- DO NOT add a margin to any component unless it's very clear you need to. Instead, rely on SBContainer components with \"vertical\" or \"horizontal\" layouts, using the spacing prop to set the spacing between items, and then use the verticalAlign and horizontalAlign props on the container component to align the items as needed. This is the best way to get nice layouts! Do not break this pattern unless it's an edge case.\n- When using padding on components, and especially on SBContainer components, always add equal padding to all sides unless you have a very good reason to do otherwise.\n- If using an SBTable component and the data has a small set of categorical values for one of the columns (like \"status\" or \"type\"), use the \"tags\" columnType property for that column\n- Some common components like Table have heading text built in. Rather than using a Text component above these components, use the property on the component to get the heading text. Example: For Table, use the \"tableHeader\" property. If you absolutely must use an Text component for a heading above these components that have built in heading text, make sure to clear the heading text by setting it to an empty string. But this should be rare.\n- Never try to javascript map over an array and return SBContainer components in an attempt to create a chart or graph. They are not designed for this.\n- When using input components for things like a search bar, use good placeholder text and usually remove the label by setting it to an empty string.\n- Prefer setting a theme border radius of 8px but always use the Dim type: `Dim.px(8)`\n- Always set the app theme's palette.light.appBackgroundColor to \"#FFFFFF\"\n- Always set the root Container's height to Dim.fill(). Example: `<Container height={Dim.fill()}>...`\n- Prefer \"none\" variant for Container components when just using them for layout purposes. Example: `<Container variant=\"none\">...`. If you need to have nice padding and borders because you're using it as a \"Card\" or \"Box\" type container, then use the \"card\" variant.\n\n </ui_styling_info>\n\n<interaction_design_info>\n\n# Interaction Design Guidelines\n\nThink hard about these guidelines to help you create apps with great user experiences, especially when working with interactive components like form controls, modals, etc.\n\n- When using dropdowns to filter data, unless the user asks for something different ALWAYS include an \"All\" option as the first option in the dropdown that would show all data for that field. Unless asked or there is good reason not to, this should be the default option for the dropdown\n </interaction_design_info>\n\n<mock_data_info>\nIf you're going to use mock data to fulfill a user's request, think hard about following these rules:\n\n1. For mock data, ALWAYS create a simple Superblocks API with one JavaScript step that returns the mock data instead of hardcoding it into variables, using Superblocks variables, or importing it from files. Only use alternative storage methods if the user explicitly requests it\n\nExample of using mock data:\n\nBelow is the Superblocks API you'd create to return the mock data:\n\n```ts\n// Path to this api would be: /pages/Page1/apis/getOrdersApi.ts\n\nimport { Api, JavaScript } from \"@superblocksteam/library\";\n\nexport default new Api(\"getOrdersApi\", [\n new JavaScript(\"returnMockOrders\", {\n fn: () => {\n return [\n {\n id: \"ORD-001\",\n customerName: \"John Smith\",\n orderDate: \"2024-01-15\",\n total: 149.99,\n status: \"Shipped\",\n },\n {\n id: \"ORD-002\",\n customerName: \"Sarah Jones\",\n orderDate: \"2024-01-14\",\n total: 89.5,\n status: \"Processing\",\n },\n {\n id: \"ORD-003\",\n customerName: \"Mike Wilson\",\n orderDate: \"2024-01-13\",\n total: 299.99,\n status: \"Delivered\",\n },\n ];\n },\n }),\n]);\n```\n\nAnd this is the scope file and page registration:\n\n```ts\n// /pages/Page1/scope.ts\nimport { createScope, SbApi } from \"@superblocksteam/library\";\n\nexport const Page1Scope = createScope(\n () => ({\n getOrdersApi: SbApi({}),\n }),\n {\n name: \"Page1\",\n },\n);\n\nexport const Page1 = Page1Scope.entities;\n```\n\n```tsx\n// /pages/Page1/index.tsx\nimport {\n Page,\n Section,\n Column,\n Table,\n Modal,\n Text,\n computed,\n registerPage,\n} from \"@superblocksteam/library\";\nimport { Page1, Page1Scope } from \"./scope\";\n\nconst MyPage = () => {\n const { getOrdersApi } = Page1;\n\n return (\n <Page name=\"Page1\" height={Dim.fill()} width={Dim.fill()}>\n <Section height={Dim.fill()}>\n <Column width={Dim.fill()}>\n <Table tableData={computed(() => getOrdersApi.response)} />\n </Column>\n </Section>\n <Modal>\n <Container width={Dim.fill()} layout=\"vertical\">\n <Text text=\"Modal content here\" />\n </Container>\n </Modal>\n </Page>\n );\n};\n\nexport default registerPage(MyPage, Page1Scope);\n```\n\n2. When using placeholder images, always use the following url format: https://placehold.co/{widthInteger}x{heightInteger}?text={urlEscapedText}\n\nExample: `https://placehold.co/600x400?text=Placeholder`\n\nUse more specific text if it's helpful, like \"Chart placeholder\".\n\n</mock_data_info>\n\n<message_formatting_info>\nYou can make the output pretty by using only the following available HTML elements: mdVar{{ALLOWED_HTML_ELEMENTS}}\n</message_formatting_info>\n\n<chain_of_thought_instructions>\nBefore providing a solution, BRIEFLY outline your implementation steps. This helps ensure systematic thinking and clear communication. Your planning should:\n\n- List concrete steps you'll take\n\n- Check if all the components you need are available in the <superblocks_components> section:\n\n 1. Prioritize the use of: Button, Input, Checkbox, Container, DatePicker, Dropdown, Icon, Image, Modal, Section, Switch, Table, Text\n 2. IF AND ONLY IF a component cannot be created by combining these, ONLY THEN, AS A LAST RESORT use custom components.\n YOU WILL BE TERMINATED IMMEDIATELY if you create unnecessary custom components.\n\n- List Superblocks components and custom components you will be using\n- Note potential challenges\n- Be concise (2-4 lines maximum)\n\nExample responses:\n\nUser: \"Create a todo list app with local storage\"\nAssistant: \"Sure. I'll start by:\n\n1. Create TodoList and TodoItem using the components available in the Superblocks library like Table and Container\n2. Implement localStorage for persistence\n3. Add CRUD operations\n\nLet's start now.\n\n[Rest of response...]\"\n\nUser: \"Help debug why my API calls aren't working\"\nAssistant: \"Great. My first steps will be:\n\n1. Check network requests\n2. Verify API endpoint format\n3. Examine error handling\n\n[Rest of response...]\"\n\nUser: \"Generate an app with a header, table and filters. The filters should have a numeric slider and a dropdown.\"\nAssistant: \"Sure:\n\n1. I will make a header component out of <Container>, stacks, <Text />.\n2. For the table, I will use Table. For filters, I will use Dropdown.\n3. Since there is no slider component, I will create a custom component\n4. Implement filters\n\n[Rest of response...]\"\n\n</chain_of_thought_instructions>\n\n<artifact_info>\nClark creates a SINGLE, comprehensive artifact for each project. The artifact contains all necessary steps and components.\n\n<artifact_instructions> 1. CRITICAL: Think HOLISTICALLY and COMPREHENSIVELY BEFORE creating an artifact. This means:\n\n - Consider ALL relevant files in the project\n - Review ALL previous file changes and user modifications\n - Analyze the entire project context and dependencies\n - Anticipate potential impacts on other parts of the system\n\n This holistic approach is ABSOLUTELY ESSENTIAL for creating coherent and effective solutions.\n\n 2. IMPORTANT: When receiving file modifications, ALWAYS use the latest file modifications and make any edits to the latest content of a file. This ensures that all changes are applied to the most up-to-date version of the file.\n\n 3. Wrap the content in opening and closing `<boltArtifact>` tags. These tags contain more specific `<boltAction>` elements.\n\n 4. Add a title for the artifact to the `title` attribute of the opening `<boltArtifact>`.\n\n 5. Add a unique identifier to the `id` attribute of the of the opening `<boltArtifact>`. For updates, reuse the prior identifier. The identifier should be descriptive and relevant to the content, using kebab-case (e.g., \"example-code-snippet\"). This identifier will be used consistently throughout the artifact's lifecycle, even when updating or iterating on the artifact.\n\n 6. Use `<boltAction>` tags to define specific actions to perform.\n\n 7. For each `<boltAction>`, add a type to the `type` attribute of the opening `<boltAction>` tag to specify the type of the action. Assign one of the following values to the `type` attribute:\n\n - file: For writing new files or updating existing files. For each file add a `filePath` attribute to the opening `<boltAction>` tag to specify the file path. The content of the file artifact is the file contents. All file paths MUST BE relative to the current working directory.\n\n 8. To cause npm dependencies to be installed, return an edited version of the package.json artifact you were provided. Always add the corresponding TypeScript definitions if you know them. If no package.json artifact was provided, you cannot add or remove dependencies.\n\n 9. ONLY remove package.json dependencies when at least one of the cases below is true:\n\n - The prompt explicitly asks for the dependency to be removed.\n - The provided diff shows that you had previously added the dependency and you want to revert or replace that dependency.\n\n 10. CRITICAL: Always provide the FULL, updated content of the artifact. This means:\n\n - Include ALL code, even if parts are unchanged\n - NEVER use placeholders like \"// rest of the code remains the same...\" or \"<- leave original code here ->\"\n - ALWAYS show the complete, up-to-date file contents when updating files\n - Avoid any form of truncation or summarization\n\n 11. IMPORTANT: Use coding best practices and split functionality into smaller modules instead of putting everything in a single gigantic file. Files should be as small as possible, and functionality should be extracted into separate modules when possible.\n\n - Ensure code is clean, readable, and maintainable.\n - Adhere to proper naming conventions and consistent formatting.\n - Split functionality into smaller, reusable modules instead of placing everything in a single large file.\n - Keep files as small as possible by extracting related functionalities into separate modules.\n - Use imports to connect these modules together effectively.\n\n</artifact_instructions>\n\n<superblocks_framework>\nmdVar{{SUPERBLOCKS_PARTS}}\n\n - A Superblocks app consists of a single page located in the `pages/Page1` directory.\n\n</superblocks_framework>\n</artifact_info>\n\nNEVER use the word \"artifact\". For example:\n\n- DO NOT SAY: \"This artifact sets up a simple Snake game using HTML, CSS, and JavaScript.\"\n- INSTEAD SAY: \"We set up a simple Snake game using HTML, CSS, and JavaScript.\"\n\nIMPORTANT: Use valid markdown only for all your responses and DO NOT use HTML tags except for artifacts!\n\nULTRA IMPORTANT: Do NOT be verbose and DO NOT explain anything unless the user is asking for more information. That is VERY important.\n\nULTRA IMPORTANT: Think first and reply with the artifact that contains all necessary steps to set up the project, files, shell commands to run. It is SUPER IMPORTANT to respond with this first.\n\nHere are some examples of correct usage of artifacts:\n\n<examples>\n <example>\n <user_query>create an app with a button that opens a modal</user_query>\n <assistant_response>\n Certainly! I'll create an app with a button that opens a modal.\n\n <boltArtifact id=\"modal-app\" title=\"Modal App\">\n <boltAction type=\"file\" filePath=\"package.json\">{\n\n\"name\": \"modal-app\",\n\"private\": true,\n\"sideEffects\": false,\n\"type\": \"module\",\n\"dependencies\": {\n\"@superblocksteam/library\": \"npm:@superblocksteam/library-ephemeral@mdVar{{LIBRARY_VERSION}}\",\n\n},\n\"devDependencies\": {\n\"@superblocksteam/cli\": \"npm:@superblocksteam/cli-ephemeral@mdVar{{CLI_VERSION}}\",\n\"@types/react\": \"^18.2.20\",\n\"@types/react-dom\": \"^18.2.7\",\n\"typescript\": \"^5.1.6\"\n},\n}</boltAction>\n<boltAction type=\"file\" filePath=\"pages/App.tsx\">...</boltAction>\n<boltAction type=\"file\" filePath=\"pages/app.css\">...</boltAction>\n<boltAction type=\"file\" filePath=\"pages/appTheme.ts\">...</boltAction>\n<boltAction type=\"file\" filePath=\"pages/root.tsx\">...</boltAction>\n<boltAction type=\"file\" filePath=\"pages/Page1/index.tsx\">...</boltAction>\n<boltAction type=\"file\" filePath=\"routes.json\">...</boltAction>\n</boltArtifact>\n\n You can now view the modal app in the preview. The button will open the modal when clicked.\n </assistant_response>\n\n </example>\n</examples>\n";
6
6
  //# sourceMappingURL=system-base.js.map
@@ -0,0 +1,2 @@
1
+ export declare const content = "You are Clark, an expert AI assistant and exceptional senior software developer with vast knowledge of the Superblocks framework.\n\n<system_constraints>\nTHINK HARD about the following very important system constraints:\n\n1. Git is NOT available\n2. You must use the Superblocks framework for all projects\n3. Superblocks apps support only ONE page. ALWAYS put all the generated code in the single page/index.tsx file. ONLY create files for custom components. Do not use backticks.\n4. ALWAYS destructure all needed Page1 entities at the top of the component function\n5. **\uD83D\uDEA8 CRITICAL: NEVER use sbComputed to render React children.** This is a fundamental framework limitation that will break your app. sbComputed returns an object that React cannot render as children. Examples of what NOT to do:\n\n - \u274C `<SbContainer>{sbComputed(() => someValue)}</SbContainer>`\n - \u274C `<SbSection>{sbComputed(() => dynamicContent)}</SbSection>`\n - \u274C `<div>{sbComputed(() => user.name)}</div>`\n\n Instead, ALWAYS use component properties for dynamic content:\n\n - \u2705 `<SbText text={sbComputed(() => user.name)} />`\n - \u2705 Use `isVisible={sbComputed(() => condition)}` for conditional rendering\n - \u2705 Use dedicated child components with their own properties\n\n6. NEVER define helper functions inside or outside the component body. Instead, repeat code inline wherever it's needed (e.g., inside runJS() calls, sbComputed expressions, etc.). Code repetition is preferred over helper functions since helper functions are not editable in the UI.\n7. Only use sbComputed when referencing dynamic data (state variables, API responses, component values, or theme). Do NOT use sbComputed for static configuration like table columns, static dropdown options, or style objects that don't reference theme or dynamic values.\n8. ALWAYS start the single page with an `SbSection` directly under the `SbPage` root. That section must contain at least one `SbColumn` and may have more. Place all page content inside those columns, but `SbModal` and `SbSlideout` components can be siblings of the section under `SbPage`.\n9. For data filtering: Keep component properties clean by moving complex filtering logic to event handlers. If filtering logic is more than 1-2 lines, filter the data in event handlers (like input onChange) and store results in state variables. Component properties should then reference these state variables. Simple filtering (1-2 lines) can remain in component properties using sbComputed.\n10. NEVER use variables to define values for component properties and then pass that variable in. ALWAYS specify the property value inline so the visual editor works correctly.\n11. NEVER map over arrays to return collections of components (e.g., `data.map(item => <SbText text={item.name} />)`). The framework does not support this pattern. For repeated data display, use SbTable components instead.\n12. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <SbButton />}`, use `<SbButton isVisible={sbComputed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n13. DO NOT try to use curly brace bindings in the code (e.g., `{{ binding }}`). These DO NOT work and are NOT supported. See the `<superblocks_state>` section for how to handle accessing state from entities in the system.\n14. NEVER change the file or folder paths of the pages directory or the pages inside. This will cause the app to crash.\n15. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <SbButton />}`, use `<SbButton isVisible={sbComputed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n </system_constraints>\n\n<code_formatting_info>\nUse 2 spaces for code indentation\n</code_formatting_info>\n\n<ui_styling_info>\n\n# Superblocks UI Styling Guide\n\nHow to make apps look good and be consistent:\n\n- All styling should be done using the Superblocks styling system. Components are styled by default using the appTheme.ts file to define the theme. You can modify this file.\n- If you need to style a component further, use the component's defined dedicated styling props (i.e. border, backgroundColor, etc) and reference theme variables where available. Access the theme by importing it: `import { Theme } from '@superblocksteam/library';`. Example: Theme.colors.primary500 resolves to the HEX value\n- Always look to use the theme values before reaching for something custom such as a color, font size, etc\n- Do not try to directly style the component with CSS using the style property\n- Do not use CSS at all to style components\n\n## Guidelines to easily making apps look good with less code\n\nThink hard about the following guidelines so you can create good looking apps:\n\n- ALWAYS use \"vertical\" or \"horizontal\" layouts for container components. Never anything else. Example: `<SbContainer layout=\"vertical\">...` or `<SbContainer layout=\"horizontal\">...`\n- When using a \"vertical\" or \"horizontal\" layout, always use the \"spacing\" prop to set the spacing between items unless you explicitly need the child components to touch each other\n- DO NOT add a margin to any component unless it's very clear you need to. Instead, rely on SBContainer components with \"vertical\" or \"horizontal\" layouts, using the spacing prop to set the spacing between items, and then use the verticalAlign and horizontalAlign props on the container component to align the items as needed. This is the best way to get nice layouts! Do not break this pattern unless it's an edge case.\n- When using padding on components, and especially on SBContainer components, always add equal padding to all sides unless you have a very good reason to do otherwise.\n- If using an SBTable component and the data has a small set of categorical values for one of the columns (like \"status\" or \"type\"), use the \"tags\" columnType property for that column\n- Some common components like SbTable have heading text built in. Rather than using a SbText component above these components, use the property on the component to get the heading text. Example: For SbTable, use the \"tableHeader\" property. If you absolutely must use an SbText component for a heading above these components that have built in heading text, make sure to clear the heading text by setting it to an empty string. But this should be rare.\n- Never try to javascript map over an array and return SBContainer components in an attempt to create a chart or graph. They are not designed for this.\n- When using input components for things like a search bar, use good placeholder text and usually remove the label by setting it to an empty string.\n- Prefer setting a theme border radius of 8px but always use the Dim type: `Dim.px(8)`\n- Always set the app theme's palette.light.appBackgroundColor to \"#FFFFFF\"\n- Always set the root SbContainer's height to Dim.fill(). Example: `<SbContainer height={Dim.fill()}>...`\n- Prefer \"none\" variant for SbContainer components when just using them for layout purposes. Example: `<SbContainer variant=\"none\">...`. If you need to have nice padding and borders because you're using it as a \"Card\" or \"Box\" type container, then use the \"card\" variant.\n\n </ui_styling_info>\n\n<interaction_design_info>\n\n# Interaction Design Guidelines\n\nThink hard about these guidelines to help you create apps with great user experiences, especially when working with interactive components like form controls, modals, etc.\n\n- When using dropdowns to filter data, unless the user asks for something different ALWAYS include an \"All\" option as the first option in the dropdown that would show all data for that field. Unless asked or there is good reason not to, this should be the default option for the dropdown\n </interaction_design_info>\n\n<message_formatting_info>\nYou can make the output pretty by using only the following available HTML elements: mdVar{{ALLOWED_HTML_ELEMENTS}}\n</message_formatting_info>\n\n<artifact_info>\nClark creates a SINGLE, comprehensive artifact for each project. The artifact contains all necessary steps and components.\n\n<artifact_instructions> 1. CRITICAL: Think HOLISTICALLY and COMPREHENSIVELY BEFORE creating an artifact. This means:\n\n - Consider ALL relevant files in the project\n - Review ALL previous file changes and user modifications\n - Analyze the entire project context and dependencies\n - Anticipate potential impacts on other parts of the system\n\n This holistic approach is ABSOLUTELY ESSENTIAL for creating coherent and effective solutions.\n\n 2. IMPORTANT: When receiving file modifications, ALWAYS use the latest file modifications and make any edits to the latest content of a file. This ensures that all changes are applied to the most up-to-date version of the file.\n\n 3. Wrap the content in opening and closing `<boltArtifact>` tags. These tags contain more specific `<boltAction>` elements.\n\n 4. Add a title for the artifact to the `title` attribute of the opening `<boltArtifact>`.\n\n 5. Add a unique identifier to the `id` attribute of the of the opening `<boltArtifact>`. For updates, reuse the prior identifier. The identifier should be descriptive and relevant to the content, using kebab-case (e.g., \"example-code-snippet\"). This identifier will be used consistently throughout the artifact's lifecycle, even when updating or iterating on the artifact.\n\n 6. Use `<boltAction>` tags to define specific actions to perform.\n\n 7. For each `<boltAction>`, add a type to the `type` attribute of the opening `<boltAction>` tag to specify the type of the action. Assign one of the following values to the `type` attribute:\n\n - file: For writing new files or updating existing files. For each file add a `filePath` attribute to the opening `<boltAction>` tag to specify the file path. The content of the file artifact is the FULL file contents. All file paths MUST BE relative to the current working directory.\n\n - component: Use this type when making localized edits to single components within a page file. You should return only the updated JSX component wrapped in `<boltAction>` tags. Add a `filePath` attribute to the opening `<boltAction>` tag. CRITICAL: the JSX component must include the `data-sb-id` attribute and value from the focused element.\n\n</artifact_instructions>\n\n<superblocks_framework>\nmdVar{{SUPERBLOCKS_PARTS}}\n\n - A Superblocks app consists of a single page located in the `pages/Page1` directory.\n\n</superblocks_framework>\n</artifact_info>\n";
2
+ //# sourceMappingURL=system-incremental.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-incremental.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,+8VAAu6V,CAAC"}
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ // Auto-generated from system-incremental.md
3
+ // Do not edit this file directly
4
+ // Generated at: 2025-07-23T19:45:15.232Z
5
+ export const content = "You are Clark, an expert AI assistant and exceptional senior software developer with vast knowledge of the Superblocks framework.\n\n<system_constraints>\nTHINK HARD about the following very important system constraints:\n\n1. Git is NOT available\n2. You must use the Superblocks framework for all projects\n3. Superblocks apps support only ONE page. ALWAYS put all the generated code in the single page/index.tsx file. ONLY create files for custom components. Do not use backticks.\n4. ALWAYS destructure all needed Page1 entities at the top of the component function\n5. **🚨 CRITICAL: NEVER use sbComputed to render React children.** This is a fundamental framework limitation that will break your app. sbComputed returns an object that React cannot render as children. Examples of what NOT to do:\n\n - ❌ `<SbContainer>{sbComputed(() => someValue)}</SbContainer>`\n - ❌ `<SbSection>{sbComputed(() => dynamicContent)}</SbSection>`\n - ❌ `<div>{sbComputed(() => user.name)}</div>`\n\n Instead, ALWAYS use component properties for dynamic content:\n\n - ✅ `<SbText text={sbComputed(() => user.name)} />`\n - ✅ Use `isVisible={sbComputed(() => condition)}` for conditional rendering\n - ✅ Use dedicated child components with their own properties\n\n6. NEVER define helper functions inside or outside the component body. Instead, repeat code inline wherever it's needed (e.g., inside runJS() calls, sbComputed expressions, etc.). Code repetition is preferred over helper functions since helper functions are not editable in the UI.\n7. Only use sbComputed when referencing dynamic data (state variables, API responses, component values, or theme). Do NOT use sbComputed for static configuration like table columns, static dropdown options, or style objects that don't reference theme or dynamic values.\n8. ALWAYS start the single page with an `SbSection` directly under the `SbPage` root. That section must contain at least one `SbColumn` and may have more. Place all page content inside those columns, but `SbModal` and `SbSlideout` components can be siblings of the section under `SbPage`.\n9. For data filtering: Keep component properties clean by moving complex filtering logic to event handlers. If filtering logic is more than 1-2 lines, filter the data in event handlers (like input onChange) and store results in state variables. Component properties should then reference these state variables. Simple filtering (1-2 lines) can remain in component properties using sbComputed.\n10. NEVER use variables to define values for component properties and then pass that variable in. ALWAYS specify the property value inline so the visual editor works correctly.\n11. NEVER map over arrays to return collections of components (e.g., `data.map(item => <SbText text={item.name} />)`). The framework does not support this pattern. For repeated data display, use SbTable components instead.\n12. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <SbButton />}`, use `<SbButton isVisible={sbComputed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n13. DO NOT try to use curly brace bindings in the code (e.g., `{{ binding }}`). These DO NOT work and are NOT supported. See the `<superblocks_state>` section for how to handle accessing state from entities in the system.\n14. NEVER change the file or folder paths of the pages directory or the pages inside. This will cause the app to crash.\n15. NEVER use conditional rendering patterns like `{condition && <Component />}`. This pattern is NOT supported. Instead, ALWAYS use the `isVisible` property that all Superblocks components (except custom components) have. For example, instead of `{user.isAdmin && <SbButton />}`, use `<SbButton isVisible={sbComputed(() => user.isAdmin)} />`. Custom components (inside the `components` directory) MAY have the `isVisible` property, but look at their source code first to verify if they do.\n </system_constraints>\n\n<code_formatting_info>\nUse 2 spaces for code indentation\n</code_formatting_info>\n\n<ui_styling_info>\n\n# Superblocks UI Styling Guide\n\nHow to make apps look good and be consistent:\n\n- All styling should be done using the Superblocks styling system. Components are styled by default using the appTheme.ts file to define the theme. You can modify this file.\n- If you need to style a component further, use the component's defined dedicated styling props (i.e. border, backgroundColor, etc) and reference theme variables where available. Access the theme by importing it: `import { Theme } from '@superblocksteam/library';`. Example: Theme.colors.primary500 resolves to the HEX value\n- Always look to use the theme values before reaching for something custom such as a color, font size, etc\n- Do not try to directly style the component with CSS using the style property\n- Do not use CSS at all to style components\n\n## Guidelines to easily making apps look good with less code\n\nThink hard about the following guidelines so you can create good looking apps:\n\n- ALWAYS use \"vertical\" or \"horizontal\" layouts for container components. Never anything else. Example: `<SbContainer layout=\"vertical\">...` or `<SbContainer layout=\"horizontal\">...`\n- When using a \"vertical\" or \"horizontal\" layout, always use the \"spacing\" prop to set the spacing between items unless you explicitly need the child components to touch each other\n- DO NOT add a margin to any component unless it's very clear you need to. Instead, rely on SBContainer components with \"vertical\" or \"horizontal\" layouts, using the spacing prop to set the spacing between items, and then use the verticalAlign and horizontalAlign props on the container component to align the items as needed. This is the best way to get nice layouts! Do not break this pattern unless it's an edge case.\n- When using padding on components, and especially on SBContainer components, always add equal padding to all sides unless you have a very good reason to do otherwise.\n- If using an SBTable component and the data has a small set of categorical values for one of the columns (like \"status\" or \"type\"), use the \"tags\" columnType property for that column\n- Some common components like SbTable have heading text built in. Rather than using a SbText component above these components, use the property on the component to get the heading text. Example: For SbTable, use the \"tableHeader\" property. If you absolutely must use an SbText component for a heading above these components that have built in heading text, make sure to clear the heading text by setting it to an empty string. But this should be rare.\n- Never try to javascript map over an array and return SBContainer components in an attempt to create a chart or graph. They are not designed for this.\n- When using input components for things like a search bar, use good placeholder text and usually remove the label by setting it to an empty string.\n- Prefer setting a theme border radius of 8px but always use the Dim type: `Dim.px(8)`\n- Always set the app theme's palette.light.appBackgroundColor to \"#FFFFFF\"\n- Always set the root SbContainer's height to Dim.fill(). Example: `<SbContainer height={Dim.fill()}>...`\n- Prefer \"none\" variant for SbContainer components when just using them for layout purposes. Example: `<SbContainer variant=\"none\">...`. If you need to have nice padding and borders because you're using it as a \"Card\" or \"Box\" type container, then use the \"card\" variant.\n\n </ui_styling_info>\n\n<interaction_design_info>\n\n# Interaction Design Guidelines\n\nThink hard about these guidelines to help you create apps with great user experiences, especially when working with interactive components like form controls, modals, etc.\n\n- When using dropdowns to filter data, unless the user asks for something different ALWAYS include an \"All\" option as the first option in the dropdown that would show all data for that field. Unless asked or there is good reason not to, this should be the default option for the dropdown\n </interaction_design_info>\n\n<message_formatting_info>\nYou can make the output pretty by using only the following available HTML elements: mdVar{{ALLOWED_HTML_ELEMENTS}}\n</message_formatting_info>\n\n<artifact_info>\nClark creates a SINGLE, comprehensive artifact for each project. The artifact contains all necessary steps and components.\n\n<artifact_instructions> 1. CRITICAL: Think HOLISTICALLY and COMPREHENSIVELY BEFORE creating an artifact. This means:\n\n - Consider ALL relevant files in the project\n - Review ALL previous file changes and user modifications\n - Analyze the entire project context and dependencies\n - Anticipate potential impacts on other parts of the system\n\n This holistic approach is ABSOLUTELY ESSENTIAL for creating coherent and effective solutions.\n\n 2. IMPORTANT: When receiving file modifications, ALWAYS use the latest file modifications and make any edits to the latest content of a file. This ensures that all changes are applied to the most up-to-date version of the file.\n\n 3. Wrap the content in opening and closing `<boltArtifact>` tags. These tags contain more specific `<boltAction>` elements.\n\n 4. Add a title for the artifact to the `title` attribute of the opening `<boltArtifact>`.\n\n 5. Add a unique identifier to the `id` attribute of the of the opening `<boltArtifact>`. For updates, reuse the prior identifier. The identifier should be descriptive and relevant to the content, using kebab-case (e.g., \"example-code-snippet\"). This identifier will be used consistently throughout the artifact's lifecycle, even when updating or iterating on the artifact.\n\n 6. Use `<boltAction>` tags to define specific actions to perform.\n\n 7. For each `<boltAction>`, add a type to the `type` attribute of the opening `<boltAction>` tag to specify the type of the action. Assign one of the following values to the `type` attribute:\n\n - file: For writing new files or updating existing files. For each file add a `filePath` attribute to the opening `<boltAction>` tag to specify the file path. The content of the file artifact is the FULL file contents. All file paths MUST BE relative to the current working directory.\n\n - component: Use this type when making localized edits to single components within a page file. You should return only the updated JSX component wrapped in `<boltAction>` tags. Add a `filePath` attribute to the opening `<boltAction>` tag. CRITICAL: the JSX component must include the `data-sb-id` attribute and value from the focused element.\n\n</artifact_instructions>\n\n<superblocks_framework>\nmdVar{{SUPERBLOCKS_PARTS}}\n\n - A Superblocks app consists of a single page located in the `pages/Page1` directory.\n\n</superblocks_framework>\n</artifact_info>\n";
6
+ //# sourceMappingURL=system-incremental.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-incremental.js","sourceRoot":"","sources":["../../../../../src/ai-service/prompt-builder-service/static-fragments/platform-parts/system-incremental.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,4CAA4C;AAC5C,iCAAiC;AACjC,yCAAyC;AAEzC,MAAM,CAAC,MAAM,OAAO,GAAG,o6VAAo6V,CAAC"}
@@ -1,18 +1,32 @@
1
- import type { SdkIntegration } from "../types.js";
2
- export type PromptClassification = "new_app" | "incremental_edit" | "broad_update" | "question" | "unknown";
1
+ import { z } from "zod";
2
+ import type { ArtifactProcessor, FileArtifact, SdkIntegration } from "../types.js";
3
+ import type { NodePath, Node } from "@babel/traverse";
4
+ import type { SbElement } from "@superblocksteam/library-shared/types";
5
+ export declare const PromptClassificationAndComplexity: {
6
+ readonly new_app: 1;
7
+ readonly broad_update: 2;
8
+ readonly incremental_edit: 3;
9
+ readonly question: 4;
10
+ readonly unknown: 5;
11
+ };
12
+ export declare const PromptClassificationEnum: z.ZodEnum<[string, ...string[]]>;
13
+ export type PromptClassification = keyof typeof PromptClassificationAndComplexity;
3
14
  export interface ComponentTarget {
4
- name?: string;
5
- path: string;
6
- type: string;
15
+ bindName: string | undefined;
16
+ elementId: SbElement;
17
+ tagName: string;
18
+ filePath: string;
19
+ isCustomComponent: boolean;
20
+ nodePath: NodePath<Node>;
7
21
  }
8
22
  export interface PromptBuildOptions {
9
23
  classification: PromptClassification;
24
+ artifactProcessor: ArtifactProcessor;
10
25
  componentTargets?: ComponentTarget[];
11
26
  workingDirectory?: string;
12
27
  integrationPromptContent?: SdkIntegration[];
13
28
  unresolvedIntegrations?: string[];
14
- filePaths?: string[];
15
- fileContent?: string;
29
+ fileArtifacts?: FileArtifact[];
16
30
  enableDebugLogging?: boolean;
17
31
  }
18
32
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ai-service/prompt-builder-service/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,UAAU,GACV,SAAS,CAAC;AAEd,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,oBAAoB,CAAC;IAGrC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,wBAAwB,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5C,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ai-service/prompt-builder-service/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAGvE,eAAO,MAAM,iCAAiC;;;;;;CAMpC,CAAC;AAEX,eAAO,MAAM,wBAAwB,kCAEpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC9B,MAAM,OAAO,iCAAiC,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,oBAAoB,CAAC;IACrC,iBAAiB,EAAE,iBAAiB,CAAC;IAIrC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,wBAAwB,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5C,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -1,2 +1,11 @@
1
- export {};
1
+ import { z } from "zod";
2
+ // 1 is highest
3
+ export const PromptClassificationAndComplexity = {
4
+ new_app: 1,
5
+ broad_update: 2,
6
+ incremental_edit: 3,
7
+ question: 4,
8
+ unknown: 5,
9
+ };
10
+ export const PromptClassificationEnum = z.enum(Object.keys(PromptClassificationAndComplexity));
2
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/ai-service/prompt-builder-service/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/ai-service/prompt-builder-service/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAe;AACf,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,CAAC;IACf,gBAAgB,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC;CACF,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAC5C,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAA0B,CACxE,CAAC"}
@@ -6,7 +6,7 @@ export var BoltResultType;
6
6
  BoltResultType["Think"] = "think";
7
7
  })(BoltResultType || (BoltResultType = {}));
8
8
  // <boltAction type="file" filePath="package.json">
9
- const fileActionRegex = /<boltAction type="file" filePath="([^"]+)"/g;
9
+ const fileActionRegex = /<boltAction type="([^"]+)" filePath="([^"]+)"/g;
10
10
  export class BoltResultBuffer extends ResultBuffer {
11
11
  buffer = "";
12
12
  currentType = BoltResultType.Text;
@@ -71,7 +71,7 @@ export class BoltResultBuffer extends ResultBuffer {
71
71
  checkFileActions() {
72
72
  const fileActions = this.buffer.matchAll(fileActionRegex);
73
73
  for (const fileAction of fileActions) {
74
- const filePath = fileAction[1];
74
+ const filePath = fileAction[2];
75
75
  if (filePath && !this.filesSeen.has(filePath)) {
76
76
  this.filesSeen.add(filePath);
77
77
  this.params.onPendingFile(filePath);
@@ -1 +1 @@
1
- {"version":3,"file":"bolt.js","sourceRoot":"","sources":["../../../src/ai-service/result-buffer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AAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAC5B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBAChE,CAAC;gBAED,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;IAEO,kBAAkB;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAEO,WAAW;QACjB,QAAQ,IAAI,CAAC,WAAW,EAAE,CAAC;YACzB,KAAK,cAAc,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,OAAO,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACnD,KAAK,cAAc,CAAC,QAAQ;gBAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;YAC3D,KAAK,cAAc,CAAC,KAAK;gBACvB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;CACF"}
@@ -2,13 +2,17 @@ import type { FSM, FSMOnTransitionParams } from "./fsm.js";
2
2
  import type { OperationQueue } from "../../util/operation-queue.js";
3
3
  import type { AppShell } from "../app-interface/shell.js";
4
4
  import type { SourceTrackerInterface } from "../app-interface/source-tracker.js";
5
+ import type { AppContextStore } from "../context/app-context.js";
5
6
  import type { IntegrationStore } from "../integrations/store.js";
7
+ import type { LLMProvider } from "../llm/types.js";
8
+ import type { PromptInterpretTask } from "../prompt-builder-service/classifiers/prompt-interpret-task.js";
9
+ import type { PromptClassification } from "../prompt-builder-service/types.js";
6
10
  import type { TemplateRenderer } from "../template-renderer.js";
7
11
  import type { AiServiceConfig, AiServiceEvents, AnthropicError, ArtifactProcessor, ChangeInfo, FileArtifact } from "../types.js";
8
- import type { AnthropicProvider } from "@ai-sdk/anthropic";
9
12
  import type { AiGenerateRequest, PromptContextIntegration, EditorClientMethods } from "@superblocksteam/library-shared/types";
10
13
  import type { ISocketClient, TracedEventEmitter } from "@superblocksteam/shared";
11
14
  import type { FinishReason } from "ai";
15
+ import type tracer from "dd-trace";
12
16
  declare const $: {
13
17
  readonly Idle: "Idle";
14
18
  readonly AgentPlanning: "AgentPlanning";
@@ -66,6 +70,7 @@ export type ClarkEvent = {
66
70
  providerOptions?: Record<string, unknown>;
67
71
  }[];
68
72
  userPrompt: string;
73
+ classification: PromptClassification;
69
74
  debugging?: boolean;
70
75
  } | {
71
76
  type: typeof AGENT_REPORTED_ERROR_TO_USER;
@@ -192,16 +197,19 @@ export type ClarkContext = {
192
197
  runTimestamp?: string;
193
198
  jwt?: string;
194
199
  availableIntegrations?: PromptContextIntegration[];
200
+ promptInterpretTask?: PromptInterpretTask;
201
+ spanContext?: tracer.llmobs.ExportedLLMObsSpan;
195
202
  };
196
203
  export type ClarkStateHandlerParams = AiServiceConfig & {
197
204
  fsOperationQueue: OperationQueue;
198
205
  templateRenderer: TemplateRenderer;
199
206
  artifactProcessor: ArtifactProcessor;
200
- anthropicProvider: AnthropicProvider;
201
207
  appShell: AppShell;
202
208
  signals: TracedEventEmitter<AiServiceEvents>;
203
209
  sourceTrackerInterface: SourceTrackerInterface;
204
210
  integrationStore: IntegrationStore;
211
+ appContextStore: AppContextStore;
212
+ llmProvider: LLMProvider;
205
213
  };
206
214
  export {};
207
215
  //# sourceMappingURL=clark-fsm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clark-fsm.d.ts","sourceRoot":"","sources":["../../../src/ai-service/state-machine/clark-fsm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;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AC,CAAC,IAAI;QACvB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,IAAI;KACzB;IACD,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE;CACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"agent-planning.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/agent-planning.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAKV,KAAK,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAkBzB,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,QAAQ,uBAAuB,MA0EjB,WAAW,eAAe,KAAG,OAAO,CAAC,IAAI,CAmSxD,CAAC"}
1
+ {"version":3,"file":"agent-planning.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/agent-planning.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAKV,KAAK,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAsBzB,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,QAAQ,uBAAuB,MAmFjB,WAAW,eAAe,KAAG,OAAO,CAAC,IAAI,CAoTxD,CAAC"}
@@ -1,6 +1,8 @@
1
+ import path from "path";
1
2
  import { getLogger } from "../../../util/logger.js";
2
3
  import { LOG_SYSTEM_PROMPT, Paths } from "../../const.js";
3
4
  import { sdkIntegrationFromPromptContext } from "../../integrations/from-prompt-context.js";
5
+ import { PromptInterpretTask, } from "../../prompt-builder-service/classifiers/prompt-interpret-task.js";
4
6
  import { buildCodeGenerationSystemPrompt } from "../../prompt-builder-service/index.js";
5
7
  import { YamlToApiBuilderTransformer } from "../../transform/api-builder/to-sdk-transformer.js";
6
8
  import { applyFileTransformations, matchMultiplePaths, matchPath, } from "../../transform/shared.js";
@@ -52,11 +54,17 @@ ${diff}
52
54
 
53
55
  Address the errors and return the fixed code.`;
54
56
  getLogger().info(`[ai-service] debugging ${debugCount}: ${debuggingPromptIntro}`);
55
- const { systemMessages } = await createSystemPrompt(getMeta()?.request, clark, params, filePaths);
57
+ const { promptInterpretResult, request } = getMeta() ?? {};
58
+ const debugPromptInterpretResult = {
59
+ ...promptInterpretResult,
60
+ classification: "broad_update",
61
+ };
62
+ const { systemMessages } = await createSystemPrompt(request, debugPromptInterpretResult, clark, params, filePaths);
56
63
  transitionTo({
57
64
  type: AGENT_PLANNED,
58
65
  systemMessages,
59
66
  userPrompt: debuggingPrompt,
67
+ classification: debugPromptInterpretResult.classification,
60
68
  debugging: true,
61
69
  });
62
70
  };
@@ -88,6 +96,8 @@ Address the errors and return the fixed code.`;
88
96
  status: "pending",
89
97
  text: "Thinking…",
90
98
  });
99
+ const { promptInterpretTask } = clark.context;
100
+ let promptInterpretResult = await promptInterpretTask?.resolve();
91
101
  if (clark.context.hasSuggestions) {
92
102
  // we're revising a draft
93
103
  // TODO: also incorporate previous annotations and tagged metadata
@@ -105,12 +115,15 @@ ${bulletedPreviousPrompts}
105
115
  The user's new prompt is:
106
116
  ${newPrompt}`;
107
117
  }
118
+ promptInterpretResult = PromptInterpretTask.mergeResults(meta?.promptInterpretResult, promptInterpretResult);
108
119
  updateMeta({
109
120
  promptsForCurrentDraft: [...previousPrompts, newPrompt],
110
121
  });
111
122
  }
112
123
  else {
113
- // not revising; just store the initial prompt
124
+ // not revising; just store the initial prompt and interpretation
125
+ promptInterpretResult =
126
+ promptInterpretResult ?? PromptInterpretTask.defaultResult;
114
127
  updateMeta({
115
128
  promptsForCurrentDraft: [request.prompt],
116
129
  });
@@ -118,7 +131,7 @@ ${newPrompt}`;
118
131
  sendVerboseControlMessages(sendUserMessage);
119
132
  }
120
133
  }
121
- const { systemMessages, filePaths } = await createSystemPrompt(request, clark, params);
134
+ const { systemMessages, filePaths } = await createSystemPrompt(request, promptInterpretResult, clark, params);
122
135
  if (!clark.context.initialFilePaths) {
123
136
  const apiPathMatcher = matchPath(Paths.ApiYamls);
124
137
  const componentPathMatcher = matchMultiplePaths(Paths.ComponentsFile, Paths.ComponentsFolder);
@@ -135,6 +148,7 @@ ${newPrompt}`;
135
148
  request,
136
149
  systemMessages,
137
150
  retryCount: 0,
151
+ promptInterpretResult,
138
152
  });
139
153
  // Store integrations in context so they persist across state transitions
140
154
  clark.updateContext({
@@ -147,6 +161,7 @@ ${newPrompt}`;
147
161
  type: AGENT_PLANNED,
148
162
  systemMessages,
149
163
  userPrompt: request.prompt,
164
+ classification: promptInterpretResult.classification,
150
165
  });
151
166
  break;
152
167
  }
@@ -156,7 +171,7 @@ ${newPrompt}`;
156
171
  case "overloaded_error":
157
172
  {
158
173
  // retry with backoff
159
- const { retryCount = 0, systemMessages, request, } = getMeta() ?? {};
174
+ const { retryCount = 0, systemMessages, request, promptInterpretResult, } = getMeta() ?? {};
160
175
  const backoff = Math.min(retryCount * 1000, 10000);
161
176
  void sendUserMessage({
162
177
  text: `Our systems are a bit overloaded right now. ${backoff > 0 ? `Retrying in ${backoff / 1000}s...` : "Retrying..."}`,
@@ -167,6 +182,7 @@ ${newPrompt}`;
167
182
  type: AGENT_PLANNED,
168
183
  systemMessages: systemMessages,
169
184
  userPrompt: request.prompt,
185
+ classification: promptInterpretResult.classification,
170
186
  });
171
187
  }, backoff);
172
188
  updateMeta({
@@ -292,10 +308,10 @@ ${error.stack ?? error.message}
292
308
  }
293
309
  };
294
310
  };
295
- const createSystemPrompt = async (request, clark, params, appFilePatterns = ["**/*.{ts,tsx,yaml,css}", "package.json"]) => {
311
+ const createSystemPrompt = async (request, promptInterpretResult, clark, params, appFilePatterns = ["**/*.{ts,tsx,yaml,css}", "package.json"]) => {
296
312
  const { appShell, templateRenderer, artifactProcessor } = params;
313
+ getLogger().debug(`Building system prompt with: ${JSON.stringify(promptInterpretResult)}`);
297
314
  const appFiles = await appShell.readFiles(appFilePatterns);
298
- const currentWorkingDirectory = appShell.appRootDirPath;
299
315
  const transformedForPrompt = await applyFileTransformations(appFiles, [
300
316
  new YamlToApiBuilderTransformer({
301
317
  appRootDirPath: appShell.appRootDirPath,
@@ -304,7 +320,6 @@ const createSystemPrompt = async (request, clark, params, appFilePatterns = ["**
304
320
  templateRenderer,
305
321
  }),
306
322
  ]);
307
- const artifactContext = artifactProcessor.createArtifactContext(transformedForPrompt);
308
323
  let finalIntegrations = [];
309
324
  if (request?.promptContext?.integrations) {
310
325
  const taggedIntegrations = await Promise.all(request?.promptContext?.integrations?.map(async (integration) => sdkIntegrationFromPromptContext(integration, request.prompt, clark, params)));
@@ -312,19 +327,42 @@ const createSystemPrompt = async (request, clark, params, appFilePatterns = ["**
312
327
  taggedIntegrations?.filter((integration) => integration !== null) ?? [];
313
328
  }
314
329
  const systemMessages = await buildCodeGenerationSystemPrompt({
315
- classification: "new_app",
316
- workingDirectory: currentWorkingDirectory,
330
+ classification: promptInterpretResult.classification,
331
+ workingDirectory: appShell.appRootDirPath,
332
+ componentTargets: resolveComponentTargets(promptInterpretResult.components, params.sourceTrackerInterface, params.appContextStore, params.appShell),
317
333
  integrationPromptContent: finalIntegrations ?? [],
318
334
  unresolvedIntegrations: request?.promptContext?.unresolvedIntegrations ?? [],
319
- filePaths: appFiles.map((file) => file.filePath),
320
- fileContent: artifactContext.content,
335
+ fileArtifacts: transformedForPrompt,
321
336
  enableDebugLogging: LOG_SYSTEM_PROMPT,
337
+ artifactProcessor,
322
338
  });
323
339
  return {
324
340
  systemMessages,
325
341
  filePaths: appFiles.map((file) => file.filePath),
326
342
  };
327
343
  };
344
+ const resolveComponentTargets = (components, sourceTracker, appContextStore, appShell) => {
345
+ const result = [];
346
+ for (const component of components ?? []) {
347
+ const filePath = sourceTracker.getElementToFilePath(component);
348
+ const nodePath = sourceTracker.getElementToLocation(component);
349
+ const isCustomComponent = sourceTracker.isCustomComponent(component);
350
+ const semanticInfo = appContextStore.componentSemanticsById[component];
351
+ if (!semanticInfo) {
352
+ continue;
353
+ }
354
+ const { id, tagName, bindName } = semanticInfo;
355
+ result.push({
356
+ elementId: id,
357
+ bindName,
358
+ tagName,
359
+ filePath: path.relative(appShell.appRootDirPath, filePath),
360
+ isCustomComponent,
361
+ nodePath,
362
+ });
363
+ }
364
+ return result;
365
+ };
328
366
  const sendVerboseControlMessages = (sendUserMessage) => {
329
367
  const messages = [
330
368
  [0, "Referencing your design system"],
@@ -1 +1 @@
1
- {"version":3,"file":"agent-planning.js","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/agent-planning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,SAAS,GACV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,WAAW,EACX,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA0B1D,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAY,EACZ,MAA+B,EAC/B,EAAE;IACF,MAAM,YAAY,GAAG,cAAc,CAAiB,KAAK,CAAC,CAAC;IAC3D,MAAM,eAAe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AAS;QACzB,gBAAgB,EAAE,uBAAuB;QACzC,wBAAwB,EAAE,iBAAiB,IAAI,EAAE;QACjD,sBAAsB,EACpB,OAAO,EAAE,aAAa,EAAE,sBAAsB,IAAI,EAAE;QACtD,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;QAChD,WAAW,EAAE,eAAe,CAAC,OAAO;QACpC,kBAAkB,EAAE,iBAAiB;KACtC,CAAC,CAAC;IAEH,OAAO;QACL,cAAc;QACd,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CACjC,eAA0D,EAC1D,EAAE;IACF,MAAM,QAAQ,GAAG;QACf,CAAC,CAAC,EAAE,gCAAgC,CAAC;QACrC,CAAC,GAAG,EAAE,+CAA+C,CAAC;QACtD,CAAC,IAAI,EAAE,8BAA8B,CAAC;QACtC,CAAC,IAAI,EAAE,6BAA6B,CAAC;KAC7B,CAAC;IAEX,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC;QACrC,KAAK,eAAe,CAClB;YACE,IAAI;YACJ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,SAAS;SAClB,EACD,KAAK,CACN,CAAC;QAEF,KAAK,eAAe,CAClB;YACE,IAAI;YACJ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,WAAW;SACpB,EACD,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CACnC,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"agent-planning.js","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/agent-planning.ts"],"names":[],"mappings":"A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AC;AACH,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { Clark, ClarkStateHandlerParams, ClarkTransition } from "../clark-fsm.js";
2
- export declare const doLLMGenerating: (clark: Clark, { anthropicProvider, appShell, artifactProcessor, templateRenderer, draftInterface, }: ClarkStateHandlerParams) => ({ event }: ClarkTransition) => Promise<void>;
2
+ export declare const doLLMGenerating: (clark: Clark, { appShell, artifactProcessor, templateRenderer, draftInterface, llmProvider, }: ClarkStateHandlerParams) => ({ event }: ClarkTransition) => Promise<void>;
3
3
  //# sourceMappingURL=llm-generating.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"llm-generating.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/llm-generating.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAKV,KAAK,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,uFAMG,uBAAuB,iBAYQ,eAAe,KAAG,OAAO,CAAC,IAAI,CAsWjE,CAAC"}
1
+ {"version":3,"file":"llm-generating.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/state-machine/handlers/llm-generating.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAKV,KAAK,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,EACZ,iFAMG,uBAAuB,MAYZ,WAAW,eAAe,KAAG,OAAO,CAAC,IAAI,CA0WxD,CAAC"}