@superblocksteam/vite-plugin-file-sync 2.0.170 → 2.0.171-next.1

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 (507) hide show
  1. package/dist/ai-service/agent/prompts/api-prompts.d.ts.map +1 -1
  2. package/dist/ai-service/agent/prompts/api-prompts.js +4 -6
  3. package/dist/ai-service/agent/prompts/api-prompts.js.map +1 -1
  4. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts +3 -12
  5. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
  6. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +144 -71
  7. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
  8. package/dist/ai-service/agent/subagents/testing/types.d.ts +2 -1
  9. package/dist/ai-service/agent/subagents/testing/types.d.ts.map +1 -1
  10. package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -1
  11. package/dist/ai-service/agent/tool-message-utils.js +47 -36
  12. package/dist/ai-service/agent/tool-message-utils.js.map +1 -1
  13. package/dist/ai-service/agent/tool-result-metrics.d.ts +15 -0
  14. package/dist/ai-service/agent/tool-result-metrics.d.ts.map +1 -1
  15. package/dist/ai-service/agent/tool-result-metrics.js +28 -0
  16. package/dist/ai-service/agent/tool-result-metrics.js.map +1 -1
  17. package/dist/ai-service/agent/tools/apis/analysis.d.ts +24 -2
  18. package/dist/ai-service/agent/tools/apis/analysis.d.ts.map +1 -1
  19. package/dist/ai-service/agent/tools/apis/analysis.js +164 -11
  20. package/dist/ai-service/agent/tools/apis/analysis.js.map +1 -1
  21. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts +2 -1
  22. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts.map +1 -1
  23. package/dist/ai-service/agent/tools/apis/contained-source-reader.d.ts +11 -0
  24. package/dist/ai-service/agent/tools/apis/contained-source-reader.d.ts.map +1 -0
  25. package/dist/ai-service/agent/tools/apis/contained-source-reader.js +48 -0
  26. package/dist/ai-service/agent/tools/apis/contained-source-reader.js.map +1 -0
  27. package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts +1 -1
  28. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts +37 -10
  29. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -1
  30. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +140 -70
  31. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -1
  32. package/dist/ai-service/agent/tools/apis/spreadsheet-csv.d.ts +6 -20
  33. package/dist/ai-service/agent/tools/apis/spreadsheet-csv.d.ts.map +1 -1
  34. package/dist/ai-service/agent/tools/apis/spreadsheet-csv.js +3 -3
  35. package/dist/ai-service/agent/tools/apis/spreadsheet-csv.js.map +1 -1
  36. package/dist/ai-service/agent/tools/apis/test-api-metrics.d.ts +8 -0
  37. package/dist/ai-service/agent/tools/apis/test-api-metrics.d.ts.map +1 -0
  38. package/dist/ai-service/agent/tools/apis/test-api-metrics.js +41 -0
  39. package/dist/ai-service/agent/tools/apis/test-api-metrics.js.map +1 -0
  40. package/dist/ai-service/agent/tools/apis/test-api-timing.d.ts +27 -0
  41. package/dist/ai-service/agent/tools/apis/test-api-timing.d.ts.map +1 -0
  42. package/dist/ai-service/agent/tools/apis/test-api-timing.js +25 -0
  43. package/dist/ai-service/agent/tools/apis/test-api-timing.js.map +1 -0
  44. package/dist/ai-service/agent/tools/apis/test-api.d.ts +6 -2
  45. package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -1
  46. package/dist/ai-service/agent/tools/apis/test-api.js +119 -20
  47. package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -1
  48. package/dist/ai-service/agent/tools/apis/write-api.d.ts +2 -2
  49. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts +0 -18
  50. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts.map +1 -1
  51. package/dist/ai-service/agent/tools/build-capture-screenshot.js +2 -2
  52. package/dist/ai-service/agent/tools/build-capture-screenshot.js.map +1 -1
  53. package/dist/ai-service/agent/tools/build-copy-directory.d.ts +2 -2
  54. package/dist/ai-service/agent/tools/build-copy-file.d.ts +1 -1
  55. package/dist/ai-service/agent/tools/build-copy-utils.d.ts +8 -8
  56. package/dist/ai-service/agent/tools/build-delete-file.d.ts +1 -1
  57. package/dist/ai-service/agent/tools/build-install-packages.d.ts +32 -5
  58. package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -1
  59. package/dist/ai-service/agent/tools/build-install-packages.js +20 -19
  60. package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -1
  61. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +3 -3
  62. package/dist/ai-service/agent/tools/build-manage-packages.d.ts +19 -0
  63. package/dist/ai-service/agent/tools/build-manage-packages.d.ts.map +1 -0
  64. package/dist/ai-service/agent/tools/build-manage-packages.js +220 -0
  65. package/dist/ai-service/agent/tools/build-manage-packages.js.map +1 -0
  66. package/dist/ai-service/agent/tools/build-read-file.d.ts +5 -14
  67. package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -1
  68. package/dist/ai-service/agent/tools/build-read-file.js +5 -8
  69. package/dist/ai-service/agent/tools/build-read-file.js.map +1 -1
  70. package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts +10 -98
  71. package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts.map +1 -1
  72. package/dist/ai-service/agent/tools/databases/dev-database-tasks.js +1 -2
  73. package/dist/ai-service/agent/tools/databases/dev-database-tasks.js.map +1 -1
  74. package/dist/ai-service/agent/tools/debug-cache.d.ts +0 -12
  75. package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -1
  76. package/dist/ai-service/agent/tools/debug-cache.js +1 -1
  77. package/dist/ai-service/agent/tools/debug-cache.js.map +1 -1
  78. package/dist/ai-service/agent/tools/get-logs.d.ts +3 -3
  79. package/dist/ai-service/agent/tools/get-security-findings.d.ts +1 -1
  80. package/dist/ai-service/agent/tools/index.d.ts +3 -3
  81. package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
  82. package/dist/ai-service/agent/tools/index.js +2 -2
  83. package/dist/ai-service/agent/tools/index.js.map +1 -1
  84. package/dist/ai-service/agent/tools/integrations/errors.d.ts.map +1 -1
  85. package/dist/ai-service/agent/tools/integrations/errors.js +3 -0
  86. package/dist/ai-service/agent/tools/integrations/errors.js.map +1 -1
  87. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +42 -15
  88. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -1
  89. package/dist/ai-service/agent/tools/integrations/execute-request.js +85 -11
  90. package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -1
  91. package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts +0 -2
  92. package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts.map +1 -1
  93. package/dist/ai-service/agent/tools/integrations/managed-app-database.js +1 -1
  94. package/dist/ai-service/agent/tools/integrations/managed-app-database.js.map +1 -1
  95. package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
  96. package/dist/ai-service/agent/tools/integrations/metadata.js +1 -0
  97. package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
  98. package/dist/ai-service/agent/tools/read-state-trackers.d.ts +16 -2
  99. package/dist/ai-service/agent/tools/read-state-trackers.d.ts.map +1 -1
  100. package/dist/ai-service/agent/tools/read-state-trackers.js +11 -2
  101. package/dist/ai-service/agent/tools/read-state-trackers.js.map +1 -1
  102. package/dist/ai-service/agent/tools/report-security-findings.d.ts +18 -18
  103. package/dist/ai-service/agent/tools.d.ts.map +1 -1
  104. package/dist/ai-service/agent/tools.js +13 -6
  105. package/dist/ai-service/agent/tools.js.map +1 -1
  106. package/dist/ai-service/agent/tools2/registry.d.ts +20 -1
  107. package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -1
  108. package/dist/ai-service/agent/tools2/registry.js +55 -9
  109. package/dist/ai-service/agent/tools2/registry.js.map +1 -1
  110. package/dist/ai-service/agent/tools2/tools/bash.d.ts +1 -1
  111. package/dist/ai-service/agent/tools2/tools/git.d.ts +2 -2
  112. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts.map +1 -1
  113. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js +25 -0
  114. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js.map +1 -1
  115. package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts +9 -3
  116. package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts.map +1 -1
  117. package/dist/ai-service/agent/tools2/tools/grep-metadata.js +17 -0
  118. package/dist/ai-service/agent/tools2/tools/grep-metadata.js.map +1 -1
  119. package/dist/ai-service/agent/tools2/tools/grep.d.ts +1 -1
  120. package/dist/ai-service/agent/tools2/tools/grep.d.ts.map +1 -1
  121. package/dist/ai-service/agent/tools2/tools/grep.js +50 -25
  122. package/dist/ai-service/agent/tools2/tools/grep.js.map +1 -1
  123. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts +1 -1
  124. package/dist/ai-service/agent/utils.d.ts.map +1 -1
  125. package/dist/ai-service/agent/utils.js +3 -3
  126. package/dist/ai-service/agent/utils.js.map +1 -1
  127. package/dist/ai-service/app-interface/file-system-interface.d.ts +0 -6
  128. package/dist/ai-service/app-interface/file-system-interface.d.ts.map +1 -1
  129. package/dist/ai-service/app-interface/file-system-interface.js +39 -97
  130. package/dist/ai-service/app-interface/file-system-interface.js.map +1 -1
  131. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts.map +1 -1
  132. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js +2 -2
  133. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -1
  134. package/dist/ai-service/app-interface/filesystem/validation.js +1 -1
  135. package/dist/ai-service/app-interface/filesystem/validation.js.map +1 -1
  136. package/dist/ai-service/app-interface/npm-package-lookup.d.ts +1 -3
  137. package/dist/ai-service/app-interface/npm-package-lookup.d.ts.map +1 -1
  138. package/dist/ai-service/app-interface/npm-package-lookup.js +1 -1
  139. package/dist/ai-service/app-interface/npm-package-lookup.js.map +1 -1
  140. package/dist/ai-service/app-interface/pnpm-lockfile.d.ts.map +1 -1
  141. package/dist/ai-service/app-interface/pnpm-lockfile.js +2 -4
  142. package/dist/ai-service/app-interface/pnpm-lockfile.js.map +1 -1
  143. package/dist/ai-service/app-interface/shell.d.ts +38 -15
  144. package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
  145. package/dist/ai-service/app-interface/shell.js +646 -48
  146. package/dist/ai-service/app-interface/shell.js.map +1 -1
  147. package/dist/ai-service/app-interface/vulnerability-gate.d.ts +7 -0
  148. package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -1
  149. package/dist/ai-service/app-interface/vulnerability-gate.js +16 -6
  150. package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -1
  151. package/dist/ai-service/app-layout.d.ts +3 -0
  152. package/dist/ai-service/app-layout.d.ts.map +1 -1
  153. package/dist/ai-service/app-layout.js +14 -0
  154. package/dist/ai-service/app-layout.js.map +1 -1
  155. package/dist/ai-service/app-skills/parser.d.ts +2 -1
  156. package/dist/ai-service/app-skills/parser.d.ts.map +1 -1
  157. package/dist/ai-service/attachments/store.d.ts +4 -4
  158. package/dist/ai-service/attachments/store.d.ts.map +1 -1
  159. package/dist/ai-service/chat/chat-session-store-metrics.d.ts +1 -2
  160. package/dist/ai-service/chat/chat-session-store-metrics.d.ts.map +1 -1
  161. package/dist/ai-service/chat/chat-session-store-metrics.js +0 -6
  162. package/dist/ai-service/chat/chat-session-store-metrics.js.map +1 -1
  163. package/dist/ai-service/chat/chat-session-store.d.ts +2 -11
  164. package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -1
  165. package/dist/ai-service/chat/chat-session-store.js +21 -4
  166. package/dist/ai-service/chat/chat-session-store.js.map +1 -1
  167. package/dist/ai-service/chat/utils.d.ts +1 -2
  168. package/dist/ai-service/chat/utils.d.ts.map +1 -1
  169. package/dist/ai-service/chat/utils.js +0 -1
  170. package/dist/ai-service/chat/utils.js.map +1 -1
  171. package/dist/ai-service/checklist/persisted-checklist-store.d.ts +3 -3
  172. package/dist/ai-service/checklist/persisted-checklist-store.d.ts.map +1 -1
  173. package/dist/ai-service/checklist/persisted-checklist-store.js +4 -2
  174. package/dist/ai-service/checklist/persisted-checklist-store.js.map +1 -1
  175. package/dist/ai-service/checklist/remediation-findings-client.d.ts +1 -1
  176. package/dist/ai-service/context/app-context.d.ts +7 -39
  177. package/dist/ai-service/context/app-context.d.ts.map +1 -1
  178. package/dist/ai-service/context/app-context.js +29 -110
  179. package/dist/ai-service/context/app-context.js.map +1 -1
  180. package/dist/ai-service/context-clear-metrics.d.ts +11 -0
  181. package/dist/ai-service/context-clear-metrics.d.ts.map +1 -0
  182. package/dist/ai-service/context-clear-metrics.js +64 -0
  183. package/dist/ai-service/context-clear-metrics.js.map +1 -0
  184. package/dist/ai-service/context-download.js +2 -2
  185. package/dist/ai-service/context-download.js.map +1 -1
  186. package/dist/ai-service/edit-after-clark.d.ts +0 -5
  187. package/dist/ai-service/edit-after-clark.d.ts.map +1 -1
  188. package/dist/ai-service/edit-after-clark.js +1 -1
  189. package/dist/ai-service/edit-after-clark.js.map +1 -1
  190. package/dist/ai-service/features.d.ts +20 -4
  191. package/dist/ai-service/features.d.ts.map +1 -1
  192. package/dist/ai-service/features.js +20 -4
  193. package/dist/ai-service/features.js.map +1 -1
  194. package/dist/ai-service/filter-disabled-tools-for-migration.js +1 -1
  195. package/dist/ai-service/filter-disabled-tools-for-migration.js.map +1 -1
  196. package/dist/ai-service/index.d.ts +58 -0
  197. package/dist/ai-service/index.d.ts.map +1 -1
  198. package/dist/ai-service/index.js +186 -21
  199. package/dist/ai-service/index.js.map +1 -1
  200. package/dist/ai-service/integrations/store.d.ts +6 -0
  201. package/dist/ai-service/integrations/store.d.ts.map +1 -1
  202. package/dist/ai-service/integrations/store.js +101 -3
  203. package/dist/ai-service/integrations/store.js.map +1 -1
  204. package/dist/ai-service/judge/tools/playwright-action.d.ts +1 -1
  205. package/dist/ai-service/judge/tools/submit-feedback.d.ts +1 -1
  206. package/dist/ai-service/live-edit-events/forwarder.d.ts +1 -12
  207. package/dist/ai-service/live-edit-events/forwarder.d.ts.map +1 -1
  208. package/dist/ai-service/live-edit-events/forwarder.js +1 -7
  209. package/dist/ai-service/live-edit-events/forwarder.js.map +1 -1
  210. package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts.map +1 -1
  211. package/dist/ai-service/llm/context-v2/compaction/client-side.js +15 -5
  212. package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -1
  213. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts +6 -0
  214. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts.map +1 -1
  215. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -1
  216. package/dist/ai-service/llm/context-v2/compaction/server-side.js +5 -1
  217. package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -1
  218. package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -1
  219. package/dist/ai-service/llm/context-v2/compactor.js +34 -12
  220. package/dist/ai-service/llm/context-v2/compactor.js.map +1 -1
  221. package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -1
  222. package/dist/ai-service/llm/context-v2/context-management.js +9 -0
  223. package/dist/ai-service/llm/context-v2/context-management.js.map +1 -1
  224. package/dist/ai-service/llm/context-v2/context-metrics.d.ts +4 -0
  225. package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -1
  226. package/dist/ai-service/llm/context-v2/context-metrics.js +15 -3
  227. package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -1
  228. package/dist/ai-service/llm/context-v2/context.d.ts +36 -6
  229. package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -1
  230. package/dist/ai-service/llm/context-v2/context.js +72 -28
  231. package/dist/ai-service/llm/context-v2/context.js.map +1 -1
  232. package/dist/ai-service/llm/context-v2/manager.d.ts +3 -3
  233. package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -1
  234. package/dist/ai-service/llm/context-v2/manager.js +13 -7
  235. package/dist/ai-service/llm/context-v2/manager.js.map +1 -1
  236. package/dist/ai-service/llm/context-v2/migrations/types.d.ts +2 -1
  237. package/dist/ai-service/llm/context-v2/migrations/types.d.ts.map +1 -1
  238. package/dist/ai-service/llm/context-v2/storage/event-types.d.ts +17 -17
  239. package/dist/ai-service/llm/context-v2/storage/event-types.d.ts.map +1 -1
  240. package/dist/ai-service/llm/context-v2/storage/event-types.js +3 -23
  241. package/dist/ai-service/llm/context-v2/storage/event-types.js.map +1 -1
  242. package/dist/ai-service/llm/context-v2/types.d.ts +9 -1
  243. package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -1
  244. package/dist/ai-service/llm/context-v2/types.js.map +1 -1
  245. package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts +20 -4
  246. package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts.map +1 -1
  247. package/dist/ai-service/llm/context-v2/uniquify-filenames.js +128 -29
  248. package/dist/ai-service/llm/context-v2/uniquify-filenames.js.map +1 -1
  249. package/dist/ai-service/llm/error.d.ts +1 -1
  250. package/dist/ai-service/llm/error.d.ts.map +1 -1
  251. package/dist/ai-service/llm/error.js +57 -7
  252. package/dist/ai-service/llm/error.js.map +1 -1
  253. package/dist/ai-service/llm/stream/config.d.ts +3 -3
  254. package/dist/ai-service/llm/stream/config.d.ts.map +1 -1
  255. package/dist/ai-service/llm/stream/errors.d.ts +3 -0
  256. package/dist/ai-service/llm/stream/errors.d.ts.map +1 -1
  257. package/dist/ai-service/llm/stream/errors.js +72 -4
  258. package/dist/ai-service/llm/stream/errors.js.map +1 -1
  259. package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts +0 -6
  260. package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts.map +1 -1
  261. package/dist/ai-service/llm/stream/observers/workflow-usage.js +2 -2
  262. package/dist/ai-service/llm/stream/observers/workflow-usage.js.map +1 -1
  263. package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -1
  264. package/dist/ai-service/llm/stream/orchestrator.js +6 -1
  265. package/dist/ai-service/llm/stream/orchestrator.js.map +1 -1
  266. package/dist/ai-service/managed-native-db-availability.d.ts +5 -2
  267. package/dist/ai-service/managed-native-db-availability.d.ts.map +1 -1
  268. package/dist/ai-service/managed-native-db-availability.js +5 -1
  269. package/dist/ai-service/managed-native-db-availability.js.map +1 -1
  270. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +2 -0
  271. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -1
  272. package/dist/ai-service/migration-prompt-gating.d.ts +1 -0
  273. package/dist/ai-service/migration-prompt-gating.d.ts.map +1 -1
  274. package/dist/ai-service/migration-prompt-gating.js +3 -0
  275. package/dist/ai-service/migration-prompt-gating.js.map +1 -1
  276. package/dist/ai-service/migration-turns-log.d.ts +3 -2
  277. package/dist/ai-service/migration-turns-log.d.ts.map +1 -1
  278. package/dist/ai-service/migration-turns-log.js.map +1 -1
  279. package/dist/ai-service/policy-agent-metrics.d.ts +2 -4
  280. package/dist/ai-service/policy-agent-metrics.d.ts.map +1 -1
  281. package/dist/ai-service/policy-agent-metrics.js +3 -3
  282. package/dist/ai-service/policy-agent-metrics.js.map +1 -1
  283. package/dist/ai-service/policy-gate-remediation-usage.d.ts.map +1 -1
  284. package/dist/ai-service/policy-gate-remediation-usage.js +29 -19
  285. package/dist/ai-service/policy-gate-remediation-usage.js.map +1 -1
  286. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +1 -1
  287. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -1
  288. package/dist/ai-service/recording/types.d.ts +6 -5
  289. package/dist/ai-service/recording/types.d.ts.map +1 -1
  290. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
  291. package/dist/ai-service/skills/system/_registry.generated.js +10 -0
  292. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
  293. package/dist/ai-service/skills/system/app-database/skill.generated.d.ts +2 -0
  294. package/dist/ai-service/skills/system/app-database/skill.generated.d.ts.map +1 -0
  295. package/dist/ai-service/skills/system/app-database/skill.generated.js +79 -0
  296. package/dist/ai-service/skills/system/app-database/skill.generated.js.map +1 -0
  297. package/dist/ai-service/skills/system/resolve.d.ts +1 -1
  298. package/dist/ai-service/skills/system/resolve.d.ts.map +1 -1
  299. package/dist/ai-service/skills/system/resolve.js +25 -2
  300. package/dist/ai-service/skills/system/resolve.js.map +1 -1
  301. package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.d.ts +1 -1
  302. package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.d.ts.map +1 -1
  303. package/dist/ai-service/skills/system/spreadsheet-import/skill.generated.js +1 -1
  304. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.d.ts +2 -0
  305. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.d.ts.map +1 -0
  306. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.js +5 -0
  307. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-plain.generated.js.map +1 -0
  308. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.d.ts +2 -0
  309. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.d.ts.map +1 -0
  310. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.js +5 -0
  311. package/dist/ai-service/skills/system/superblocks-frontend/_variants/base-ui-registered.generated.js.map +1 -0
  312. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.d.ts +2 -0
  313. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.d.ts.map +1 -0
  314. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.js +32 -0
  315. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-lucide.generated.js.map +1 -0
  316. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.d.ts +2 -0
  317. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.d.ts.map +1 -0
  318. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.js +34 -0
  319. package/dist/ai-service/skills/system/superblocks-frontend/_variants/icons-wrapper.generated.js.map +1 -0
  320. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +1 -1
  321. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -1
  322. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +99 -68
  323. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
  324. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +1 -1
  325. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -1
  326. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +4 -4
  327. package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.d.ts +1 -1
  328. package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.d.ts.map +1 -1
  329. package/dist/ai-service/skills/system/superblocks-sdk-api/skill.generated.js +7 -7
  330. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +1 -1
  331. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -1
  332. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +1 -1
  333. package/dist/ai-service/state-machine/clark-fsm.d.ts +2 -3
  334. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  335. package/dist/ai-service/state-machine/clark-fsm.js +1 -1
  336. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  337. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  338. package/dist/ai-service/state-machine/handlers/agent-planning.js +1 -4
  339. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  340. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  341. package/dist/ai-service/state-machine/handlers/llm-generating.js +21 -12
  342. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  343. package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.d.ts +63 -0
  344. package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.d.ts.map +1 -0
  345. package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.js +96 -0
  346. package/dist/ai-service/state-machine/helpers/prompt-degradation-cause.js.map +1 -0
  347. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts +12 -3
  348. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts.map +1 -1
  349. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js +89 -17
  350. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js.map +1 -1
  351. package/dist/ai-service/state-machine/helpers/prompt-org-claims.d.ts +17 -0
  352. package/dist/ai-service/state-machine/helpers/prompt-org-claims.d.ts.map +1 -0
  353. package/dist/ai-service/state-machine/helpers/prompt-org-claims.js +50 -0
  354. package/dist/ai-service/state-machine/helpers/prompt-org-claims.js.map +1 -0
  355. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts +7 -1
  356. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts.map +1 -1
  357. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js +35 -5
  358. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js.map +1 -1
  359. package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
  360. package/dist/ai-service/state-machine/mocks.js +1 -4
  361. package/dist/ai-service/state-machine/mocks.js.map +1 -1
  362. package/dist/ai-service/tasks/peer-push.d.ts +2 -1
  363. package/dist/ai-service/tasks/peer-push.d.ts.map +1 -1
  364. package/dist/ai-service/test-utils/metrics-harness.d.ts +2 -1
  365. package/dist/ai-service/test-utils/metrics-harness.d.ts.map +1 -1
  366. package/dist/ai-service/util/llm-config-utils.d.ts +16 -5
  367. package/dist/ai-service/util/llm-config-utils.d.ts.map +1 -1
  368. package/dist/ai-service/util/llm-config-utils.js +25 -3
  369. package/dist/ai-service/util/llm-config-utils.js.map +1 -1
  370. package/dist/ai-service/util/parse-jwt.d.ts +5 -1
  371. package/dist/ai-service/util/parse-jwt.d.ts.map +1 -1
  372. package/dist/ai-service/util/parse-jwt.js +9 -1
  373. package/dist/ai-service/util/parse-jwt.js.map +1 -1
  374. package/dist/app-scope-source.d.ts +13 -0
  375. package/dist/app-scope-source.d.ts.map +1 -0
  376. package/dist/app-scope-source.js +68 -0
  377. package/dist/app-scope-source.js.map +1 -0
  378. package/dist/extract-api-integrations.d.ts +28 -6
  379. package/dist/extract-api-integrations.d.ts.map +1 -1
  380. package/dist/extract-api-integrations.js +166 -98
  381. package/dist/extract-api-integrations.js.map +1 -1
  382. package/dist/file-sync-vite-plugin.d.ts +1 -5
  383. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  384. package/dist/file-sync-vite-plugin.js +45 -71
  385. package/dist/file-sync-vite-plugin.js.map +1 -1
  386. package/dist/file-system-helpers.d.ts +3 -8
  387. package/dist/file-system-helpers.d.ts.map +1 -1
  388. package/dist/file-system-helpers.js +39 -10
  389. package/dist/file-system-helpers.js.map +1 -1
  390. package/dist/file-system-manager.d.ts +2 -9
  391. package/dist/file-system-manager.d.ts.map +1 -1
  392. package/dist/file-system-manager.js +50 -118
  393. package/dist/file-system-manager.js.map +1 -1
  394. package/dist/git-service/index.d.ts.map +1 -1
  395. package/dist/git-service/index.js +8 -0
  396. package/dist/git-service/index.js.map +1 -1
  397. package/dist/lock-service/index.d.ts +24 -0
  398. package/dist/lock-service/index.d.ts.map +1 -1
  399. package/dist/lock-service/index.js +74 -2
  400. package/dist/lock-service/index.js.map +1 -1
  401. package/dist/migration/integration-write-policy.d.ts +2 -1
  402. package/dist/migration/integration-write-policy.d.ts.map +1 -1
  403. package/dist/migration/integration-write-policy.js.map +1 -1
  404. package/dist/migration/restructure.d.ts +1 -1
  405. package/dist/migration/restructure.d.ts.map +1 -1
  406. package/dist/migration/restructure.js +1 -1
  407. package/dist/migration/restructure.js.map +1 -1
  408. package/dist/migration/translation-prompt.js +1 -1
  409. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +0 -69
  410. package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +0 -31
  411. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +0 -52
  412. package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +5 -79
  413. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +14 -161
  414. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +1 -53
  415. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +4 -56
  416. package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +0 -34
  417. package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +3 -51
  418. package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +0 -42
  419. package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +0 -55
  420. package/dist/migration-templates/app-fullstack/client/components/ui/dropdown-menu.tsx +0 -29
  421. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +0 -64
  422. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +0 -57
  423. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +0 -30
  424. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +16 -172
  425. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +0 -44
  426. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +0 -64
  427. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +0 -31
  428. package/dist/migration-templates/app-fullstack/client/components/ui/scroll-area.tsx +0 -30
  429. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +0 -41
  430. package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +0 -29
  431. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +0 -64
  432. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +30 -265
  433. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +0 -45
  434. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +0 -41
  435. package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +0 -32
  436. package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +0 -23
  437. package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +0 -48
  438. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +0 -81
  439. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +0 -46
  440. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +0 -63
  441. package/dist/migration-templates/app-fullstack/eslint.config.js +7 -0
  442. package/dist/migration-templates/app-fullstack/package.json +0 -3
  443. package/dist/parsing/types.d.ts +3 -2
  444. package/dist/parsing/types.d.ts.map +1 -1
  445. package/dist/policy-gate-runner.d.ts +1 -1
  446. package/dist/policy-gate-runner.d.ts.map +1 -1
  447. package/dist/policy-gate-runner.js.map +1 -1
  448. package/dist/reconnect-guard-plugin.d.ts +0 -1
  449. package/dist/reconnect-guard-plugin.d.ts.map +1 -1
  450. package/dist/reconnect-guard-plugin.js +1 -1
  451. package/dist/reconnect-guard-plugin.js.map +1 -1
  452. package/dist/resolver.d.ts +1 -1
  453. package/dist/resolver.d.ts.map +1 -1
  454. package/dist/resolver.js +2 -2
  455. package/dist/resolver.js.map +1 -1
  456. package/dist/socket-manager.d.ts.map +1 -1
  457. package/dist/socket-manager.js +12 -2
  458. package/dist/socket-manager.js.map +1 -1
  459. package/dist/source-tracker.d.ts +5 -15
  460. package/dist/source-tracker.d.ts.map +1 -1
  461. package/dist/source-tracker.js +28 -66
  462. package/dist/source-tracker.js.map +1 -1
  463. package/dist/sync-service/checkpoint-result.d.ts +6 -5
  464. package/dist/sync-service/checkpoint-result.d.ts.map +1 -1
  465. package/dist/sync-service/checkpoint-result.js +9 -8
  466. package/dist/sync-service/checkpoint-result.js.map +1 -1
  467. package/dist/sync-service/index.d.ts +1 -0
  468. package/dist/sync-service/index.d.ts.map +1 -1
  469. package/dist/sync-service/index.js +8 -1
  470. package/dist/sync-service/index.js.map +1 -1
  471. package/dist/sync-service/snapshot/types.d.ts +3 -2
  472. package/dist/sync-service/snapshot/types.d.ts.map +1 -1
  473. package/dist/util/generation-wait-timeout-error.d.ts +12 -0
  474. package/dist/util/generation-wait-timeout-error.d.ts.map +1 -0
  475. package/dist/util/generation-wait-timeout-error.js +16 -0
  476. package/dist/util/generation-wait-timeout-error.js.map +1 -0
  477. package/package.json +9 -13
  478. package/dist/ai-service/agent/tools/apis/sdk-root-documentation.d.ts +0 -20
  479. package/dist/ai-service/agent/tools/apis/sdk-root-documentation.d.ts.map +0 -1
  480. package/dist/ai-service/agent/tools/apis/sdk-root-documentation.js +0 -284
  481. package/dist/ai-service/agent/tools/apis/sdk-root-documentation.js.map +0 -1
  482. package/dist/migration-templates/app-fullstack/client/components/hooks/use-active-page.ts +0 -73
  483. package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +0 -312
  484. package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +0 -264
  485. package/dist/migration-templates/app-fullstack/client/components/ui/code-block-content.tsx +0 -66
  486. package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +0 -255
  487. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +0 -312
  488. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +0 -105
  489. package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +0 -120
  490. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +0 -56
  491. package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +0 -264
  492. package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +0 -119
  493. package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +0 -181
  494. package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +0 -252
  495. package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +0 -250
  496. package/dist/refactor/entities.d.ts +0 -6
  497. package/dist/refactor/entities.d.ts.map +0 -1
  498. package/dist/refactor/entities.js +0 -65
  499. package/dist/refactor/entities.js.map +0 -1
  500. package/dist/refactor/javascript.d.ts +0 -15
  501. package/dist/refactor/javascript.d.ts.map +0 -1
  502. package/dist/refactor/javascript.js +0 -283
  503. package/dist/refactor/javascript.js.map +0 -1
  504. package/dist/rename-manager.d.ts +0 -28
  505. package/dist/rename-manager.d.ts.map +0 -1
  506. package/dist/rename-manager.js +0 -161
  507. package/dist/rename-manager.js.map +0 -1
@@ -1,15 +1,6 @@
1
1
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
2
2
  import React from "react";
3
3
 
4
- import {
5
- registerComponent,
6
- Prop,
7
- Section,
8
- PropsCategory,
9
- type PropertiesPanelDefinition,
10
- type EditorConfig,
11
- } from "@superblocksteam/library";
12
-
13
4
  import { cn } from "@/lib/utils";
14
5
 
15
6
  function Avatar({
@@ -58,46 +49,3 @@ function AvatarFallback({
58
49
  }
59
50
 
60
51
  export { Avatar, AvatarImage, AvatarFallback };
61
-
62
- // Properties Definition for Avatar (root)
63
- const avatarPropertiesDefinition: PropertiesPanelDefinition<
64
- React.ComponentPropsWithoutRef<typeof Avatar>
65
- > = {
66
- general: Section.category(PropsCategory.Content).children({
67
- children: Prop.jsx(),
68
- }),
69
- };
70
-
71
- const avatarEditorConfig: EditorConfig = {
72
- icon: "image",
73
- description: "An image element with a fallback for representing the user",
74
- };
75
-
76
- // Properties Definition for AvatarImage
77
- const avatarImagePropertiesDefinition: PropertiesPanelDefinition<
78
- React.ComponentPropsWithoutRef<typeof AvatarImage>
79
- > = {
80
- general: Section.category(PropsCategory.Content).children({
81
- src: Prop.string(),
82
- alt: Prop.string(),
83
- }),
84
- };
85
-
86
- // Properties Definition for AvatarFallback
87
- const avatarFallbackPropertiesDefinition: PropertiesPanelDefinition<
88
- React.ComponentPropsWithoutRef<typeof AvatarFallback>
89
- > = {
90
- general: Section.category(PropsCategory.Content).children({
91
- children: Prop.jsx(),
92
- }),
93
- interaction: Section.category(PropsCategory.Interaction).children({
94
- delayMs: Prop.number(),
95
- }),
96
- };
97
-
98
- // Register Components
99
- registerComponent(Avatar, avatarPropertiesDefinition).editorConfig(
100
- avatarEditorConfig,
101
- );
102
- registerComponent(AvatarImage, avatarImagePropertiesDefinition);
103
- registerComponent(AvatarFallback, avatarFallbackPropertiesDefinition);
@@ -1,22 +1,9 @@
1
- /* eslint-disable react-refresh/only-export-components */
2
1
  import { Slot } from "@radix-ui/react-slot";
3
2
  import { cva, type VariantProps } from "class-variance-authority";
4
- import type { IconName } from "lucide-react/dynamic";
5
3
  import type * as React from "react";
6
4
 
7
- import { registerComponent } from "@superblocksteam/library";
8
- import {
9
- Prop,
10
- Section,
11
- PropsCategory,
12
- type PropertiesPanelDefinition,
13
- type EditorConfig,
14
- } from "@superblocksteam/library";
15
-
16
- import { Icon as IconComponent } from "@/components/ui/icon";
17
5
  import { cn } from "@/lib/utils";
18
6
 
19
- // Variants
20
7
  const badgeVariants = cva(
21
8
  "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
22
9
  {
@@ -38,83 +25,22 @@ const badgeVariants = cva(
38
25
  },
39
26
  );
40
27
 
41
- type BadgeVariantProps = VariantProps<typeof badgeVariants>;
42
-
43
- // Base Badge Component
44
- interface BaseBadgeProps
45
- extends React.ComponentPropsWithoutRef<"span">, BadgeVariantProps {
46
- asChild?: boolean;
47
- }
48
-
49
- function BadgeComponent({
28
+ function Badge({
50
29
  className,
51
30
  variant,
52
31
  asChild = false,
53
32
  ...props
54
- }: BaseBadgeProps) {
33
+ }: React.ComponentPropsWithoutRef<"span"> &
34
+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
55
35
  const Comp = asChild ? Slot : "span";
36
+
56
37
  return (
57
38
  <Comp
58
39
  data-slot="badge"
59
- className={cn(
60
- badgeVariants({
61
- variant,
62
- }),
63
- className,
64
- )}
40
+ className={cn(badgeVariants({ variant }), className)}
65
41
  {...props}
66
42
  />
67
43
  );
68
44
  }
69
45
 
70
- // Badge with Icon Support
71
- type BadgeProps = React.ComponentPropsWithoutRef<typeof BadgeComponent> & {
72
- icon?: React.ReactElement | IconName;
73
- onClick?: () => void;
74
- } & Record<string, unknown>;
75
-
76
- const Badge = ({ icon, children, ...props }: BadgeProps) => {
77
- if (icon && typeof icon === "string") {
78
- icon = <IconComponent icon={icon as IconName} />;
79
- }
80
- return (
81
- <BadgeComponent {...props}>
82
- {icon}
83
- {children}
84
- </BadgeComponent>
85
- );
86
- };
87
-
88
- type BadgeVariant = NonNullable<BadgeVariantProps["variant"]>;
89
-
90
- // Properties Definition
91
- const propertiesDefinition: PropertiesPanelDefinition<BadgeProps> = {
92
- general: Section.category(PropsCategory.Content).children({
93
- children: Prop.jsx(),
94
- icon: Prop.any<JSX.Element | IconName>().docs({
95
- description:
96
- "The icon to display in the component. You can use the Lucide icon library to find the icon you want.",
97
- }),
98
- }),
99
- appearance: Section.category(PropsCategory.Appearance).children({
100
- variant: Prop.string<BadgeVariant>(),
101
- }),
102
-
103
- events: Section.category(PropsCategory.EventHandlers).children({
104
- onClick: Prop.eventHandler(),
105
- }),
106
- };
107
-
108
- // Editor Template
109
- // Editor Config
110
- const editorConfig: EditorConfig = {
111
- icon: "custom",
112
- isDroppable: false,
113
- description:
114
- "A versatile badge component for displaying status, labels, or tags",
115
- };
116
-
117
- // Register Component
118
- registerComponent(Badge, propertiesDefinition).editorConfig(editorConfig);
119
-
120
46
  export { Badge, badgeVariants };
@@ -1,34 +1,19 @@
1
1
  import { Slot } from "@radix-ui/react-slot";
2
2
  import { ChevronRight, MoreHorizontal } from "lucide-react";
3
- import React from "react";
4
-
5
- import { registerComponent } from "@superblocksteam/library";
6
- import {
7
- Prop,
8
- Section,
9
- PropsCategory,
10
- type PropertiesPanelDefinition,
11
- type EditorConfig,
12
- } from "@superblocksteam/library";
3
+ import * as React from "react";
13
4
 
14
5
  import { cn } from "@/lib/utils";
15
6
 
16
- import { Link, type LinkProps } from "./link";
17
-
18
- // Base Breadcrumb Primitives
19
- function BreadcrumbPrimitive({ ...props }: React.ComponentProps<"nav">) {
7
+ function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
20
8
  return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
21
9
  }
22
10
 
23
- function BreadcrumbListPrimitive({
24
- className,
25
- ...props
26
- }: React.ComponentProps<"ol">) {
11
+ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
27
12
  return (
28
13
  <ol
29
14
  data-slot="breadcrumb-list"
30
15
  className={cn(
31
- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
16
+ "flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5",
32
17
  className,
33
18
  )}
34
19
  {...props}
@@ -36,10 +21,7 @@ function BreadcrumbListPrimitive({
36
21
  );
37
22
  }
38
23
 
39
- function BreadcrumbItemComponent({
40
- className,
41
- ...props
42
- }: React.ComponentProps<"li">) {
24
+ function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
43
25
  return (
44
26
  <li
45
27
  data-slot="breadcrumb-item"
@@ -49,41 +31,38 @@ function BreadcrumbItemComponent({
49
31
  );
50
32
  }
51
33
 
52
- function BreadcrumbLinkPrimitive({
34
+ function BreadcrumbLink({
53
35
  asChild,
54
36
  className,
55
37
  ...props
56
- }: React.ComponentPropsWithRef<"a"> & {
38
+ }: React.ComponentPropsWithoutRef<"a"> & {
57
39
  asChild?: boolean;
58
40
  }) {
59
- const Comp: any = asChild ? Slot : "a";
41
+ const Comp = asChild ? Slot : "a";
60
42
 
61
43
  return (
62
44
  <Comp
63
45
  data-slot="breadcrumb-link"
64
- className={cn("hover:text-foreground transition-colors", className)}
46
+ className={cn("transition-colors hover:text-foreground", className)}
65
47
  {...props}
66
48
  />
67
49
  );
68
50
  }
69
51
 
70
- function BreadcrumbPageComponent({
71
- className,
72
- ...props
73
- }: React.ComponentProps<"span">) {
52
+ function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
74
53
  return (
75
54
  <span
76
55
  data-slot="breadcrumb-page"
77
56
  role="link"
78
57
  aria-disabled="true"
79
58
  aria-current="page"
80
- className={cn("text-foreground font-normal", className)}
59
+ className={cn("font-normal text-foreground", className)}
81
60
  {...props}
82
61
  />
83
62
  );
84
63
  }
85
64
 
86
- function BreadcrumbSeparatorComponent({
65
+ function BreadcrumbSeparator({
87
66
  children,
88
67
  className,
89
68
  ...props
@@ -96,7 +75,7 @@ function BreadcrumbSeparatorComponent({
96
75
  className={cn("[&>svg]:size-3.5", className)}
97
76
  {...props}
98
77
  >
99
- {React.isValidElement(children) ? children : <ChevronRight />}
78
+ {children ?? <ChevronRight />}
100
79
  </li>
101
80
  );
102
81
  }
@@ -119,135 +98,9 @@ function BreadcrumbEllipsis({
119
98
  );
120
99
  }
121
100
 
122
- // Main Breadcrumb Component
123
- type BreadcrumbProps = React.ComponentPropsWithoutRef<
124
- typeof BreadcrumbPrimitive
125
- >;
126
-
127
- const Breadcrumb = ({
128
- children,
129
- style,
130
- className,
131
- ...props
132
- }: BreadcrumbProps) => {
133
- return (
134
- <BreadcrumbPrimitive {...props} style={style} className={className}>
135
- <BreadcrumbListPrimitive>{children}</BreadcrumbListPrimitive>
136
- </BreadcrumbPrimitive>
137
- );
138
- };
139
-
140
- // Properties Definition
141
- const propertiesDefinition: PropertiesPanelDefinition<BreadcrumbProps> = {
142
- general: Section.category(PropsCategory.Content).children({
143
- children: Prop.jsx(),
144
- }),
145
- };
146
-
147
- // Editor Config
148
- const editorConfig: EditorConfig = {
149
- icon: "link",
150
- description:
151
- "Displays the path to the current resource using a hierarchy of links",
152
- isDroppable: false,
153
- };
154
-
155
- // Register Main Component
156
- registerComponent(Breadcrumb, propertiesDefinition).editorConfig(editorConfig);
157
-
158
- // Register Child Components
159
-
160
- // BreadcrumbItem Component
161
- const propertiesDefinitionItem = {
162
- general: Section.category(PropsCategory.Content).children({
163
- children: Prop.jsx(),
164
- }),
165
- };
166
-
167
- type BreadcrumbItemProps = React.ComponentPropsWithoutRef<
168
- typeof BreadcrumbItemComponent
169
- >;
170
-
171
- const BreadcrumbItem = ({ children, ...props }: BreadcrumbItemProps) => {
172
- return (
173
- <BreadcrumbItemComponent {...props}>{children}</BreadcrumbItemComponent>
174
- );
175
- };
176
-
177
- registerComponent(BreadcrumbItem, propertiesDefinitionItem).editorConfig({
178
- isDroppable: false,
179
- isDraggable: false,
180
- });
181
-
182
- // BreadcrumbLink Component
183
- const propertiesDefinitionLink = {
184
- general: Section.category(PropsCategory.Content).children({
185
- children: Prop.jsx(),
186
- }),
187
- };
188
-
189
- const BreadcrumbLink = ({ children, className, ...props }: LinkProps) => {
190
- return (
191
- <BreadcrumbLinkPrimitive asChild className={className}>
192
- <Link {...props} applyLinkStyles={false}>
193
- {children}
194
- </Link>
195
- </BreadcrumbLinkPrimitive>
196
- );
197
- };
198
-
199
- registerComponent(BreadcrumbLink, propertiesDefinitionLink).editorConfig({
200
- isDroppable: false,
201
- isDraggable: false,
202
- });
203
-
204
- // BreadcrumbPage Component
205
- const propertiesDefinitionPage = {
206
- general: Section.category(PropsCategory.Content).children({
207
- children: Prop.jsx(),
208
- }),
209
- };
210
-
211
- type BreadcrumbPageProps = React.ComponentPropsWithoutRef<
212
- typeof BreadcrumbPageComponent
213
- >;
214
-
215
- const BreadcrumbPage = ({ children, ...props }: BreadcrumbPageProps) => {
216
- return (
217
- <BreadcrumbPageComponent {...props}>{children}</BreadcrumbPageComponent>
218
- );
219
- };
220
-
221
- registerComponent(BreadcrumbPage, propertiesDefinitionPage).editorConfig({
222
- isDroppable: false,
223
- isDraggable: false,
224
- });
225
-
226
- // BreadcrumbSeparator Component
227
- const propertiesDefinitionSeparator = {
228
- general: Section.category(PropsCategory.Content).children({
229
- children: Prop.jsx(),
230
- }),
231
- };
232
-
233
- type BreadcrumbSeparatorProps = React.ComponentPropsWithoutRef<
234
- typeof BreadcrumbSeparatorComponent
235
- >;
236
-
237
- const BreadcrumbSeparator = ({ ...props }: BreadcrumbSeparatorProps) => {
238
- return <BreadcrumbSeparatorComponent {...props} />;
239
- };
240
-
241
- registerComponent(
242
- BreadcrumbSeparator,
243
- propertiesDefinitionSeparator,
244
- ).editorConfig({
245
- isDroppable: false,
246
- isDraggable: false,
247
- });
248
-
249
101
  export {
250
102
  Breadcrumb,
103
+ BreadcrumbList,
251
104
  BreadcrumbItem,
252
105
  BreadcrumbLink,
253
106
  BreadcrumbPage,
@@ -1,20 +1,9 @@
1
- /* eslint-disable react-refresh/only-export-components */
2
1
  import { Slot } from "@radix-ui/react-slot";
3
2
  import { cva, type VariantProps } from "class-variance-authority";
4
3
  import React from "react";
5
4
 
6
- import { registerComponent } from "@superblocksteam/library";
7
- import {
8
- Prop,
9
- Section,
10
- PropsCategory,
11
- type PropertiesPanelDefinition,
12
- type EditorConfig,
13
- } from "@superblocksteam/library";
14
-
15
5
  import { cn } from "@/lib/utils";
16
6
 
17
- // Variants
18
7
  const buttonVariants = cva(
19
8
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
20
9
  {
@@ -46,7 +35,6 @@ const buttonVariants = cva(
46
35
  },
47
36
  );
48
37
 
49
- // Button Component
50
38
  const Button = React.forwardRef<
51
39
  HTMLButtonElement,
52
40
  React.ComponentProps<"button"> &
@@ -80,44 +68,4 @@ const Button = React.forwardRef<
80
68
  );
81
69
 
82
70
  Button.displayName = "Button";
83
-
84
- type ButtonProps = React.ComponentProps<typeof Button>;
85
- type ButtonVariantProps = VariantProps<typeof buttonVariants>;
86
-
87
- // Properties Definition
88
- const propertiesDefinition: PropertiesPanelDefinition<ButtonProps> = {
89
- general: Section.category(PropsCategory.Content).children({
90
- children: Prop.jsx(),
91
- }),
92
-
93
- appearance: Section.category(PropsCategory.Appearance).children({
94
- variant: Prop.string<
95
- "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
96
- >(),
97
- size: Prop.string<"default" | "sm" | "lg" | "icon">(),
98
- }),
99
-
100
- interaction: Section.category(PropsCategory.Interaction).children({
101
- disabled: Prop.boolean(),
102
- }),
103
-
104
- events: Section.category(PropsCategory.EventHandlers).children({
105
- onClick: Prop.eventHandler(),
106
- }),
107
- };
108
-
109
- // Editor Template
110
- // Editor Config
111
- const editorConfig: EditorConfig = {
112
- icon: "button",
113
- useAs: {
114
- defaultButton: true,
115
- },
116
- isDroppable: false,
117
- hasExtendedClickArea: true,
118
- };
119
-
120
- // Register Component
121
- registerComponent(Button, propertiesDefinition).editorConfig(editorConfig);
122
-
123
- export { Button, buttonVariants, type ButtonVariantProps };
71
+ export { Button, buttonVariants };
@@ -4,31 +4,12 @@ import {
4
4
  ChevronRightIcon,
5
5
  } from "lucide-react";
6
6
  import React from "react";
7
- import type { ComponentPropsWithoutRef } from "react";
8
7
  import type { DayButton } from "react-day-picker";
9
8
  import { DayPicker, getDefaultClassNames } from "react-day-picker";
10
9
 
11
- import { registerComponent } from "@superblocksteam/library";
12
- import {
13
- Prop,
14
- Section,
15
- PropsCategory,
16
- type PropertiesPanelDefinition,
17
- type EditorConfig,
18
- } from "@superblocksteam/library";
19
-
20
- import {
21
- Button,
22
- buttonVariants,
23
- type ButtonVariantProps,
24
- } from "@/components/ui/button";
10
+ import { Button, buttonVariants } from "@/components/ui/button";
25
11
  import { cn } from "@/lib/utils";
26
12
 
27
- // Base Calendar Component
28
- type BaseCalendarProps = React.ComponentPropsWithoutRef<typeof DayPicker> & {
29
- buttonVariant?: ButtonVariantProps["variant"];
30
- };
31
-
32
13
  function CalendarDayButton({
33
14
  className,
34
15
  day,
@@ -76,7 +57,9 @@ function Calendar({
76
57
  formatters,
77
58
  components,
78
59
  ...props
79
- }: BaseCalendarProps) {
60
+ }: React.ComponentProps<typeof DayPicker> & {
61
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
62
+ }) {
80
63
  const defaultClassNames = getDefaultClassNames();
81
64
 
82
65
  return (
@@ -226,39 +209,4 @@ function Calendar({
226
209
  );
227
210
  }
228
211
 
229
- // Calendar Component with Extended Props for Registration
230
- type ComponentProps = ComponentPropsWithoutRef<typeof Calendar> & {
231
- selected?: string;
232
- onSelect?: (date?: Date) => void;
233
- };
234
-
235
- // Properties Definition
236
- const propertiesDefinition: PropertiesPanelDefinition<ComponentProps> = {
237
- general: Section.category(PropsCategory.Content).children({
238
- selected: Prop.string(),
239
- }),
240
- appearance: Section.category(PropsCategory.Appearance).children({
241
- buttonVariant: Prop.string<
242
- "ghost" | "outline" | "default" | "secondary" | "destructive"
243
- >(),
244
- captionLayout: Prop.string<"dropdown" | "label">(),
245
- }),
246
- interaction: Section.category(PropsCategory.Interaction).children({
247
- showOutsideDays: Prop.boolean(),
248
- disabled: Prop.boolean(),
249
- }),
250
- events: Section.category(PropsCategory.EventHandlers).children({
251
- onSelect: Prop.eventHandler(),
252
- }),
253
- };
254
-
255
- // Editor Template
256
- // Editor Config
257
- const editorConfig: EditorConfig = {
258
- icon: "date-picker",
259
- };
260
-
261
- // Register Component
262
- registerComponent(Calendar, propertiesDefinition).editorConfig(editorConfig);
263
-
264
212
  export { Calendar, CalendarDayButton };
@@ -1,17 +1,7 @@
1
1
  import type * as React from "react";
2
2
 
3
- import { registerComponent } from "@superblocksteam/library";
4
- import {
5
- Prop,
6
- Section,
7
- PropsCategory,
8
- type PropertiesPanelDefinition,
9
- type EditorConfig,
10
- } from "@superblocksteam/library";
11
-
12
3
  import { cn } from "@/lib/utils";
13
4
 
14
- // Base Card Components
15
5
  function Card({ className, ...props }: React.ComponentProps<"div">) {
16
6
  return (
17
7
  <div
@@ -91,30 +81,6 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
91
81
  );
92
82
  }
93
83
 
94
- // Card Component with Registration
95
- type CardProps = React.ComponentProps<"div"> & { onClick?: () => void };
96
-
97
- // Properties Definition
98
- const propertiesDefinition: PropertiesPanelDefinition<CardProps> = {
99
- general: Section.category(PropsCategory.Content).children({
100
- children: Prop.jsx(),
101
- }),
102
- events: Section.category(PropsCategory.EventHandlers).children({
103
- onClick: Prop.eventHandler(),
104
- }),
105
- };
106
-
107
- // Editor Template
108
- // Editor Config
109
- const editorConfig: EditorConfig = {
110
- icon: "container",
111
- description:
112
- "Cards are a container component with built-in styling for grouping related content in an elevated box",
113
- };
114
-
115
- // Register Component
116
- registerComponent(Card, propertiesDefinition).editorConfig(editorConfig);
117
-
118
84
  export {
119
85
  Card,
120
86
  CardHeader,
@@ -1,4 +1,3 @@
1
- /* eslint-disable react-refresh/only-export-components */
2
1
  import React from "react";
3
2
  import * as RechartsPrimitive from "recharts";
4
3
 
@@ -7,38 +6,6 @@ import { cn } from "@/lib/utils";
7
6
  // Format: { THEME_NAME: CSS_SELECTOR }
8
7
  const THEMES = { light: "", dark: ".dark" } as const;
9
8
 
10
- const sanitizeForCssVar = (name: string): string => {
11
- const sanitized = String(name)
12
- .replace(/[^a-zA-Z0-9_-]/g, "-")
13
- .replace(/^-+|-+$/g, "")
14
- .replace(/-{2,}/g, "-")
15
- .toLowerCase();
16
-
17
- return /^[0-9]/.test(sanitized) || !sanitized
18
- ? `key-${sanitized}`
19
- : sanitized;
20
- };
21
-
22
- const fixColorFormat = (color: string): string => {
23
- if (!color) return color;
24
- const match = color.match(/var\(--chart-\d+\)/);
25
- if (match && color.startsWith("hsl(")) {
26
- return match[0];
27
- }
28
- return color;
29
- };
30
-
31
- const createKeyMapping = (
32
- chartConfig: Record<string, any>,
33
- ): Map<string, string> => {
34
- const mapping = new Map<string, string>();
35
- Object.keys(chartConfig).forEach((key) => {
36
- const sanitized = sanitizeForCssVar(key);
37
- mapping.set(sanitized, key);
38
- });
39
- return mapping;
40
- };
41
-
42
9
  export type ChartConfig = Record<
43
10
  string,
44
11
  {
@@ -373,21 +340,9 @@ function getPayloadConfigFromPayload(
373
340
  ] as string;
374
341
  }
375
342
 
376
- if (configLabelKey in config) {
377
- return config[configLabelKey];
378
- }
379
- if (key in config) {
380
- return config[key];
381
- }
382
-
383
- const sanitizedKey = sanitizeForCssVar(key);
384
- const sanitizedConfigLabelKey = sanitizeForCssVar(configLabelKey);
385
-
386
- if (sanitizedConfigLabelKey in config) {
387
- return config[sanitizedConfigLabelKey];
388
- }
389
-
390
- return config[sanitizedKey];
343
+ return configLabelKey in config
344
+ ? config[configLabelKey]
345
+ : config[key as keyof typeof config];
391
346
  }
392
347
 
393
348
  export {
@@ -397,7 +352,4 @@ export {
397
352
  ChartLegend,
398
353
  ChartLegendContent,
399
354
  ChartStyle,
400
- sanitizeForCssVar,
401
- fixColorFormat,
402
- createKeyMapping,
403
355
  };