@superblocksteam/vite-plugin-file-sync 1.99.99-next.2 → 2.0.0-SNAPSHOT.84af65cd215b6ca1

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 (2484) hide show
  1. package/dist/ai-service/agent/middleware.d.ts +66 -0
  2. package/dist/ai-service/agent/middleware.d.ts.map +1 -0
  3. package/dist/ai-service/agent/middleware.js +423 -0
  4. package/dist/ai-service/agent/middleware.js.map +1 -0
  5. package/dist/ai-service/agent/prompts/api-prompts.d.ts +39 -0
  6. package/dist/ai-service/agent/prompts/api-prompts.d.ts.map +1 -0
  7. package/dist/ai-service/agent/prompts/api-prompts.js +806 -0
  8. package/dist/ai-service/agent/prompts/api-prompts.js.map +1 -0
  9. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts +59 -0
  10. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -0
  11. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +1133 -0
  12. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -0
  13. package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts +17 -0
  14. package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts.map +1 -0
  15. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js +285 -0
  16. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js.map +1 -0
  17. package/dist/ai-service/agent/subagents/apis/example-selector.d.ts +24 -0
  18. package/dist/ai-service/agent/subagents/apis/example-selector.d.ts.map +1 -0
  19. package/dist/ai-service/agent/subagents/apis/example-selector.js +104 -0
  20. package/dist/ai-service/agent/subagents/apis/example-selector.js.map +1 -0
  21. package/dist/ai-service/agent/subagents/apis/examples.d.ts +38 -0
  22. package/dist/ai-service/agent/subagents/apis/examples.d.ts.map +1 -0
  23. package/dist/ai-service/agent/subagents/apis/examples.js +1355 -0
  24. package/dist/ai-service/agent/subagents/apis/examples.js.map +1 -0
  25. package/dist/ai-service/agent/subagents/apis/prompt-builder.d.ts +42 -0
  26. package/dist/ai-service/agent/subagents/apis/prompt-builder.d.ts.map +1 -0
  27. package/dist/ai-service/agent/subagents/apis/prompt-builder.js +103 -0
  28. package/dist/ai-service/agent/subagents/apis/prompt-builder.js.map +1 -0
  29. package/dist/ai-service/agent/subagents/apis/static-analysis.d.ts +2 -0
  30. package/dist/ai-service/agent/subagents/apis/static-analysis.d.ts.map +1 -0
  31. package/dist/ai-service/agent/subagents/apis/static-analysis.js +779 -0
  32. package/dist/ai-service/agent/subagents/apis/static-analysis.js.map +1 -0
  33. package/dist/ai-service/agent/subagents/apis/types.d.ts +2 -0
  34. package/dist/ai-service/agent/subagents/apis/types.d.ts.map +1 -0
  35. package/dist/ai-service/agent/subagents/apis/types.js.map +1 -0
  36. package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts +16 -0
  37. package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts.map +1 -0
  38. package/dist/ai-service/agent/subagents/coding/prompt-builder.js +30 -0
  39. package/dist/ai-service/agent/subagents/coding/prompt-builder.js.map +1 -0
  40. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts +30 -0
  41. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts.map +1 -0
  42. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js +134 -0
  43. package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js.map +1 -0
  44. package/dist/ai-service/agent/subagents/testing/index.d.ts +3 -0
  45. package/dist/ai-service/agent/subagents/testing/index.d.ts.map +1 -0
  46. package/dist/ai-service/agent/subagents/testing/index.js +2 -0
  47. package/dist/ai-service/agent/subagents/testing/index.js.map +1 -0
  48. package/dist/ai-service/agent/subagents/testing/prompt-builder.d.ts +10 -0
  49. package/dist/ai-service/agent/subagents/testing/prompt-builder.d.ts.map +1 -0
  50. package/dist/ai-service/agent/subagents/testing/prompt-builder.js +177 -0
  51. package/dist/ai-service/agent/subagents/testing/prompt-builder.js.map +1 -0
  52. package/dist/ai-service/agent/subagents/testing/types.d.ts +67 -0
  53. package/dist/ai-service/agent/subagents/testing/types.d.ts.map +1 -0
  54. package/dist/ai-service/agent/subagents/testing/types.js +2 -0
  55. package/dist/ai-service/agent/subagents/testing/types.js.map +1 -0
  56. package/dist/ai-service/agent/subagents/types.d.ts +48 -0
  57. package/dist/ai-service/agent/subagents/types.d.ts.map +1 -0
  58. package/dist/ai-service/agent/subagents/types.js +49 -0
  59. package/dist/ai-service/agent/subagents/types.js.map +1 -0
  60. package/dist/ai-service/agent/tool-message-utils.d.ts +26 -0
  61. package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -0
  62. package/dist/ai-service/agent/tool-message-utils.js +356 -0
  63. package/dist/ai-service/agent/tool-message-utils.js.map +1 -0
  64. package/dist/ai-service/agent/tool-permission-delivery-metrics.d.ts +3 -0
  65. package/dist/ai-service/agent/tool-permission-delivery-metrics.d.ts.map +1 -0
  66. package/dist/ai-service/agent/tool-permission-delivery-metrics.js +23 -0
  67. package/dist/ai-service/agent/tool-permission-delivery-metrics.js.map +1 -0
  68. package/dist/ai-service/agent/tool-permission-delivery.d.ts +50 -0
  69. package/dist/ai-service/agent/tool-permission-delivery.d.ts.map +1 -0
  70. package/dist/ai-service/agent/tool-permission-delivery.js +434 -0
  71. package/dist/ai-service/agent/tool-permission-delivery.js.map +1 -0
  72. package/dist/ai-service/agent/tool-result-metrics.d.ts +20 -0
  73. package/dist/ai-service/agent/tool-result-metrics.d.ts.map +1 -0
  74. package/dist/ai-service/agent/tool-result-metrics.js +151 -0
  75. package/dist/ai-service/agent/tool-result-metrics.js.map +1 -0
  76. package/dist/ai-service/agent/tools/apis/analysis.d.ts +30 -0
  77. package/dist/ai-service/agent/tools/apis/analysis.d.ts.map +1 -0
  78. package/dist/ai-service/agent/tools/apis/analysis.js +1305 -0
  79. package/dist/ai-service/agent/tools/apis/analysis.js.map +1 -0
  80. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts +36 -0
  81. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts.map +1 -0
  82. package/dist/ai-service/agent/tools/apis/api-comparator.js +366 -0
  83. package/dist/ai-service/agent/tools/apis/api-comparator.js.map +1 -0
  84. package/dist/ai-service/agent/tools/apis/api-executor.d.ts +92 -0
  85. package/dist/ai-service/agent/tools/apis/api-executor.d.ts.map +1 -0
  86. package/dist/ai-service/agent/tools/apis/api-executor.js +480 -0
  87. package/dist/ai-service/agent/tools/apis/api-executor.js.map +1 -0
  88. package/dist/ai-service/agent/tools/apis/api-testing-state.d.ts +43 -0
  89. package/dist/ai-service/agent/tools/apis/api-testing-state.d.ts.map +1 -0
  90. package/dist/ai-service/agent/tools/apis/api-testing-state.js +259 -0
  91. package/dist/ai-service/agent/tools/apis/api-testing-state.js.map +1 -0
  92. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts +71 -0
  93. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts.map +1 -0
  94. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js +562 -0
  95. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js.map +1 -0
  96. package/dist/ai-service/agent/tools/apis/build-api-artifact.d.ts +51 -0
  97. package/dist/ai-service/agent/tools/apis/build-api-artifact.d.ts.map +1 -0
  98. package/dist/ai-service/agent/tools/apis/build-api-artifact.js +378 -0
  99. package/dist/ai-service/agent/tools/apis/build-api-artifact.js.map +1 -0
  100. package/dist/ai-service/agent/tools/apis/build-api.d.ts +15 -0
  101. package/dist/ai-service/agent/tools/apis/build-api.d.ts.map +1 -0
  102. package/dist/ai-service/agent/tools/apis/build-api.js +82 -0
  103. package/dist/ai-service/agent/tools/apis/build-api.js.map +1 -0
  104. package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts +66 -0
  105. package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts.map +1 -0
  106. package/dist/ai-service/agent/tools/apis/get-api-docs.js +2242 -0
  107. package/dist/ai-service/agent/tools/apis/get-api-docs.js.map +1 -0
  108. package/dist/ai-service/agent/tools/apis/get-integration-types.d.ts +12 -0
  109. package/dist/ai-service/agent/tools/apis/get-integration-types.d.ts.map +1 -0
  110. package/dist/ai-service/agent/tools/apis/get-integration-types.js +76 -0
  111. package/dist/ai-service/agent/tools/apis/get-integration-types.js.map +1 -0
  112. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts +32 -0
  113. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -0
  114. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +277 -0
  115. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -0
  116. package/dist/ai-service/agent/tools/apis/integration-types.d.ts +59 -0
  117. package/dist/ai-service/agent/tools/apis/integration-types.d.ts.map +1 -0
  118. package/dist/ai-service/agent/tools/apis/integration-types.js +1677 -0
  119. package/dist/ai-service/agent/tools/apis/integration-types.js.map +1 -0
  120. package/dist/ai-service/agent/tools/apis/sample-json.d.ts +2 -0
  121. package/dist/ai-service/agent/tools/apis/sample-json.d.ts.map +1 -0
  122. package/dist/ai-service/agent/tools/apis/sample-json.js +16 -0
  123. package/dist/ai-service/agent/tools/apis/sample-json.js.map +1 -0
  124. package/dist/ai-service/agent/tools/apis/sdk-registry.d.ts +20 -0
  125. package/dist/ai-service/agent/tools/apis/sdk-registry.d.ts.map +1 -0
  126. package/dist/ai-service/agent/tools/apis/sdk-registry.js +78 -0
  127. package/dist/ai-service/agent/tools/apis/sdk-registry.js.map +1 -0
  128. package/dist/ai-service/agent/tools/apis/test-api.d.ts +17 -0
  129. package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -0
  130. package/dist/ai-service/agent/tools/apis/test-api.js +742 -0
  131. package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -0
  132. package/dist/ai-service/agent/tools/apis/write-api.d.ts +12 -0
  133. package/dist/ai-service/agent/tools/apis/write-api.d.ts.map +1 -0
  134. package/dist/ai-service/agent/tools/apis/write-api.js +47 -0
  135. package/dist/ai-service/agent/tools/apis/write-api.js.map +1 -0
  136. package/dist/ai-service/agent/tools/app-environment/update-app-environment.d.ts +29 -0
  137. package/dist/ai-service/agent/tools/app-environment/update-app-environment.d.ts.map +1 -0
  138. package/dist/ai-service/agent/tools/app-environment/update-app-environment.js +399 -0
  139. package/dist/ai-service/agent/tools/app-environment/update-app-environment.js.map +1 -0
  140. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts +59 -0
  141. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts.map +1 -0
  142. package/dist/ai-service/agent/tools/build-capture-screenshot.js +483 -0
  143. package/dist/ai-service/agent/tools/build-capture-screenshot.js.map +1 -0
  144. package/dist/ai-service/agent/tools/build-copy-directory.d.ts +12 -0
  145. package/dist/ai-service/agent/tools/build-copy-directory.d.ts.map +1 -0
  146. package/dist/ai-service/agent/tools/build-copy-directory.js +51 -0
  147. package/dist/ai-service/agent/tools/build-copy-directory.js.map +1 -0
  148. package/dist/ai-service/agent/tools/build-copy-file.d.ts +12 -0
  149. package/dist/ai-service/agent/tools/build-copy-file.d.ts.map +1 -0
  150. package/dist/ai-service/agent/tools/build-copy-file.js +52 -0
  151. package/dist/ai-service/agent/tools/build-copy-file.js.map +1 -0
  152. package/dist/ai-service/agent/tools/build-copy-utils.d.ts +57 -0
  153. package/dist/ai-service/agent/tools/build-copy-utils.d.ts.map +1 -0
  154. package/dist/ai-service/agent/tools/build-copy-utils.js +37 -0
  155. package/dist/ai-service/agent/tools/build-copy-utils.js.map +1 -0
  156. package/dist/ai-service/agent/tools/build-debug.d.ts +17 -0
  157. package/dist/ai-service/agent/tools/build-debug.d.ts.map +1 -0
  158. package/dist/ai-service/agent/tools/build-debug.js +244 -0
  159. package/dist/ai-service/agent/tools/build-debug.js.map +1 -0
  160. package/dist/ai-service/agent/tools/build-delete-file.d.ts +28 -0
  161. package/dist/ai-service/agent/tools/build-delete-file.d.ts.map +1 -0
  162. package/dist/ai-service/agent/tools/build-delete-file.js +215 -0
  163. package/dist/ai-service/agent/tools/build-delete-file.js.map +1 -0
  164. package/dist/ai-service/agent/tools/build-edit-file.d.ts +24 -0
  165. package/dist/ai-service/agent/tools/build-edit-file.d.ts.map +1 -0
  166. package/dist/ai-service/agent/tools/build-edit-file.js +507 -0
  167. package/dist/ai-service/agent/tools/build-edit-file.js.map +1 -0
  168. package/dist/ai-service/agent/tools/build-finalize.d.ts +19 -0
  169. package/dist/ai-service/agent/tools/build-finalize.d.ts.map +1 -0
  170. package/dist/ai-service/agent/tools/build-finalize.js +234 -0
  171. package/dist/ai-service/agent/tools/build-finalize.js.map +1 -0
  172. package/dist/ai-service/agent/tools/build-install-packages.d.ts +89 -0
  173. package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -0
  174. package/dist/ai-service/agent/tools/build-install-packages.js +727 -0
  175. package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -0
  176. package/dist/ai-service/agent/tools/build-list-files.d.ts +5 -0
  177. package/dist/ai-service/agent/tools/build-list-files.d.ts.map +1 -0
  178. package/dist/ai-service/agent/tools/build-list-files.js +26 -0
  179. package/dist/ai-service/agent/tools/build-list-files.js.map +1 -0
  180. package/dist/ai-service/agent/tools/build-lookup-npm-package.d.ts +29 -0
  181. package/dist/ai-service/agent/tools/build-lookup-npm-package.d.ts.map +1 -0
  182. package/dist/ai-service/agent/tools/build-lookup-npm-package.js +66 -0
  183. package/dist/ai-service/agent/tools/build-lookup-npm-package.js.map +1 -0
  184. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +89 -0
  185. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts.map +1 -0
  186. package/dist/ai-service/agent/tools/build-manage-checklist.js +276 -0
  187. package/dist/ai-service/agent/tools/build-manage-checklist.js.map +1 -0
  188. package/dist/ai-service/agent/tools/build-multi-edit-file.d.ts +21 -0
  189. package/dist/ai-service/agent/tools/build-multi-edit-file.d.ts.map +1 -0
  190. package/dist/ai-service/agent/tools/build-multi-edit-file.js +207 -0
  191. package/dist/ai-service/agent/tools/build-multi-edit-file.js.map +1 -0
  192. package/dist/ai-service/agent/tools/build-navigate-preview.d.ts +17 -0
  193. package/dist/ai-service/agent/tools/build-navigate-preview.d.ts.map +1 -0
  194. package/dist/ai-service/agent/tools/build-navigate-preview.js +71 -0
  195. package/dist/ai-service/agent/tools/build-navigate-preview.js.map +1 -0
  196. package/dist/ai-service/agent/tools/build-read-file.d.ts +21 -0
  197. package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -0
  198. package/dist/ai-service/agent/tools/build-read-file.js +135 -0
  199. package/dist/ai-service/agent/tools/build-read-file.js.map +1 -0
  200. package/dist/ai-service/agent/tools/build-reload-file.d.ts +14 -0
  201. package/dist/ai-service/agent/tools/build-reload-file.d.ts.map +1 -0
  202. package/dist/ai-service/agent/tools/build-reload-file.js +78 -0
  203. package/dist/ai-service/agent/tools/build-reload-file.js.map +1 -0
  204. package/dist/ai-service/agent/tools/build-rename-file.d.ts +14 -0
  205. package/dist/ai-service/agent/tools/build-rename-file.d.ts.map +1 -0
  206. package/dist/ai-service/agent/tools/build-rename-file.js +70 -0
  207. package/dist/ai-service/agent/tools/build-rename-file.js.map +1 -0
  208. package/dist/ai-service/agent/tools/build-write-file.d.ts +14 -0
  209. package/dist/ai-service/agent/tools/build-write-file.d.ts.map +1 -0
  210. package/dist/ai-service/agent/tools/build-write-file.js +80 -0
  211. package/dist/ai-service/agent/tools/build-write-file.js.map +1 -0
  212. package/dist/ai-service/agent/tools/clear-error-cache.d.ts +10 -0
  213. package/dist/ai-service/agent/tools/clear-error-cache.d.ts.map +1 -0
  214. package/dist/ai-service/agent/tools/clear-error-cache.js +38 -0
  215. package/dist/ai-service/agent/tools/clear-error-cache.js.map +1 -0
  216. package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.d.ts +58 -0
  217. package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.d.ts.map +1 -0
  218. package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.js +258 -0
  219. package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.js.map +1 -0
  220. package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts +489 -0
  221. package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts.map +1 -0
  222. package/dist/ai-service/agent/tools/databases/dev-database-tasks.js +1172 -0
  223. package/dist/ai-service/agent/tools/databases/dev-database-tasks.js.map +1 -0
  224. package/dist/ai-service/agent/tools/databases/dev-database-tools.d.ts +65 -0
  225. package/dist/ai-service/agent/tools/databases/dev-database-tools.d.ts.map +1 -0
  226. package/dist/ai-service/agent/tools/databases/dev-database-tools.js +77 -0
  227. package/dist/ai-service/agent/tools/databases/dev-database-tools.js.map +1 -0
  228. package/dist/ai-service/agent/tools/debug-cache.d.ts +175 -0
  229. package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -0
  230. package/dist/ai-service/agent/tools/debug-cache.js +643 -0
  231. package/dist/ai-service/agent/tools/debug-cache.js.map +1 -0
  232. package/dist/ai-service/agent/tools/get-logs.d.ts +74 -0
  233. package/dist/ai-service/agent/tools/get-logs.d.ts.map +1 -0
  234. package/dist/ai-service/agent/tools/get-logs.js +357 -0
  235. package/dist/ai-service/agent/tools/get-logs.js.map +1 -0
  236. package/dist/ai-service/agent/tools/get-runtime-errors.d.ts +13 -0
  237. package/dist/ai-service/agent/tools/get-runtime-errors.d.ts.map +1 -0
  238. package/dist/ai-service/agent/tools/get-runtime-errors.js +63 -0
  239. package/dist/ai-service/agent/tools/get-runtime-errors.js.map +1 -0
  240. package/dist/ai-service/agent/tools/index.d.ts +36 -0
  241. package/dist/ai-service/agent/tools/index.d.ts.map +1 -0
  242. package/dist/ai-service/agent/tools/index.js +36 -0
  243. package/dist/ai-service/agent/tools/index.js.map +1 -0
  244. package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts +18 -0
  245. package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts.map +1 -0
  246. package/dist/ai-service/agent/tools/integrations/delete-integration.js +107 -0
  247. package/dist/ai-service/agent/tools/integrations/delete-integration.js.map +1 -0
  248. package/dist/ai-service/agent/tools/integrations/errors.d.ts +9 -0
  249. package/dist/ai-service/agent/tools/integrations/errors.d.ts.map +1 -0
  250. package/dist/ai-service/agent/tools/integrations/errors.js +35 -0
  251. package/dist/ai-service/agent/tools/integrations/errors.js.map +1 -0
  252. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +471 -0
  253. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -0
  254. package/dist/ai-service/agent/tools/integrations/execute-request.js +1179 -0
  255. package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -0
  256. package/dist/ai-service/agent/tools/integrations/index.d.ts +6 -0
  257. package/dist/ai-service/agent/tools/integrations/index.d.ts.map +1 -0
  258. package/dist/ai-service/agent/tools/integrations/index.js +6 -0
  259. package/dist/ai-service/agent/tools/integrations/index.js.map +1 -0
  260. package/dist/ai-service/agent/tools/integrations/integration-setup.d.ts +98 -0
  261. package/dist/ai-service/agent/tools/integrations/integration-setup.d.ts.map +1 -0
  262. package/dist/ai-service/agent/tools/integrations/integration-setup.js +391 -0
  263. package/dist/ai-service/agent/tools/integrations/integration-setup.js.map +1 -0
  264. package/dist/ai-service/agent/tools/integrations/internal.d.ts +15 -0
  265. package/dist/ai-service/agent/tools/integrations/internal.d.ts.map +1 -0
  266. package/dist/ai-service/agent/tools/integrations/internal.js +95 -0
  267. package/dist/ai-service/agent/tools/integrations/internal.js.map +1 -0
  268. package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts +16 -0
  269. package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts.map +1 -0
  270. package/dist/ai-service/agent/tools/integrations/managed-app-database.js +31 -0
  271. package/dist/ai-service/agent/tools/integrations/managed-app-database.js.map +1 -0
  272. package/dist/ai-service/agent/tools/integrations/metadata.d.ts +15 -0
  273. package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -0
  274. package/dist/ai-service/agent/tools/integrations/metadata.js +94 -0
  275. package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -0
  276. package/dist/ai-service/agent/tools/integrations/run-code.d.ts +9 -0
  277. package/dist/ai-service/agent/tools/integrations/run-code.d.ts.map +1 -0
  278. package/dist/ai-service/agent/tools/integrations/run-code.js +41 -0
  279. package/dist/ai-service/agent/tools/integrations/run-code.js.map +1 -0
  280. package/dist/ai-service/agent/tools/integrations/sql-classification.d.ts +50 -0
  281. package/dist/ai-service/agent/tools/integrations/sql-classification.d.ts.map +1 -0
  282. package/dist/ai-service/agent/tools/integrations/sql-classification.js +570 -0
  283. package/dist/ai-service/agent/tools/integrations/sql-classification.js.map +1 -0
  284. package/dist/ai-service/agent/tools/mark-api-manually-verified.d.ts +31 -0
  285. package/dist/ai-service/agent/tools/mark-api-manually-verified.d.ts.map +1 -0
  286. package/dist/ai-service/agent/tools/mark-api-manually-verified.js +94 -0
  287. package/dist/ai-service/agent/tools/mark-api-manually-verified.js.map +1 -0
  288. package/dist/ai-service/agent/tools/migration/update-migration-write-policy.d.ts +23 -0
  289. package/dist/ai-service/agent/tools/migration/update-migration-write-policy.d.ts.map +1 -0
  290. package/dist/ai-service/agent/tools/migration/update-migration-write-policy.js +94 -0
  291. package/dist/ai-service/agent/tools/migration/update-migration-write-policy.js.map +1 -0
  292. package/dist/ai-service/agent/tools/report-security-findings.d.ts +169 -0
  293. package/dist/ai-service/agent/tools/report-security-findings.d.ts.map +1 -0
  294. package/dist/ai-service/agent/tools/report-security-findings.js +53 -0
  295. package/dist/ai-service/agent/tools/report-security-findings.js.map +1 -0
  296. package/dist/ai-service/agent/tools/screenshot-selector.d.ts +23 -0
  297. package/dist/ai-service/agent/tools/screenshot-selector.d.ts.map +1 -0
  298. package/dist/ai-service/agent/tools/screenshot-selector.js +158 -0
  299. package/dist/ai-service/agent/tools/screenshot-selector.js.map +1 -0
  300. package/dist/ai-service/agent/tools/shared-helpers.d.ts +6 -0
  301. package/dist/ai-service/agent/tools/shared-helpers.d.ts.map +1 -0
  302. package/dist/ai-service/agent/tools/shared-helpers.js +26 -0
  303. package/dist/ai-service/agent/tools/shared-helpers.js.map +1 -0
  304. package/dist/ai-service/agent/tools.d.ts +33 -0
  305. package/dist/ai-service/agent/tools.d.ts.map +1 -0
  306. package/dist/ai-service/agent/tools.js +778 -0
  307. package/dist/ai-service/agent/tools.js.map +1 -0
  308. package/dist/ai-service/agent/tools2/access-control.d.ts +150 -0
  309. package/dist/ai-service/agent/tools2/access-control.d.ts.map +1 -0
  310. package/dist/ai-service/agent/tools2/access-control.js +310 -0
  311. package/dist/ai-service/agent/tools2/access-control.js.map +1 -0
  312. package/dist/ai-service/agent/tools2/entity-permissions.d.ts +201 -0
  313. package/dist/ai-service/agent/tools2/entity-permissions.d.ts.map +1 -0
  314. package/dist/ai-service/agent/tools2/entity-permissions.js +163 -0
  315. package/dist/ai-service/agent/tools2/entity-permissions.js.map +1 -0
  316. package/dist/ai-service/agent/tools2/example.d.ts +13 -0
  317. package/dist/ai-service/agent/tools2/example.d.ts.map +1 -0
  318. package/dist/ai-service/agent/tools2/example.js +151 -0
  319. package/dist/ai-service/agent/tools2/example.js.map +1 -0
  320. package/dist/ai-service/agent/tools2/index.d.ts +18 -0
  321. package/dist/ai-service/agent/tools2/index.d.ts.map +1 -0
  322. package/dist/ai-service/agent/tools2/index.js +19 -0
  323. package/dist/ai-service/agent/tools2/index.js.map +1 -0
  324. package/dist/ai-service/agent/tools2/registry.d.ts +231 -0
  325. package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -0
  326. package/dist/ai-service/agent/tools2/registry.js +585 -0
  327. package/dist/ai-service/agent/tools2/registry.js.map +1 -0
  328. package/dist/ai-service/agent/tools2/test-utils.d.ts +7 -0
  329. package/dist/ai-service/agent/tools2/test-utils.d.ts.map +1 -0
  330. package/dist/ai-service/agent/tools2/test-utils.js +10 -0
  331. package/dist/ai-service/agent/tools2/test-utils.js.map +1 -0
  332. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts +32 -0
  333. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts.map +1 -0
  334. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js +103 -0
  335. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js.map +1 -0
  336. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts +33 -0
  337. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts.map +1 -0
  338. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js +92 -0
  339. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js.map +1 -0
  340. package/dist/ai-service/agent/tools2/tools/bash.d.ts +34 -0
  341. package/dist/ai-service/agent/tools2/tools/bash.d.ts.map +1 -0
  342. package/dist/ai-service/agent/tools2/tools/bash.js +97 -0
  343. package/dist/ai-service/agent/tools2/tools/bash.js.map +1 -0
  344. package/dist/ai-service/agent/tools2/tools/cancel-task.d.ts +20 -0
  345. package/dist/ai-service/agent/tools2/tools/cancel-task.d.ts.map +1 -0
  346. package/dist/ai-service/agent/tools2/tools/cancel-task.js +39 -0
  347. package/dist/ai-service/agent/tools2/tools/cancel-task.js.map +1 -0
  348. package/dist/ai-service/agent/tools2/tools/check-task.d.ts +38 -0
  349. package/dist/ai-service/agent/tools2/tools/check-task.d.ts.map +1 -0
  350. package/dist/ai-service/agent/tools2/tools/check-task.js +59 -0
  351. package/dist/ai-service/agent/tools2/tools/check-task.js.map +1 -0
  352. package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts +16 -0
  353. package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts.map +1 -0
  354. package/dist/ai-service/agent/tools2/tools/deploy-service.js +167 -0
  355. package/dist/ai-service/agent/tools2/tools/deploy-service.js.map +1 -0
  356. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts +33 -0
  357. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -0
  358. package/dist/ai-service/agent/tools2/tools/download-attachments.js +309 -0
  359. package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -0
  360. package/dist/ai-service/agent/tools2/tools/edit.d.ts +17 -0
  361. package/dist/ai-service/agent/tools2/tools/edit.d.ts.map +1 -0
  362. package/dist/ai-service/agent/tools2/tools/edit.js +67 -0
  363. package/dist/ai-service/agent/tools2/tools/edit.js.map +1 -0
  364. package/dist/ai-service/agent/tools2/tools/end-test-run.d.ts +31 -0
  365. package/dist/ai-service/agent/tools2/tools/end-test-run.d.ts.map +1 -0
  366. package/dist/ai-service/agent/tools2/tools/end-test-run.js +112 -0
  367. package/dist/ai-service/agent/tools2/tools/end-test-run.js.map +1 -0
  368. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts +58 -0
  369. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts.map +1 -0
  370. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js +802 -0
  371. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js.map +1 -0
  372. package/dist/ai-service/agent/tools2/tools/git-raw.d.ts +25 -0
  373. package/dist/ai-service/agent/tools2/tools/git-raw.d.ts.map +1 -0
  374. package/dist/ai-service/agent/tools2/tools/git-raw.js +394 -0
  375. package/dist/ai-service/agent/tools2/tools/git-raw.js.map +1 -0
  376. package/dist/ai-service/agent/tools2/tools/git.d.ts +126 -0
  377. package/dist/ai-service/agent/tools2/tools/git.d.ts.map +1 -0
  378. package/dist/ai-service/agent/tools2/tools/git.js +898 -0
  379. package/dist/ai-service/agent/tools2/tools/git.js.map +1 -0
  380. package/dist/ai-service/agent/tools2/tools/glob.d.ts +14 -0
  381. package/dist/ai-service/agent/tools2/tools/glob.d.ts.map +1 -0
  382. package/dist/ai-service/agent/tools2/tools/glob.js +71 -0
  383. package/dist/ai-service/agent/tools2/tools/glob.js.map +1 -0
  384. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts +22 -0
  385. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts.map +1 -0
  386. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js +927 -0
  387. package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js.map +1 -0
  388. package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts +123 -0
  389. package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts.map +1 -0
  390. package/dist/ai-service/agent/tools2/tools/grep-metadata.js +534 -0
  391. package/dist/ai-service/agent/tools2/tools/grep-metadata.js.map +1 -0
  392. package/dist/ai-service/agent/tools2/tools/grep.d.ts +26 -0
  393. package/dist/ai-service/agent/tools2/tools/grep.d.ts.map +1 -0
  394. package/dist/ai-service/agent/tools2/tools/grep.js +249 -0
  395. package/dist/ai-service/agent/tools2/tools/grep.js.map +1 -0
  396. package/dist/ai-service/agent/tools2/tools/index.d.ts +24 -0
  397. package/dist/ai-service/agent/tools2/tools/index.d.ts.map +1 -0
  398. package/dist/ai-service/agent/tools2/tools/index.js +28 -0
  399. package/dist/ai-service/agent/tools2/tools/index.js.map +1 -0
  400. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts +18 -0
  401. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts.map +1 -0
  402. package/dist/ai-service/agent/tools2/tools/list-attachments.js +70 -0
  403. package/dist/ai-service/agent/tools2/tools/list-attachments.js.map +1 -0
  404. package/dist/ai-service/agent/tools2/tools/list-tasks.d.ts +21 -0
  405. package/dist/ai-service/agent/tools2/tools/list-tasks.d.ts.map +1 -0
  406. package/dist/ai-service/agent/tools2/tools/list-tasks.js +35 -0
  407. package/dist/ai-service/agent/tools2/tools/list-tasks.js.map +1 -0
  408. package/dist/ai-service/agent/tools2/tools/ls.d.ts +17 -0
  409. package/dist/ai-service/agent/tools2/tools/ls.d.ts.map +1 -0
  410. package/dist/ai-service/agent/tools2/tools/ls.js +141 -0
  411. package/dist/ai-service/agent/tools2/tools/ls.js.map +1 -0
  412. package/dist/ai-service/agent/tools2/tools/read.d.ts +12 -0
  413. package/dist/ai-service/agent/tools2/tools/read.d.ts.map +1 -0
  414. package/dist/ai-service/agent/tools2/tools/read.js +60 -0
  415. package/dist/ai-service/agent/tools2/tools/read.js.map +1 -0
  416. package/dist/ai-service/agent/tools2/tools/remember-knowledge.d.ts +31 -0
  417. package/dist/ai-service/agent/tools2/tools/remember-knowledge.d.ts.map +1 -0
  418. package/dist/ai-service/agent/tools2/tools/remember-knowledge.js +118 -0
  419. package/dist/ai-service/agent/tools2/tools/remember-knowledge.js.map +1 -0
  420. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts +50 -0
  421. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts.map +1 -0
  422. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js +273 -0
  423. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js.map +1 -0
  424. package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts +24 -0
  425. package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts.map +1 -0
  426. package/dist/ai-service/agent/tools2/tools/start-test-run.js +409 -0
  427. package/dist/ai-service/agent/tools2/tools/start-test-run.js.map +1 -0
  428. package/dist/ai-service/agent/tools2/tools/tool-timeout.d.ts +2 -0
  429. package/dist/ai-service/agent/tools2/tools/tool-timeout.d.ts.map +1 -0
  430. package/dist/ai-service/agent/tools2/tools/tool-timeout.js +2 -0
  431. package/dist/ai-service/agent/tools2/tools/tool-timeout.js.map +1 -0
  432. package/dist/ai-service/agent/tools2/tools/update-test-case-status.d.ts +29 -0
  433. package/dist/ai-service/agent/tools2/tools/update-test-case-status.d.ts.map +1 -0
  434. package/dist/ai-service/agent/tools2/tools/update-test-case-status.js +112 -0
  435. package/dist/ai-service/agent/tools2/tools/update-test-case-status.js.map +1 -0
  436. package/dist/ai-service/agent/tools2/tools/wait-for-task.d.ts +48 -0
  437. package/dist/ai-service/agent/tools2/tools/wait-for-task.d.ts.map +1 -0
  438. package/dist/ai-service/agent/tools2/tools/wait-for-task.js +101 -0
  439. package/dist/ai-service/agent/tools2/tools/wait-for-task.js.map +1 -0
  440. package/dist/ai-service/agent/tools2/tools/web-fetch.d.ts +30 -0
  441. package/dist/ai-service/agent/tools2/tools/web-fetch.d.ts.map +1 -0
  442. package/dist/ai-service/agent/tools2/tools/web-fetch.js +285 -0
  443. package/dist/ai-service/agent/tools2/tools/web-fetch.js.map +1 -0
  444. package/dist/ai-service/agent/tools2/tools/web-search.d.ts +25 -0
  445. package/dist/ai-service/agent/tools2/tools/web-search.d.ts.map +1 -0
  446. package/dist/ai-service/agent/tools2/tools/web-search.js +210 -0
  447. package/dist/ai-service/agent/tools2/tools/web-search.js.map +1 -0
  448. package/dist/ai-service/agent/tools2/tools/write.d.ts +14 -0
  449. package/dist/ai-service/agent/tools2/tools/write.d.ts.map +1 -0
  450. package/dist/ai-service/agent/tools2/tools/write.js +33 -0
  451. package/dist/ai-service/agent/tools2/tools/write.js.map +1 -0
  452. package/dist/ai-service/agent/tools2/types.d.ts +396 -0
  453. package/dist/ai-service/agent/tools2/types.d.ts.map +1 -0
  454. package/dist/ai-service/agent/tools2/types.js +204 -0
  455. package/dist/ai-service/agent/tools2/types.js.map +1 -0
  456. package/dist/ai-service/agent/tools2/utils.d.ts +9 -0
  457. package/dist/ai-service/agent/tools2/utils.d.ts.map +1 -0
  458. package/dist/ai-service/agent/tools2/utils.js +14 -0
  459. package/dist/ai-service/agent/tools2/utils.js.map +1 -0
  460. package/dist/ai-service/agent/utils.d.ts +15 -0
  461. package/dist/ai-service/agent/utils.d.ts.map +1 -0
  462. package/dist/ai-service/agent/utils.js +612 -0
  463. package/dist/ai-service/agent/utils.js.map +1 -0
  464. package/dist/ai-service/app-interface/cancellable-exec.d.ts +34 -0
  465. package/dist/ai-service/app-interface/cancellable-exec.d.ts.map +1 -0
  466. package/dist/ai-service/app-interface/cancellable-exec.js +98 -0
  467. package/dist/ai-service/app-interface/cancellable-exec.js.map +1 -0
  468. package/dist/ai-service/app-interface/constants.d.ts +60 -0
  469. package/dist/ai-service/app-interface/constants.d.ts.map +1 -0
  470. package/dist/ai-service/app-interface/constants.js +124 -0
  471. package/dist/ai-service/app-interface/constants.js.map +1 -0
  472. package/dist/ai-service/app-interface/file-system-interface.d.ts +22 -0
  473. package/dist/ai-service/app-interface/file-system-interface.d.ts.map +1 -0
  474. package/dist/ai-service/app-interface/file-system-interface.js +109 -0
  475. package/dist/ai-service/app-interface/file-system-interface.js.map +1 -0
  476. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts +87 -0
  477. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts.map +1 -0
  478. package/dist/ai-service/app-interface/filesystem/draft-manager.js +91 -0
  479. package/dist/ai-service/app-interface/filesystem/draft-manager.js.map +1 -0
  480. package/dist/ai-service/app-interface/filesystem/handlers/api-handler.d.ts +36 -0
  481. package/dist/ai-service/app-interface/filesystem/handlers/api-handler.d.ts.map +1 -0
  482. package/dist/ai-service/app-interface/filesystem/handlers/api-handler.js +250 -0
  483. package/dist/ai-service/app-interface/filesystem/handlers/api-handler.js.map +1 -0
  484. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts +95 -0
  485. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts.map +1 -0
  486. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js +530 -0
  487. package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -0
  488. package/dist/ai-service/app-interface/filesystem/index.d.ts +12 -0
  489. package/dist/ai-service/app-interface/filesystem/index.d.ts.map +1 -0
  490. package/dist/ai-service/app-interface/filesystem/index.js +10 -0
  491. package/dist/ai-service/app-interface/filesystem/index.js.map +1 -0
  492. package/dist/ai-service/app-interface/filesystem/path-validator.d.ts +43 -0
  493. package/dist/ai-service/app-interface/filesystem/path-validator.d.ts.map +1 -0
  494. package/dist/ai-service/app-interface/filesystem/path-validator.js +9 -0
  495. package/dist/ai-service/app-interface/filesystem/path-validator.js.map +1 -0
  496. package/dist/ai-service/app-interface/filesystem/sdk-path-validator.d.ts +50 -0
  497. package/dist/ai-service/app-interface/filesystem/sdk-path-validator.d.ts.map +1 -0
  498. package/dist/ai-service/app-interface/filesystem/sdk-path-validator.js +70 -0
  499. package/dist/ai-service/app-interface/filesystem/sdk-path-validator.js.map +1 -0
  500. package/dist/ai-service/app-interface/filesystem/validation.d.ts +88 -0
  501. package/dist/ai-service/app-interface/filesystem/validation.d.ts.map +1 -0
  502. package/dist/ai-service/app-interface/filesystem/validation.js +197 -0
  503. package/dist/ai-service/app-interface/filesystem/validation.js.map +1 -0
  504. package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts +144 -0
  505. package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts.map +1 -0
  506. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js +238 -0
  507. package/dist/ai-service/app-interface/filesystem/virtual-file-system.js.map +1 -0
  508. package/dist/ai-service/app-interface/filesystem/virtual-fs-types.d.ts +126 -0
  509. package/dist/ai-service/app-interface/filesystem/virtual-fs-types.d.ts.map +1 -0
  510. package/dist/ai-service/app-interface/filesystem/virtual-fs-types.js +9 -0
  511. package/dist/ai-service/app-interface/filesystem/virtual-fs-types.js.map +1 -0
  512. package/dist/ai-service/app-interface/filesystem/yaml-path-validator.d.ts +49 -0
  513. package/dist/ai-service/app-interface/filesystem/yaml-path-validator.d.ts.map +1 -0
  514. package/dist/ai-service/app-interface/filesystem/yaml-path-validator.js +67 -0
  515. package/dist/ai-service/app-interface/filesystem/yaml-path-validator.js.map +1 -0
  516. package/dist/ai-service/app-interface/linter.d.ts +11 -0
  517. package/dist/ai-service/app-interface/linter.d.ts.map +1 -0
  518. package/dist/ai-service/app-interface/linter.js +152 -0
  519. package/dist/ai-service/app-interface/linter.js.map +1 -0
  520. package/dist/ai-service/app-interface/npm-error-parser.d.ts +84 -0
  521. package/dist/ai-service/app-interface/npm-error-parser.d.ts.map +1 -0
  522. package/dist/ai-service/app-interface/npm-error-parser.js +510 -0
  523. package/dist/ai-service/app-interface/npm-error-parser.js.map +1 -0
  524. package/dist/ai-service/app-interface/npm-package-lookup.d.ts +338 -0
  525. package/dist/ai-service/app-interface/npm-package-lookup.d.ts.map +1 -0
  526. package/dist/ai-service/app-interface/npm-package-lookup.js +1043 -0
  527. package/dist/ai-service/app-interface/npm-package-lookup.js.map +1 -0
  528. package/dist/ai-service/app-interface/npm-registry.d.ts +913 -0
  529. package/dist/ai-service/app-interface/npm-registry.d.ts.map +1 -0
  530. package/dist/ai-service/app-interface/npm-registry.js +2461 -0
  531. package/dist/ai-service/app-interface/npm-registry.js.map +1 -0
  532. package/dist/ai-service/app-interface/shell.d.ts +558 -4
  533. package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
  534. package/dist/ai-service/app-interface/shell.js +2553 -70
  535. package/dist/ai-service/app-interface/shell.js.map +1 -1
  536. package/dist/ai-service/app-interface/vulnerability-gate.d.ts +83 -0
  537. package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -0
  538. package/dist/ai-service/app-interface/vulnerability-gate.js +543 -0
  539. package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -0
  540. package/dist/ai-service/app-skills/build-knowledge-feedback-message.d.ts +3 -0
  541. package/dist/ai-service/app-skills/build-knowledge-feedback-message.d.ts.map +1 -0
  542. package/dist/ai-service/app-skills/build-knowledge-feedback-message.js +47 -0
  543. package/dist/ai-service/app-skills/build-knowledge-feedback-message.js.map +1 -0
  544. package/dist/ai-service/app-skills/helpers.d.ts +18 -0
  545. package/dist/ai-service/app-skills/helpers.d.ts.map +1 -0
  546. package/dist/ai-service/app-skills/helpers.js +441 -0
  547. package/dist/ai-service/app-skills/helpers.js.map +1 -0
  548. package/dist/ai-service/app-skills/manager.d.ts +68 -0
  549. package/dist/ai-service/app-skills/manager.d.ts.map +1 -0
  550. package/dist/ai-service/app-skills/manager.js +259 -0
  551. package/dist/ai-service/app-skills/manager.js.map +1 -0
  552. package/dist/ai-service/app-skills/parser.d.ts +53 -0
  553. package/dist/ai-service/app-skills/parser.d.ts.map +1 -0
  554. package/dist/ai-service/app-skills/parser.js +82 -0
  555. package/dist/ai-service/app-skills/parser.js.map +1 -0
  556. package/dist/ai-service/attachment-upload.d.ts +33 -0
  557. package/dist/ai-service/attachment-upload.d.ts.map +1 -0
  558. package/dist/ai-service/attachment-upload.js +98 -0
  559. package/dist/ai-service/attachment-upload.js.map +1 -0
  560. package/dist/ai-service/attachments/index.d.ts +2 -0
  561. package/dist/ai-service/attachments/index.d.ts.map +1 -0
  562. package/dist/ai-service/attachments/index.js +2 -0
  563. package/dist/ai-service/attachments/index.js.map +1 -0
  564. package/dist/ai-service/attachments/store.d.ts +96 -0
  565. package/dist/ai-service/attachments/store.d.ts.map +1 -0
  566. package/dist/ai-service/attachments/store.js +285 -0
  567. package/dist/ai-service/attachments/store.js.map +1 -0
  568. package/dist/ai-service/attachments/text-upload-artifacts.d.ts +37 -0
  569. package/dist/ai-service/attachments/text-upload-artifacts.d.ts.map +1 -0
  570. package/dist/ai-service/attachments/text-upload-artifacts.js +231 -0
  571. package/dist/ai-service/attachments/text-upload-artifacts.js.map +1 -0
  572. package/dist/ai-service/attachments/uploaded-content-part.d.ts +23 -0
  573. package/dist/ai-service/attachments/uploaded-content-part.d.ts.map +1 -0
  574. package/dist/ai-service/attachments/uploaded-content-part.js +137 -0
  575. package/dist/ai-service/attachments/uploaded-content-part.js.map +1 -0
  576. package/dist/ai-service/chat/chat-push-metrics.d.ts +13 -0
  577. package/dist/ai-service/chat/chat-push-metrics.d.ts.map +1 -0
  578. package/dist/ai-service/chat/chat-push-metrics.js +68 -0
  579. package/dist/ai-service/chat/chat-push-metrics.js.map +1 -0
  580. package/dist/ai-service/chat/chat-session-store-metrics.d.ts +13 -0
  581. package/dist/ai-service/chat/chat-session-store-metrics.d.ts.map +1 -0
  582. package/dist/ai-service/chat/chat-session-store-metrics.js +72 -0
  583. package/dist/ai-service/chat/chat-session-store-metrics.js.map +1 -0
  584. package/dist/ai-service/chat/chat-session-store.d.ts +178 -0
  585. package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -0
  586. package/dist/ai-service/chat/chat-session-store.js +1439 -0
  587. package/dist/ai-service/chat/chat-session-store.js.map +1 -0
  588. package/dist/ai-service/chat/extract-history.d.ts +3 -0
  589. package/dist/ai-service/chat/extract-history.d.ts.map +1 -0
  590. package/dist/ai-service/chat/extract-history.js +21 -0
  591. package/dist/ai-service/chat/extract-history.js.map +1 -0
  592. package/dist/ai-service/chat/transcript-budget.d.ts +106 -0
  593. package/dist/ai-service/chat/transcript-budget.d.ts.map +1 -0
  594. package/dist/ai-service/chat/transcript-budget.js +175 -0
  595. package/dist/ai-service/chat/transcript-budget.js.map +1 -0
  596. package/dist/ai-service/chat/transcript-metrics.d.ts +33 -0
  597. package/dist/ai-service/chat/transcript-metrics.d.ts.map +1 -0
  598. package/dist/ai-service/chat/transcript-metrics.js +169 -0
  599. package/dist/ai-service/chat/transcript-metrics.js.map +1 -0
  600. package/dist/ai-service/chat/utils.d.ts +20 -0
  601. package/dist/ai-service/chat/utils.d.ts.map +1 -0
  602. package/dist/ai-service/chat/utils.js +191 -0
  603. package/dist/ai-service/chat/utils.js.map +1 -0
  604. package/dist/ai-service/checklist/api-migration-checklist-gate.d.ts +11 -0
  605. package/dist/ai-service/checklist/api-migration-checklist-gate.d.ts.map +1 -0
  606. package/dist/ai-service/checklist/api-migration-checklist-gate.js +45 -0
  607. package/dist/ai-service/checklist/api-migration-checklist-gate.js.map +1 -0
  608. package/dist/ai-service/checklist/api-migration-origins.d.ts +4 -0
  609. package/dist/ai-service/checklist/api-migration-origins.d.ts.map +1 -0
  610. package/dist/ai-service/checklist/api-migration-origins.js +8 -0
  611. package/dist/ai-service/checklist/api-migration-origins.js.map +1 -0
  612. package/dist/ai-service/checklist/persisted-checklist-store.d.ts +108 -0
  613. package/dist/ai-service/checklist/persisted-checklist-store.d.ts.map +1 -0
  614. package/dist/ai-service/checklist/persisted-checklist-store.js +511 -0
  615. package/dist/ai-service/checklist/persisted-checklist-store.js.map +1 -0
  616. package/dist/ai-service/const.d.ts +86 -5
  617. package/dist/ai-service/const.d.ts.map +1 -1
  618. package/dist/ai-service/const.js +92 -5
  619. package/dist/ai-service/const.js.map +1 -1
  620. package/dist/ai-service/context/app-context.d.ts +78 -0
  621. package/dist/ai-service/context/app-context.d.ts.map +1 -0
  622. package/dist/ai-service/context/app-context.js +359 -0
  623. package/dist/ai-service/context/app-context.js.map +1 -0
  624. package/dist/ai-service/context-archive-paths.d.ts +11 -0
  625. package/dist/ai-service/context-archive-paths.d.ts.map +1 -0
  626. package/dist/ai-service/context-archive-paths.js +35 -0
  627. package/dist/ai-service/context-archive-paths.js.map +1 -0
  628. package/dist/ai-service/context-download.d.ts +56 -0
  629. package/dist/ai-service/context-download.d.ts.map +1 -0
  630. package/dist/ai-service/context-download.js +372 -0
  631. package/dist/ai-service/context-download.js.map +1 -0
  632. package/dist/ai-service/context-flush-scheduler.d.ts +76 -0
  633. package/dist/ai-service/context-flush-scheduler.d.ts.map +1 -0
  634. package/dist/ai-service/context-flush-scheduler.js +134 -0
  635. package/dist/ai-service/context-flush-scheduler.js.map +1 -0
  636. package/dist/ai-service/context-flush.d.ts +36 -0
  637. package/dist/ai-service/context-flush.d.ts.map +1 -0
  638. package/dist/ai-service/context-flush.js +90 -0
  639. package/dist/ai-service/context-flush.js.map +1 -0
  640. package/dist/ai-service/context-restore.d.ts +64 -0
  641. package/dist/ai-service/context-restore.d.ts.map +1 -0
  642. package/dist/ai-service/context-restore.js +136 -0
  643. package/dist/ai-service/context-restore.js.map +1 -0
  644. package/dist/ai-service/context-upload.d.ts +31 -0
  645. package/dist/ai-service/context-upload.d.ts.map +1 -0
  646. package/dist/ai-service/context-upload.js +180 -0
  647. package/dist/ai-service/context-upload.js.map +1 -0
  648. package/dist/ai-service/dev-database-client.d.ts +169 -0
  649. package/dist/ai-service/dev-database-client.d.ts.map +1 -0
  650. package/dist/ai-service/dev-database-client.js +180 -0
  651. package/dist/ai-service/dev-database-client.js.map +1 -0
  652. package/dist/ai-service/dev-database-file-sync.d.ts +41 -0
  653. package/dist/ai-service/dev-database-file-sync.d.ts.map +1 -0
  654. package/dist/ai-service/dev-database-file-sync.js +29 -0
  655. package/dist/ai-service/dev-database-file-sync.js.map +1 -0
  656. package/dist/ai-service/features.d.ts +237 -0
  657. package/dist/ai-service/features.d.ts.map +1 -0
  658. package/dist/ai-service/features.js +238 -0
  659. package/dist/ai-service/features.js.map +1 -0
  660. package/dist/ai-service/filter-disabled-tools-for-migration.d.ts +6 -0
  661. package/dist/ai-service/filter-disabled-tools-for-migration.d.ts.map +1 -0
  662. package/dist/ai-service/filter-disabled-tools-for-migration.js +42 -0
  663. package/dist/ai-service/filter-disabled-tools-for-migration.js.map +1 -0
  664. package/dist/ai-service/helper-system-ai-attributes.d.ts +19 -0
  665. package/dist/ai-service/helper-system-ai-attributes.d.ts.map +1 -0
  666. package/dist/ai-service/helper-system-ai-attributes.js +17 -0
  667. package/dist/ai-service/helper-system-ai-attributes.js.map +1 -0
  668. package/dist/ai-service/index.d.ts +694 -12
  669. package/dist/ai-service/index.d.ts.map +1 -1
  670. package/dist/ai-service/index.js +4953 -80
  671. package/dist/ai-service/index.js.map +1 -1
  672. package/dist/ai-service/integration-validator.d.ts +4 -0
  673. package/dist/ai-service/integration-validator.d.ts.map +1 -0
  674. package/dist/ai-service/integration-validator.js +58 -0
  675. package/dist/ai-service/integration-validator.js.map +1 -0
  676. package/dist/ai-service/integrations/gron.d.ts +18 -0
  677. package/dist/ai-service/integrations/gron.d.ts.map +1 -0
  678. package/dist/ai-service/integrations/gron.js +321 -0
  679. package/dist/ai-service/integrations/gron.js.map +1 -0
  680. package/dist/ai-service/integrations/mention-safe-tag-name.d.ts +12 -0
  681. package/dist/ai-service/integrations/mention-safe-tag-name.d.ts.map +1 -0
  682. package/dist/ai-service/integrations/mention-safe-tag-name.js +18 -0
  683. package/dist/ai-service/integrations/mention-safe-tag-name.js.map +1 -0
  684. package/dist/ai-service/integrations/metadata-binaries.d.ts +28 -0
  685. package/dist/ai-service/integrations/metadata-binaries.d.ts.map +1 -0
  686. package/dist/ai-service/integrations/metadata-binaries.js +48 -0
  687. package/dist/ai-service/integrations/metadata-binaries.js.map +1 -0
  688. package/dist/ai-service/integrations/metadata-storage/index.d.ts +35 -0
  689. package/dist/ai-service/integrations/metadata-storage/index.d.ts.map +1 -0
  690. package/dist/ai-service/integrations/metadata-storage/index.js +2 -0
  691. package/dist/ai-service/integrations/metadata-storage/index.js.map +1 -0
  692. package/dist/ai-service/integrations/metadata-storage/local.d.ts +56 -0
  693. package/dist/ai-service/integrations/metadata-storage/local.d.ts.map +1 -0
  694. package/dist/ai-service/integrations/metadata-storage/local.js +346 -0
  695. package/dist/ai-service/integrations/metadata-storage/local.js.map +1 -0
  696. package/dist/ai-service/integrations/ripgrep-path.d.ts +6 -0
  697. package/dist/ai-service/integrations/ripgrep-path.d.ts.map +1 -0
  698. package/dist/ai-service/integrations/ripgrep-path.js +56 -0
  699. package/dist/ai-service/integrations/ripgrep-path.js.map +1 -0
  700. package/dist/ai-service/integrations/store.d.ts +142 -0
  701. package/dist/ai-service/integrations/store.d.ts.map +1 -0
  702. package/dist/ai-service/integrations/store.js +574 -0
  703. package/dist/ai-service/integrations/store.js.map +1 -0
  704. package/dist/ai-service/judge/debug-browser.d.ts +8 -0
  705. package/dist/ai-service/judge/debug-browser.d.ts.map +1 -0
  706. package/dist/ai-service/judge/debug-browser.js +79 -0
  707. package/dist/ai-service/judge/debug-browser.js.map +1 -0
  708. package/dist/ai-service/judge/index.d.ts +12 -0
  709. package/dist/ai-service/judge/index.d.ts.map +1 -0
  710. package/dist/ai-service/judge/index.js +11 -0
  711. package/dist/ai-service/judge/index.js.map +1 -0
  712. package/dist/ai-service/judge/integration/playwright-bridge.d.ts +143 -0
  713. package/dist/ai-service/judge/integration/playwright-bridge.d.ts.map +1 -0
  714. package/dist/ai-service/judge/integration/playwright-bridge.js +209 -0
  715. package/dist/ai-service/judge/integration/playwright-bridge.js.map +1 -0
  716. package/dist/ai-service/judge/judge-eval-http.d.ts +3 -0
  717. package/dist/ai-service/judge/judge-eval-http.d.ts.map +1 -0
  718. package/dist/ai-service/judge/judge-eval-http.js +541 -0
  719. package/dist/ai-service/judge/judge-eval-http.js.map +1 -0
  720. package/dist/ai-service/judge/judge-eval-service-runner.d.ts +35 -0
  721. package/dist/ai-service/judge/judge-eval-service-runner.d.ts.map +1 -0
  722. package/dist/ai-service/judge/judge-eval-service-runner.js +129 -0
  723. package/dist/ai-service/judge/judge-eval-service-runner.js.map +1 -0
  724. package/dist/ai-service/judge/judge-executor.d.ts +65 -0
  725. package/dist/ai-service/judge/judge-executor.d.ts.map +1 -0
  726. package/dist/ai-service/judge/judge-executor.js +335 -0
  727. package/dist/ai-service/judge/judge-executor.js.map +1 -0
  728. package/dist/ai-service/judge/judge-service.d.ts +154 -0
  729. package/dist/ai-service/judge/judge-service.d.ts.map +1 -0
  730. package/dist/ai-service/judge/judge-service.js +220 -0
  731. package/dist/ai-service/judge/judge-service.js.map +1 -0
  732. package/dist/ai-service/judge/prompts/evaluation-criteria.d.ts +37 -0
  733. package/dist/ai-service/judge/prompts/evaluation-criteria.d.ts.map +1 -0
  734. package/dist/ai-service/judge/prompts/evaluation-criteria.js +283 -0
  735. package/dist/ai-service/judge/prompts/evaluation-criteria.js.map +1 -0
  736. package/dist/ai-service/judge/prompts/system-prompt.d.ts +30 -0
  737. package/dist/ai-service/judge/prompts/system-prompt.d.ts.map +1 -0
  738. package/dist/ai-service/judge/prompts/system-prompt.js +212 -0
  739. package/dist/ai-service/judge/prompts/system-prompt.js.map +1 -0
  740. package/dist/ai-service/judge/storage/csv-storage.d.ts +99 -0
  741. package/dist/ai-service/judge/storage/csv-storage.d.ts.map +1 -0
  742. package/dist/ai-service/judge/storage/csv-storage.js +274 -0
  743. package/dist/ai-service/judge/storage/csv-storage.js.map +1 -0
  744. package/dist/ai-service/judge/storage/index.d.ts +9 -0
  745. package/dist/ai-service/judge/storage/index.d.ts.map +1 -0
  746. package/dist/ai-service/judge/storage/index.js +7 -0
  747. package/dist/ai-service/judge/storage/index.js.map +1 -0
  748. package/dist/ai-service/judge/storage/interface.d.ts +51 -0
  749. package/dist/ai-service/judge/storage/interface.d.ts.map +1 -0
  750. package/dist/ai-service/judge/storage/interface.js +8 -0
  751. package/dist/ai-service/judge/storage/interface.js.map +1 -0
  752. package/dist/ai-service/judge/storage/types.d.ts +54 -0
  753. package/dist/ai-service/judge/storage/types.d.ts.map +1 -0
  754. package/dist/ai-service/judge/storage/types.js +7 -0
  755. package/dist/ai-service/judge/storage/types.js.map +1 -0
  756. package/dist/ai-service/judge/tools/index.d.ts +20 -0
  757. package/dist/ai-service/judge/tools/index.d.ts.map +1 -0
  758. package/dist/ai-service/judge/tools/index.js +27 -0
  759. package/dist/ai-service/judge/tools/index.js.map +1 -0
  760. package/dist/ai-service/judge/tools/playwright-action.d.ts +72 -0
  761. package/dist/ai-service/judge/tools/playwright-action.d.ts.map +1 -0
  762. package/dist/ai-service/judge/tools/playwright-action.js +171 -0
  763. package/dist/ai-service/judge/tools/playwright-action.js.map +1 -0
  764. package/dist/ai-service/judge/tools/submit-feedback.d.ts +34 -0
  765. package/dist/ai-service/judge/tools/submit-feedback.d.ts.map +1 -0
  766. package/dist/ai-service/judge/tools/submit-feedback.js +137 -0
  767. package/dist/ai-service/judge/tools/submit-feedback.js.map +1 -0
  768. package/dist/ai-service/judge/types.d.ts +169 -0
  769. package/dist/ai-service/judge/types.d.ts.map +1 -0
  770. package/dist/ai-service/judge/types.js +8 -0
  771. package/dist/ai-service/judge/types.js.map +1 -0
  772. package/dist/ai-service/knowledge/helpers.d.ts +17 -0
  773. package/dist/ai-service/knowledge/helpers.d.ts.map +1 -0
  774. package/dist/ai-service/knowledge/helpers.js +154 -0
  775. package/dist/ai-service/knowledge/helpers.js.map +1 -0
  776. package/dist/ai-service/knowledge/knowledge-manager.d.ts +85 -0
  777. package/dist/ai-service/knowledge/knowledge-manager.d.ts.map +1 -0
  778. package/dist/ai-service/knowledge/knowledge-manager.js +299 -0
  779. package/dist/ai-service/knowledge/knowledge-manager.js.map +1 -0
  780. package/dist/ai-service/knowledge/knowledge-metrics-emitters.d.ts +20 -0
  781. package/dist/ai-service/knowledge/knowledge-metrics-emitters.d.ts.map +1 -0
  782. package/dist/ai-service/knowledge/knowledge-metrics-emitters.js +77 -0
  783. package/dist/ai-service/knowledge/knowledge-metrics-emitters.js.map +1 -0
  784. package/dist/ai-service/knowledge/knowledge-metrics.d.ts +44 -0
  785. package/dist/ai-service/knowledge/knowledge-metrics.d.ts.map +1 -0
  786. package/dist/ai-service/knowledge/knowledge-metrics.js +217 -0
  787. package/dist/ai-service/knowledge/knowledge-metrics.js.map +1 -0
  788. package/dist/ai-service/live-edit-events/bridge.d.ts +21 -0
  789. package/dist/ai-service/live-edit-events/bridge.d.ts.map +1 -0
  790. package/dist/ai-service/live-edit-events/bridge.js +52 -0
  791. package/dist/ai-service/live-edit-events/bridge.js.map +1 -0
  792. package/dist/ai-service/live-edit-events/forwarder.d.ts +158 -0
  793. package/dist/ai-service/live-edit-events/forwarder.d.ts.map +1 -0
  794. package/dist/ai-service/live-edit-events/forwarder.js +403 -0
  795. package/dist/ai-service/live-edit-events/forwarder.js.map +1 -0
  796. package/dist/ai-service/llm/chaos-fetch.d.ts +90 -0
  797. package/dist/ai-service/llm/chaos-fetch.d.ts.map +1 -0
  798. package/dist/ai-service/llm/chaos-fetch.js +200 -0
  799. package/dist/ai-service/llm/chaos-fetch.js.map +1 -0
  800. package/dist/ai-service/llm/clark-stream-telemetry-sink.d.ts +4 -0
  801. package/dist/ai-service/llm/clark-stream-telemetry-sink.d.ts.map +1 -0
  802. package/dist/ai-service/llm/clark-stream-telemetry-sink.js +152 -0
  803. package/dist/ai-service/llm/clark-stream-telemetry-sink.js.map +1 -0
  804. package/dist/ai-service/llm/client.d.ts +315 -0
  805. package/dist/ai-service/llm/client.d.ts.map +1 -0
  806. package/dist/ai-service/llm/client.js +992 -0
  807. package/dist/ai-service/llm/client.js.map +1 -0
  808. package/dist/ai-service/llm/context-v2/adapter.d.ts +33 -0
  809. package/dist/ai-service/llm/context-v2/adapter.d.ts.map +1 -0
  810. package/dist/ai-service/llm/context-v2/adapter.js +103 -0
  811. package/dist/ai-service/llm/context-v2/adapter.js.map +1 -0
  812. package/dist/ai-service/llm/context-v2/caching.d.ts +40 -0
  813. package/dist/ai-service/llm/context-v2/caching.d.ts.map +1 -0
  814. package/dist/ai-service/llm/context-v2/caching.js +48 -0
  815. package/dist/ai-service/llm/context-v2/caching.js.map +1 -0
  816. package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts +100 -0
  817. package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts.map +1 -0
  818. package/dist/ai-service/llm/context-v2/compaction/client-side.js +298 -0
  819. package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -0
  820. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts +73 -0
  821. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts.map +1 -0
  822. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.js +9 -0
  823. package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.js.map +1 -0
  824. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts +33 -0
  825. package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -0
  826. package/dist/ai-service/llm/context-v2/compaction/server-side.js +137 -0
  827. package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -0
  828. package/dist/ai-service/llm/context-v2/compactor.d.ts +34 -0
  829. package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -0
  830. package/dist/ai-service/llm/context-v2/compactor.js +243 -0
  831. package/dist/ai-service/llm/context-v2/compactor.js.map +1 -0
  832. package/dist/ai-service/llm/context-v2/config.d.ts +27 -0
  833. package/dist/ai-service/llm/context-v2/config.d.ts.map +1 -0
  834. package/dist/ai-service/llm/context-v2/config.js +59 -0
  835. package/dist/ai-service/llm/context-v2/config.js.map +1 -0
  836. package/dist/ai-service/llm/context-v2/context-management.d.ts +215 -0
  837. package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -0
  838. package/dist/ai-service/llm/context-v2/context-management.js +207 -0
  839. package/dist/ai-service/llm/context-v2/context-management.js.map +1 -0
  840. package/dist/ai-service/llm/context-v2/context-metrics.d.ts +150 -0
  841. package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -0
  842. package/dist/ai-service/llm/context-v2/context-metrics.js +602 -0
  843. package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -0
  844. package/dist/ai-service/llm/context-v2/context.d.ts +391 -0
  845. package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -0
  846. package/dist/ai-service/llm/context-v2/context.js +1661 -0
  847. package/dist/ai-service/llm/context-v2/context.js.map +1 -0
  848. package/dist/ai-service/llm/context-v2/conversation-context.d.ts +150 -0
  849. package/dist/ai-service/llm/context-v2/conversation-context.d.ts.map +1 -0
  850. package/dist/ai-service/llm/context-v2/conversation-context.js +10 -0
  851. package/dist/ai-service/llm/context-v2/conversation-context.js.map +1 -0
  852. package/dist/ai-service/llm/context-v2/index.d.ts +13 -0
  853. package/dist/ai-service/llm/context-v2/index.d.ts.map +1 -0
  854. package/dist/ai-service/llm/context-v2/index.js +13 -0
  855. package/dist/ai-service/llm/context-v2/index.js.map +1 -0
  856. package/dist/ai-service/llm/context-v2/manager.d.ts +188 -0
  857. package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -0
  858. package/dist/ai-service/llm/context-v2/manager.js +629 -0
  859. package/dist/ai-service/llm/context-v2/manager.js.map +1 -0
  860. package/dist/ai-service/llm/context-v2/migrations/index.d.ts +7 -0
  861. package/dist/ai-service/llm/context-v2/migrations/index.d.ts.map +1 -0
  862. package/dist/ai-service/llm/context-v2/migrations/index.js +7 -0
  863. package/dist/ai-service/llm/context-v2/migrations/index.js.map +1 -0
  864. package/dist/ai-service/llm/context-v2/migrations/registry.d.ts +19 -0
  865. package/dist/ai-service/llm/context-v2/migrations/registry.d.ts.map +1 -0
  866. package/dist/ai-service/llm/context-v2/migrations/registry.js +32 -0
  867. package/dist/ai-service/llm/context-v2/migrations/registry.js.map +1 -0
  868. package/dist/ai-service/llm/context-v2/migrations/runner.d.ts +3 -0
  869. package/dist/ai-service/llm/context-v2/migrations/runner.d.ts.map +1 -0
  870. package/dist/ai-service/llm/context-v2/migrations/runner.js +61 -0
  871. package/dist/ai-service/llm/context-v2/migrations/runner.js.map +1 -0
  872. package/dist/ai-service/llm/context-v2/migrations/types.d.ts +16 -0
  873. package/dist/ai-service/llm/context-v2/migrations/types.d.ts.map +1 -0
  874. package/dist/ai-service/llm/context-v2/migrations/types.js +26 -0
  875. package/dist/ai-service/llm/context-v2/migrations/types.js.map +1 -0
  876. package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.d.ts +25 -0
  877. package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.d.ts.map +1 -0
  878. package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.js +75 -0
  879. package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.js.map +1 -0
  880. package/dist/ai-service/llm/context-v2/operation-queue.d.ts +9 -0
  881. package/dist/ai-service/llm/context-v2/operation-queue.d.ts.map +1 -0
  882. package/dist/ai-service/llm/context-v2/operation-queue.js +13 -0
  883. package/dist/ai-service/llm/context-v2/operation-queue.js.map +1 -0
  884. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts +20 -0
  885. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts.map +1 -0
  886. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +359 -0
  887. package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js.map +1 -0
  888. package/dist/ai-service/llm/context-v2/phase2-session-summarizer.d.ts +68 -0
  889. package/dist/ai-service/llm/context-v2/phase2-session-summarizer.d.ts.map +1 -0
  890. package/dist/ai-service/llm/context-v2/phase2-session-summarizer.js +377 -0
  891. package/dist/ai-service/llm/context-v2/phase2-session-summarizer.js.map +1 -0
  892. package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts +11 -0
  893. package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts.map +1 -0
  894. package/dist/ai-service/llm/context-v2/prompts/compaction.js +63 -0
  895. package/dist/ai-service/llm/context-v2/prompts/compaction.js.map +1 -0
  896. package/dist/ai-service/llm/context-v2/session-capture.d.ts +18 -0
  897. package/dist/ai-service/llm/context-v2/session-capture.d.ts.map +1 -0
  898. package/dist/ai-service/llm/context-v2/session-capture.js +64 -0
  899. package/dist/ai-service/llm/context-v2/session-capture.js.map +1 -0
  900. package/dist/ai-service/llm/context-v2/storage/event-store.d.ts +83 -0
  901. package/dist/ai-service/llm/context-v2/storage/event-store.d.ts.map +1 -0
  902. package/dist/ai-service/llm/context-v2/storage/event-store.js +10 -0
  903. package/dist/ai-service/llm/context-v2/storage/event-store.js.map +1 -0
  904. package/dist/ai-service/llm/context-v2/storage/event-types.d.ts +59 -0
  905. package/dist/ai-service/llm/context-v2/storage/event-types.d.ts.map +1 -0
  906. package/dist/ai-service/llm/context-v2/storage/event-types.js +16 -0
  907. package/dist/ai-service/llm/context-v2/storage/event-types.js.map +1 -0
  908. package/dist/ai-service/llm/context-v2/storage/index.d.ts +14 -0
  909. package/dist/ai-service/llm/context-v2/storage/index.d.ts.map +1 -0
  910. package/dist/ai-service/llm/context-v2/storage/index.js +2 -0
  911. package/dist/ai-service/llm/context-v2/storage/index.js.map +1 -0
  912. package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.d.ts +108 -0
  913. package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.d.ts.map +1 -0
  914. package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.js +267 -0
  915. package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.js.map +1 -0
  916. package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.d.ts +46 -0
  917. package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.d.ts.map +1 -0
  918. package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.js +240 -0
  919. package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.js.map +1 -0
  920. package/dist/ai-service/llm/context-v2/storage/local.d.ts +25 -0
  921. package/dist/ai-service/llm/context-v2/storage/local.d.ts.map +1 -0
  922. package/dist/ai-service/llm/context-v2/storage/local.js +124 -0
  923. package/dist/ai-service/llm/context-v2/storage/local.js.map +1 -0
  924. package/dist/ai-service/llm/context-v2/storage/migration.d.ts +49 -0
  925. package/dist/ai-service/llm/context-v2/storage/migration.d.ts.map +1 -0
  926. package/dist/ai-service/llm/context-v2/storage/migration.js +126 -0
  927. package/dist/ai-service/llm/context-v2/storage/migration.js.map +1 -0
  928. package/dist/ai-service/llm/context-v2/storage/types.d.ts +2 -0
  929. package/dist/ai-service/llm/context-v2/storage/types.d.ts.map +1 -0
  930. package/dist/ai-service/llm/context-v2/storage/types.js +2 -0
  931. package/dist/ai-service/llm/context-v2/storage/types.js.map +1 -0
  932. package/dist/ai-service/llm/context-v2/token-tracker.d.ts +88 -0
  933. package/dist/ai-service/llm/context-v2/token-tracker.d.ts.map +1 -0
  934. package/dist/ai-service/llm/context-v2/token-tracker.js +193 -0
  935. package/dist/ai-service/llm/context-v2/token-tracker.js.map +1 -0
  936. package/dist/ai-service/llm/context-v2/truncation-fallback.d.ts +10 -0
  937. package/dist/ai-service/llm/context-v2/truncation-fallback.d.ts.map +1 -0
  938. package/dist/ai-service/llm/context-v2/truncation-fallback.js +123 -0
  939. package/dist/ai-service/llm/context-v2/truncation-fallback.js.map +1 -0
  940. package/dist/ai-service/llm/context-v2/turns.d.ts +24 -0
  941. package/dist/ai-service/llm/context-v2/turns.d.ts.map +1 -0
  942. package/dist/ai-service/llm/context-v2/turns.js +85 -0
  943. package/dist/ai-service/llm/context-v2/turns.js.map +1 -0
  944. package/dist/ai-service/llm/context-v2/types-v1.d.ts +36 -0
  945. package/dist/ai-service/llm/context-v2/types-v1.d.ts.map +1 -0
  946. package/dist/ai-service/llm/context-v2/types-v1.js +3 -0
  947. package/dist/ai-service/llm/context-v2/types-v1.js.map +1 -0
  948. package/dist/ai-service/llm/context-v2/types.d.ts +238 -0
  949. package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -0
  950. package/dist/ai-service/llm/context-v2/types.js +609 -0
  951. package/dist/ai-service/llm/context-v2/types.js.map +1 -0
  952. package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts +15 -0
  953. package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts.map +1 -0
  954. package/dist/ai-service/llm/context-v2/uniquify-filenames.js +194 -0
  955. package/dist/ai-service/llm/context-v2/uniquify-filenames.js.map +1 -0
  956. package/dist/ai-service/llm/context-v2/utils/get-loaded-context.d.ts +9 -0
  957. package/dist/ai-service/llm/context-v2/utils/get-loaded-context.d.ts.map +1 -0
  958. package/dist/ai-service/llm/context-v2/utils/get-loaded-context.js +6 -0
  959. package/dist/ai-service/llm/context-v2/utils/get-loaded-context.js.map +1 -0
  960. package/dist/ai-service/llm/context-v2/utils/index.d.ts +2 -0
  961. package/dist/ai-service/llm/context-v2/utils/index.d.ts.map +1 -0
  962. package/dist/ai-service/llm/context-v2/utils/index.js +2 -0
  963. package/dist/ai-service/llm/context-v2/utils/index.js.map +1 -0
  964. package/dist/ai-service/llm/error.d.ts +153 -0
  965. package/dist/ai-service/llm/error.d.ts.map +1 -0
  966. package/dist/ai-service/llm/error.js +539 -0
  967. package/dist/ai-service/llm/error.js.map +1 -0
  968. package/dist/ai-service/llm/impl/clark.d.ts +11 -0
  969. package/dist/ai-service/llm/impl/clark.d.ts.map +1 -0
  970. package/dist/ai-service/llm/impl/clark.js +22 -0
  971. package/dist/ai-service/llm/impl/clark.js.map +1 -0
  972. package/dist/ai-service/llm/interaction/adapters/vercel.d.ts +67 -0
  973. package/dist/ai-service/llm/interaction/adapters/vercel.d.ts.map +1 -0
  974. package/dist/ai-service/llm/interaction/adapters/vercel.js +190 -0
  975. package/dist/ai-service/llm/interaction/adapters/vercel.js.map +1 -0
  976. package/dist/ai-service/llm/interaction/index.d.ts +4 -0
  977. package/dist/ai-service/llm/interaction/index.d.ts.map +1 -0
  978. package/dist/ai-service/llm/interaction/index.js +5 -0
  979. package/dist/ai-service/llm/interaction/index.js.map +1 -0
  980. package/dist/ai-service/llm/interaction/provider.d.ts +189 -0
  981. package/dist/ai-service/llm/interaction/provider.d.ts.map +1 -0
  982. package/dist/ai-service/llm/interaction/provider.js +15 -0
  983. package/dist/ai-service/llm/interaction/provider.js.map +1 -0
  984. package/dist/ai-service/llm/interaction/stream-lifecycle.d.ts +48 -0
  985. package/dist/ai-service/llm/interaction/stream-lifecycle.d.ts.map +1 -0
  986. package/dist/ai-service/llm/interaction/stream-lifecycle.js +147 -0
  987. package/dist/ai-service/llm/interaction/stream-lifecycle.js.map +1 -0
  988. package/dist/ai-service/llm/provider.d.ts +10 -0
  989. package/dist/ai-service/llm/provider.d.ts.map +1 -0
  990. package/dist/ai-service/llm/provider.js +370 -0
  991. package/dist/ai-service/llm/provider.js.map +1 -0
  992. package/dist/ai-service/llm/stream/compaction-text-block.d.ts +15 -0
  993. package/dist/ai-service/llm/stream/compaction-text-block.d.ts.map +1 -0
  994. package/dist/ai-service/llm/stream/compaction-text-block.js +29 -0
  995. package/dist/ai-service/llm/stream/compaction-text-block.js.map +1 -0
  996. package/dist/ai-service/llm/stream/config.d.ts +151 -0
  997. package/dist/ai-service/llm/stream/config.d.ts.map +1 -0
  998. package/dist/ai-service/llm/stream/config.js +108 -0
  999. package/dist/ai-service/llm/stream/config.js.map +1 -0
  1000. package/dist/ai-service/llm/stream/empty-tool-call-tracker.d.ts +48 -0
  1001. package/dist/ai-service/llm/stream/empty-tool-call-tracker.d.ts.map +1 -0
  1002. package/dist/ai-service/llm/stream/empty-tool-call-tracker.js +123 -0
  1003. package/dist/ai-service/llm/stream/empty-tool-call-tracker.js.map +1 -0
  1004. package/dist/ai-service/llm/stream/errors.d.ts +62 -0
  1005. package/dist/ai-service/llm/stream/errors.d.ts.map +1 -0
  1006. package/dist/ai-service/llm/stream/errors.js +139 -0
  1007. package/dist/ai-service/llm/stream/errors.js.map +1 -0
  1008. package/dist/ai-service/llm/stream/event-bus.d.ts +75 -0
  1009. package/dist/ai-service/llm/stream/event-bus.d.ts.map +1 -0
  1010. package/dist/ai-service/llm/stream/event-bus.js +51 -0
  1011. package/dist/ai-service/llm/stream/event-bus.js.map +1 -0
  1012. package/dist/ai-service/llm/stream/idle-monitor.d.ts +167 -0
  1013. package/dist/ai-service/llm/stream/idle-monitor.d.ts.map +1 -0
  1014. package/dist/ai-service/llm/stream/idle-monitor.js +423 -0
  1015. package/dist/ai-service/llm/stream/idle-monitor.js.map +1 -0
  1016. package/dist/ai-service/llm/stream/index.d.ts +51 -0
  1017. package/dist/ai-service/llm/stream/index.d.ts.map +1 -0
  1018. package/dist/ai-service/llm/stream/index.js +48 -0
  1019. package/dist/ai-service/llm/stream/index.js.map +1 -0
  1020. package/dist/ai-service/llm/stream/managed-stream.d.ts +32 -0
  1021. package/dist/ai-service/llm/stream/managed-stream.d.ts.map +1 -0
  1022. package/dist/ai-service/llm/stream/managed-stream.js +219 -0
  1023. package/dist/ai-service/llm/stream/managed-stream.js.map +1 -0
  1024. package/dist/ai-service/llm/stream/observer.d.ts +34 -0
  1025. package/dist/ai-service/llm/stream/observer.d.ts.map +1 -0
  1026. package/dist/ai-service/llm/stream/observer.js +2 -0
  1027. package/dist/ai-service/llm/stream/observer.js.map +1 -0
  1028. package/dist/ai-service/llm/stream/observers/context.d.ts +63 -0
  1029. package/dist/ai-service/llm/stream/observers/context.d.ts.map +1 -0
  1030. package/dist/ai-service/llm/stream/observers/context.js +235 -0
  1031. package/dist/ai-service/llm/stream/observers/context.js.map +1 -0
  1032. package/dist/ai-service/llm/stream/observers/index.d.ts +8 -0
  1033. package/dist/ai-service/llm/stream/observers/index.d.ts.map +1 -0
  1034. package/dist/ai-service/llm/stream/observers/index.js +8 -0
  1035. package/dist/ai-service/llm/stream/observers/index.js.map +1 -0
  1036. package/dist/ai-service/llm/stream/observers/llmobs.d.ts +94 -0
  1037. package/dist/ai-service/llm/stream/observers/llmobs.d.ts.map +1 -0
  1038. package/dist/ai-service/llm/stream/observers/llmobs.js +796 -0
  1039. package/dist/ai-service/llm/stream/observers/llmobs.js.map +1 -0
  1040. package/dist/ai-service/llm/stream/observers/logging.d.ts +68 -0
  1041. package/dist/ai-service/llm/stream/observers/logging.d.ts.map +1 -0
  1042. package/dist/ai-service/llm/stream/observers/logging.js +468 -0
  1043. package/dist/ai-service/llm/stream/observers/logging.js.map +1 -0
  1044. package/dist/ai-service/llm/stream/observers/retry-notification.d.ts +21 -0
  1045. package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -0
  1046. package/dist/ai-service/llm/stream/observers/retry-notification.js +71 -0
  1047. package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -0
  1048. package/dist/ai-service/llm/stream/observers/step-token-usage.d.ts +15 -0
  1049. package/dist/ai-service/llm/stream/observers/step-token-usage.d.ts.map +1 -0
  1050. package/dist/ai-service/llm/stream/observers/step-token-usage.js +88 -0
  1051. package/dist/ai-service/llm/stream/observers/step-token-usage.js.map +1 -0
  1052. package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts +19 -0
  1053. package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts.map +1 -0
  1054. package/dist/ai-service/llm/stream/observers/workflow-usage.js +112 -0
  1055. package/dist/ai-service/llm/stream/observers/workflow-usage.js.map +1 -0
  1056. package/dist/ai-service/llm/stream/orchestrator.d.ts +133 -0
  1057. package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -0
  1058. package/dist/ai-service/llm/stream/orchestrator.js +1291 -0
  1059. package/dist/ai-service/llm/stream/orchestrator.js.map +1 -0
  1060. package/dist/ai-service/llm/stream/retry-engine.d.ts +89 -0
  1061. package/dist/ai-service/llm/stream/retry-engine.d.ts.map +1 -0
  1062. package/dist/ai-service/llm/stream/retry-engine.js +367 -0
  1063. package/dist/ai-service/llm/stream/retry-engine.js.map +1 -0
  1064. package/dist/ai-service/llm/stream/session.d.ts +94 -0
  1065. package/dist/ai-service/llm/stream/session.d.ts.map +1 -0
  1066. package/dist/ai-service/llm/stream/session.js +173 -0
  1067. package/dist/ai-service/llm/stream/session.js.map +1 -0
  1068. package/dist/ai-service/llm/stream/structured-output-chunk.d.ts +16 -0
  1069. package/dist/ai-service/llm/stream/structured-output-chunk.d.ts.map +1 -0
  1070. package/dist/ai-service/llm/stream/structured-output-chunk.js +26 -0
  1071. package/dist/ai-service/llm/stream/structured-output-chunk.js.map +1 -0
  1072. package/dist/ai-service/llm/stream/terminal-reason.d.ts +6 -0
  1073. package/dist/ai-service/llm/stream/terminal-reason.d.ts.map +1 -0
  1074. package/dist/ai-service/llm/stream/terminal-reason.js +83 -0
  1075. package/dist/ai-service/llm/stream/terminal-reason.js.map +1 -0
  1076. package/dist/ai-service/llm/stream/tests/helpers/mock-provider.d.ts +98 -0
  1077. package/dist/ai-service/llm/stream/tests/helpers/mock-provider.d.ts.map +1 -0
  1078. package/dist/ai-service/llm/stream/tests/helpers/mock-provider.js +521 -0
  1079. package/dist/ai-service/llm/stream/tests/helpers/mock-provider.js.map +1 -0
  1080. package/dist/ai-service/llm/stream/types.d.ts +16 -0
  1081. package/dist/ai-service/llm/stream/types.d.ts.map +1 -0
  1082. package/dist/ai-service/llm/stream/types.js +2 -0
  1083. package/dist/ai-service/llm/stream/types.js.map +1 -0
  1084. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts +55 -0
  1085. package/dist/ai-service/llm/stream/wait-state-tracker.d.ts.map +1 -0
  1086. package/dist/ai-service/llm/stream/wait-state-tracker.js +109 -0
  1087. package/dist/ai-service/llm/stream/wait-state-tracker.js.map +1 -0
  1088. package/dist/ai-service/llm/tool-context-integrity.d.ts +25 -0
  1089. package/dist/ai-service/llm/tool-context-integrity.d.ts.map +1 -0
  1090. package/dist/ai-service/llm/tool-context-integrity.js +141 -0
  1091. package/dist/ai-service/llm/tool-context-integrity.js.map +1 -0
  1092. package/dist/ai-service/llm/types.d.ts +44 -0
  1093. package/dist/ai-service/llm/types.d.ts.map +1 -0
  1094. package/dist/ai-service/llm/types.js +2 -0
  1095. package/dist/ai-service/llm/types.js.map +1 -0
  1096. package/dist/ai-service/llm/workflow-metrics.d.ts +14 -0
  1097. package/dist/ai-service/llm/workflow-metrics.d.ts.map +1 -0
  1098. package/dist/ai-service/llm/workflow-metrics.js +19 -0
  1099. package/dist/ai-service/llm/workflow-metrics.js.map +1 -0
  1100. package/dist/ai-service/llmobs/constants.d.ts +5 -0
  1101. package/dist/ai-service/llmobs/constants.d.ts.map +1 -0
  1102. package/dist/ai-service/llmobs/constants.js +5 -0
  1103. package/dist/ai-service/llmobs/constants.js.map +1 -0
  1104. package/dist/ai-service/llmobs/context-registry.d.ts +62 -0
  1105. package/dist/ai-service/llmobs/context-registry.d.ts.map +1 -0
  1106. package/dist/ai-service/llmobs/context-registry.js +115 -0
  1107. package/dist/ai-service/llmobs/context-registry.js.map +1 -0
  1108. package/dist/ai-service/llmobs/helpers.d.ts +5 -0
  1109. package/dist/ai-service/llmobs/helpers.d.ts.map +1 -0
  1110. package/dist/ai-service/llmobs/helpers.js +31 -0
  1111. package/dist/ai-service/llmobs/helpers.js.map +1 -0
  1112. package/dist/ai-service/llmobs/index.d.ts +8 -0
  1113. package/dist/ai-service/llmobs/index.d.ts.map +1 -0
  1114. package/dist/ai-service/llmobs/index.js +7 -0
  1115. package/dist/ai-service/llmobs/index.js.map +1 -0
  1116. package/dist/ai-service/llmobs/otel-exporter.d.ts +178 -0
  1117. package/dist/ai-service/llmobs/otel-exporter.d.ts.map +1 -0
  1118. package/dist/ai-service/llmobs/otel-exporter.js +660 -0
  1119. package/dist/ai-service/llmobs/otel-exporter.js.map +1 -0
  1120. package/dist/ai-service/llmobs/tracer.d.ts +130 -0
  1121. package/dist/ai-service/llmobs/tracer.d.ts.map +1 -0
  1122. package/dist/ai-service/llmobs/tracer.js +532 -0
  1123. package/dist/ai-service/llmobs/tracer.js.map +1 -0
  1124. package/dist/ai-service/llmobs/types.d.ts +71 -0
  1125. package/dist/ai-service/llmobs/types.d.ts.map +1 -0
  1126. package/dist/ai-service/llmobs/types.js +2 -0
  1127. package/dist/ai-service/llmobs/types.js.map +1 -0
  1128. package/dist/ai-service/llmobs/utils.d.ts +15 -0
  1129. package/dist/ai-service/llmobs/utils.d.ts.map +1 -0
  1130. package/dist/ai-service/llmobs/utils.js +82 -0
  1131. package/dist/ai-service/llmobs/utils.js.map +1 -0
  1132. package/dist/ai-service/managed-native-db-availability.d.ts +62 -0
  1133. package/dist/ai-service/managed-native-db-availability.d.ts.map +1 -0
  1134. package/dist/ai-service/managed-native-db-availability.js +37 -0
  1135. package/dist/ai-service/managed-native-db-availability.js.map +1 -0
  1136. package/dist/ai-service/mcp/adapter/index.d.ts +8 -0
  1137. package/dist/ai-service/mcp/adapter/index.d.ts.map +1 -0
  1138. package/dist/ai-service/mcp/adapter/index.js +10 -0
  1139. package/dist/ai-service/mcp/adapter/index.js.map +1 -0
  1140. package/dist/ai-service/mcp/adapter/json-schema-to-zod.d.ts +44 -0
  1141. package/dist/ai-service/mcp/adapter/json-schema-to-zod.d.ts.map +1 -0
  1142. package/dist/ai-service/mcp/adapter/json-schema-to-zod.js +231 -0
  1143. package/dist/ai-service/mcp/adapter/json-schema-to-zod.js.map +1 -0
  1144. package/dist/ai-service/mcp/adapter/mcp-tool-adapter.d.ts +126 -0
  1145. package/dist/ai-service/mcp/adapter/mcp-tool-adapter.d.ts.map +1 -0
  1146. package/dist/ai-service/mcp/adapter/mcp-tool-adapter.js +365 -0
  1147. package/dist/ai-service/mcp/adapter/mcp-tool-adapter.js.map +1 -0
  1148. package/dist/ai-service/mcp/embedded-playwright-mcp-server.d.ts +85 -0
  1149. package/dist/ai-service/mcp/embedded-playwright-mcp-server.d.ts.map +1 -0
  1150. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +1626 -0
  1151. package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -0
  1152. package/dist/ai-service/mcp/index.d.ts +11 -0
  1153. package/dist/ai-service/mcp/index.d.ts.map +1 -0
  1154. package/dist/ai-service/mcp/index.js +11 -0
  1155. package/dist/ai-service/mcp/index.js.map +1 -0
  1156. package/dist/ai-service/mcp/playwright-server.d.ts +153 -0
  1157. package/dist/ai-service/mcp/playwright-server.d.ts.map +1 -0
  1158. package/dist/ai-service/mcp/playwright-server.js +174 -0
  1159. package/dist/ai-service/mcp/playwright-server.js.map +1 -0
  1160. package/dist/ai-service/mcp/types.d.ts +101 -0
  1161. package/dist/ai-service/mcp/types.d.ts.map +1 -0
  1162. package/dist/ai-service/mcp/types.js +7 -0
  1163. package/dist/ai-service/mcp/types.js.map +1 -0
  1164. package/dist/ai-service/migration-auto-dispatch-readiness.d.ts +19 -0
  1165. package/dist/ai-service/migration-auto-dispatch-readiness.d.ts.map +1 -0
  1166. package/dist/ai-service/migration-auto-dispatch-readiness.js +17 -0
  1167. package/dist/ai-service/migration-auto-dispatch-readiness.js.map +1 -0
  1168. package/dist/ai-service/migration-autodispatch-metrics.d.ts +3 -0
  1169. package/dist/ai-service/migration-autodispatch-metrics.d.ts.map +1 -0
  1170. package/dist/ai-service/migration-autodispatch-metrics.js +52 -0
  1171. package/dist/ai-service/migration-autodispatch-metrics.js.map +1 -0
  1172. package/dist/ai-service/migration-llm-config.d.ts +12 -0
  1173. package/dist/ai-service/migration-llm-config.d.ts.map +1 -0
  1174. package/dist/ai-service/migration-llm-config.js +132 -0
  1175. package/dist/ai-service/migration-llm-config.js.map +1 -0
  1176. package/dist/ai-service/migration-prompt-gating.d.ts +21 -0
  1177. package/dist/ai-service/migration-prompt-gating.d.ts.map +1 -0
  1178. package/dist/ai-service/migration-prompt-gating.js +27 -0
  1179. package/dist/ai-service/migration-prompt-gating.js.map +1 -0
  1180. package/dist/ai-service/migration-session-active.d.ts +14 -0
  1181. package/dist/ai-service/migration-session-active.d.ts.map +1 -0
  1182. package/dist/ai-service/migration-session-active.js +29 -0
  1183. package/dist/ai-service/migration-session-active.js.map +1 -0
  1184. package/dist/ai-service/migration-turns-log.d.ts +36 -0
  1185. package/dist/ai-service/migration-turns-log.d.ts.map +1 -0
  1186. package/dist/ai-service/migration-turns-log.js +88 -0
  1187. package/dist/ai-service/migration-turns-log.js.map +1 -0
  1188. package/dist/ai-service/policy-agent-metrics.d.ts +29 -0
  1189. package/dist/ai-service/policy-agent-metrics.d.ts.map +1 -0
  1190. package/dist/ai-service/policy-agent-metrics.js +141 -0
  1191. package/dist/ai-service/policy-agent-metrics.js.map +1 -0
  1192. package/dist/ai-service/policy-gate-error.d.ts +3 -0
  1193. package/dist/ai-service/policy-gate-error.d.ts.map +1 -0
  1194. package/dist/ai-service/policy-gate-error.js +33 -0
  1195. package/dist/ai-service/policy-gate-error.js.map +1 -0
  1196. package/dist/ai-service/policy-gate-step.d.ts +17 -0
  1197. package/dist/ai-service/policy-gate-step.d.ts.map +1 -0
  1198. package/dist/ai-service/policy-gate-step.js +52 -0
  1199. package/dist/ai-service/policy-gate-step.js.map +1 -0
  1200. package/dist/ai-service/profiler/clark-profiler.d.ts +86 -0
  1201. package/dist/ai-service/profiler/clark-profiler.d.ts.map +1 -0
  1202. package/dist/ai-service/profiler/clark-profiler.js +209 -0
  1203. package/dist/ai-service/profiler/clark-profiler.js.map +1 -0
  1204. package/dist/ai-service/profiler/index.d.ts +4 -0
  1205. package/dist/ai-service/profiler/index.d.ts.map +1 -0
  1206. package/dist/ai-service/profiler/index.js +4 -0
  1207. package/dist/ai-service/profiler/index.js.map +1 -0
  1208. package/dist/ai-service/profiler/perfetto-profiler.d.ts +116 -0
  1209. package/dist/ai-service/profiler/perfetto-profiler.d.ts.map +1 -0
  1210. package/dist/ai-service/profiler/perfetto-profiler.js +240 -0
  1211. package/dist/ai-service/profiler/perfetto-profiler.js.map +1 -0
  1212. package/dist/ai-service/profiler/tool-profiler.d.ts +33 -0
  1213. package/dist/ai-service/profiler/tool-profiler.d.ts.map +1 -0
  1214. package/dist/ai-service/profiler/tool-profiler.js +157 -0
  1215. package/dist/ai-service/profiler/tool-profiler.js.map +1 -0
  1216. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts +27 -0
  1217. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts.map +1 -0
  1218. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +97 -0
  1219. package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -0
  1220. package/dist/ai-service/prompt-builder-service/types.d.ts +3 -0
  1221. package/dist/ai-service/prompt-builder-service/types.d.ts.map +1 -0
  1222. package/dist/ai-service/prompt-builder-service/types.js +6 -0
  1223. package/dist/ai-service/prompt-builder-service/types.js.map +1 -0
  1224. package/dist/ai-service/prompts/summarize-api-usage.d.ts +18 -0
  1225. package/dist/ai-service/prompts/summarize-api-usage.d.ts.map +1 -0
  1226. package/dist/ai-service/prompts/summarize-api-usage.js +30 -0
  1227. package/dist/ai-service/prompts/summarize-api-usage.js.map +1 -0
  1228. package/dist/ai-service/quota-client.d.ts +31 -0
  1229. package/dist/ai-service/quota-client.d.ts.map +1 -0
  1230. package/dist/ai-service/quota-client.js +72 -0
  1231. package/dist/ai-service/quota-client.js.map +1 -0
  1232. package/dist/ai-service/recording/block-traversal.d.ts +15 -0
  1233. package/dist/ai-service/recording/block-traversal.d.ts.map +1 -0
  1234. package/dist/ai-service/recording/block-traversal.js +104 -0
  1235. package/dist/ai-service/recording/block-traversal.js.map +1 -0
  1236. package/dist/ai-service/recording/index.d.ts +26 -0
  1237. package/dist/ai-service/recording/index.d.ts.map +1 -0
  1238. package/dist/ai-service/recording/index.js +29 -0
  1239. package/dist/ai-service/recording/index.js.map +1 -0
  1240. package/dist/ai-service/recording/recorders/llm-recorder.d.ts +35 -0
  1241. package/dist/ai-service/recording/recorders/llm-recorder.d.ts.map +1 -0
  1242. package/dist/ai-service/recording/recorders/llm-recorder.js +221 -0
  1243. package/dist/ai-service/recording/recorders/llm-recorder.js.map +1 -0
  1244. package/dist/ai-service/recording/recorders/socket-recorder.d.ts +38 -0
  1245. package/dist/ai-service/recording/recorders/socket-recorder.d.ts.map +1 -0
  1246. package/dist/ai-service/recording/recorders/socket-recorder.js +44 -0
  1247. package/dist/ai-service/recording/recorders/socket-recorder.js.map +1 -0
  1248. package/dist/ai-service/recording/recorders/tool-recorder.d.ts +25 -0
  1249. package/dist/ai-service/recording/recorders/tool-recorder.d.ts.map +1 -0
  1250. package/dist/ai-service/recording/recorders/tool-recorder.js +58 -0
  1251. package/dist/ai-service/recording/recorders/tool-recorder.js.map +1 -0
  1252. package/dist/ai-service/recording/recording-manager.d.ts +105 -0
  1253. package/dist/ai-service/recording/recording-manager.d.ts.map +1 -0
  1254. package/dist/ai-service/recording/recording-manager.js +308 -0
  1255. package/dist/ai-service/recording/recording-manager.js.map +1 -0
  1256. package/dist/ai-service/recording/snapshot-manager.d.ts +195 -0
  1257. package/dist/ai-service/recording/snapshot-manager.d.ts.map +1 -0
  1258. package/dist/ai-service/recording/snapshot-manager.js +708 -0
  1259. package/dist/ai-service/recording/snapshot-manager.js.map +1 -0
  1260. package/dist/ai-service/recording/storage/session-recording-storage.d.ts +148 -0
  1261. package/dist/ai-service/recording/storage/session-recording-storage.d.ts.map +1 -0
  1262. package/dist/ai-service/recording/storage/session-recording-storage.js +399 -0
  1263. package/dist/ai-service/recording/storage/session-recording-storage.js.map +1 -0
  1264. package/dist/ai-service/recording/types.d.ts +140 -0
  1265. package/dist/ai-service/recording/types.d.ts.map +1 -0
  1266. package/dist/ai-service/recording/types.js +8 -0
  1267. package/dist/ai-service/recording/types.js.map +1 -0
  1268. package/dist/ai-service/request-deduplicator.d.ts +35 -0
  1269. package/dist/ai-service/request-deduplicator.d.ts.map +1 -0
  1270. package/dist/ai-service/request-deduplicator.js +53 -0
  1271. package/dist/ai-service/request-deduplicator.js.map +1 -0
  1272. package/dist/ai-service/resolve-generation-state-for-ui.d.ts +9 -0
  1273. package/dist/ai-service/resolve-generation-state-for-ui.d.ts.map +1 -0
  1274. package/dist/ai-service/resolve-generation-state-for-ui.js +25 -0
  1275. package/dist/ai-service/resolve-generation-state-for-ui.js.map +1 -0
  1276. package/dist/ai-service/sdk-api-templates.d.ts +2 -0
  1277. package/dist/ai-service/sdk-api-templates.d.ts.map +1 -0
  1278. package/dist/ai-service/sdk-api-templates.js +2 -0
  1279. package/dist/ai-service/sdk-api-templates.js.map +1 -0
  1280. package/dist/ai-service/security/index.d.ts +9 -0
  1281. package/dist/ai-service/security/index.d.ts.map +1 -0
  1282. package/dist/ai-service/security/index.js +9 -0
  1283. package/dist/ai-service/security/index.js.map +1 -0
  1284. package/dist/ai-service/security/safety-classifier.d.ts +83 -0
  1285. package/dist/ai-service/security/safety-classifier.d.ts.map +1 -0
  1286. package/dist/ai-service/security/safety-classifier.js +189 -0
  1287. package/dist/ai-service/security/safety-classifier.js.map +1 -0
  1288. package/dist/ai-service/security/secret-scanner-service.d.ts +46 -0
  1289. package/dist/ai-service/security/secret-scanner-service.d.ts.map +1 -0
  1290. package/dist/ai-service/security/secret-scanner-service.js +290 -0
  1291. package/dist/ai-service/security/secret-scanner-service.js.map +1 -0
  1292. package/dist/ai-service/security/secret-scanner.d.ts +138 -0
  1293. package/dist/ai-service/security/secret-scanner.d.ts.map +1 -0
  1294. package/dist/ai-service/security/secret-scanner.js +304 -0
  1295. package/dist/ai-service/security/secret-scanner.js.map +1 -0
  1296. package/dist/ai-service/security/vulnerability-triage.d.ts +90 -0
  1297. package/dist/ai-service/security/vulnerability-triage.d.ts.map +1 -0
  1298. package/dist/ai-service/security/vulnerability-triage.js +113 -0
  1299. package/dist/ai-service/security/vulnerability-triage.js.map +1 -0
  1300. package/dist/ai-service/skills/index.d.ts +38 -0
  1301. package/dist/ai-service/skills/index.d.ts.map +1 -0
  1302. package/dist/ai-service/skills/index.js +104 -0
  1303. package/dist/ai-service/skills/index.js.map +1 -0
  1304. package/dist/ai-service/skills/system/_registry.generated.d.ts +6 -0
  1305. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -0
  1306. package/dist/ai-service/skills/system/_registry.generated.js +43 -0
  1307. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -0
  1308. package/dist/ai-service/skills/system/common-import-issues/skill.generated.d.ts +2 -0
  1309. package/dist/ai-service/skills/system/common-import-issues/skill.generated.d.ts.map +1 -0
  1310. package/dist/ai-service/skills/system/common-import-issues/skill.generated.js +93 -0
  1311. package/dist/ai-service/skills/system/common-import-issues/skill.generated.js.map +1 -0
  1312. package/dist/ai-service/skills/system/materialized.d.ts +7 -0
  1313. package/dist/ai-service/skills/system/materialized.d.ts.map +1 -0
  1314. package/dist/ai-service/skills/system/materialized.js +33 -0
  1315. package/dist/ai-service/skills/system/materialized.js.map +1 -0
  1316. package/dist/ai-service/skills/system/migration-api-verification/skill.generated.d.ts +2 -0
  1317. package/dist/ai-service/skills/system/migration-api-verification/skill.generated.d.ts.map +1 -0
  1318. package/dist/ai-service/skills/system/migration-api-verification/skill.generated.js +119 -0
  1319. package/dist/ai-service/skills/system/migration-api-verification/skill.generated.js.map +1 -0
  1320. package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.d.ts +2 -0
  1321. package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.d.ts.map +1 -0
  1322. package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.js +274 -0
  1323. package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.js.map +1 -0
  1324. package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.d.ts +2 -0
  1325. package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.d.ts.map +1 -0
  1326. package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.js +214 -0
  1327. package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.js.map +1 -0
  1328. package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.d.ts +2 -0
  1329. package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.d.ts.map +1 -0
  1330. package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.js +276 -0
  1331. package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.js.map +1 -0
  1332. package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.d.ts +2 -0
  1333. package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.d.ts.map +1 -0
  1334. package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.js +412 -0
  1335. package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.js.map +1 -0
  1336. package/dist/ai-service/skills/system/superblocks-api/skill.generated.d.ts +2 -0
  1337. package/dist/ai-service/skills/system/superblocks-api/skill.generated.d.ts.map +1 -0
  1338. package/dist/ai-service/skills/system/superblocks-api/skill.generated.js +891 -0
  1339. package/dist/ai-service/skills/system/superblocks-api/skill.generated.js.map +1 -0
  1340. package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.d.ts +2 -0
  1341. package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.d.ts.map +1 -0
  1342. package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.js +155 -0
  1343. package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.js.map +1 -0
  1344. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +2 -0
  1345. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -0
  1346. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +707 -0
  1347. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -0
  1348. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts +2 -0
  1349. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts.map +1 -0
  1350. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js +60 -0
  1351. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js.map +1 -0
  1352. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts +2 -0
  1353. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts.map +1 -0
  1354. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js +136 -0
  1355. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js.map +1 -0
  1356. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +2 -0
  1357. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -0
  1358. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +312 -0
  1359. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js.map +1 -0
  1360. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts +2 -0
  1361. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts.map +1 -0
  1362. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js +124 -0
  1363. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js.map +1 -0
  1364. package/dist/ai-service/skills/system/third-party-migration/lovable.generated.d.ts +2 -0
  1365. package/dist/ai-service/skills/system/third-party-migration/lovable.generated.d.ts.map +1 -0
  1366. package/dist/ai-service/skills/system/third-party-migration/lovable.generated.js +79 -0
  1367. package/dist/ai-service/skills/system/third-party-migration/lovable.generated.js.map +1 -0
  1368. package/dist/ai-service/skills/system/third-party-migration/replit.generated.d.ts +2 -0
  1369. package/dist/ai-service/skills/system/third-party-migration/replit.generated.d.ts.map +1 -0
  1370. package/dist/ai-service/skills/system/third-party-migration/replit.generated.js +65 -0
  1371. package/dist/ai-service/skills/system/third-party-migration/replit.generated.js.map +1 -0
  1372. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +2 -0
  1373. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -0
  1374. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +170 -0
  1375. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js.map +1 -0
  1376. package/dist/ai-service/skills/system/third-party-migration/v0.generated.d.ts +2 -0
  1377. package/dist/ai-service/skills/system/third-party-migration/v0.generated.d.ts.map +1 -0
  1378. package/dist/ai-service/skills/system/third-party-migration/v0.generated.js +118 -0
  1379. package/dist/ai-service/skills/system/third-party-migration/v0.generated.js.map +1 -0
  1380. package/dist/ai-service/skills/system/tool-paths.d.ts +3 -0
  1381. package/dist/ai-service/skills/system/tool-paths.d.ts.map +1 -0
  1382. package/dist/ai-service/skills/system/tool-paths.js +16 -0
  1383. package/dist/ai-service/skills/system/tool-paths.js.map +1 -0
  1384. package/dist/ai-service/skills/types.d.ts +69 -0
  1385. package/dist/ai-service/skills/types.d.ts.map +1 -0
  1386. package/dist/ai-service/skills/types.js +121 -0
  1387. package/dist/ai-service/skills/types.js.map +1 -0
  1388. package/dist/ai-service/state-machine/clark-fsm.d.ts +568 -22
  1389. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  1390. package/dist/ai-service/state-machine/clark-fsm.js +408 -0
  1391. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  1392. package/dist/ai-service/state-machine/fsm.d.ts +17 -16
  1393. package/dist/ai-service/state-machine/fsm.d.ts.map +1 -1
  1394. package/dist/ai-service/state-machine/fsm.js +2 -1
  1395. package/dist/ai-service/state-machine/fsm.js.map +1 -1
  1396. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts +12 -0
  1397. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  1398. package/dist/ai-service/state-machine/handlers/agent-planning.js +1088 -168
  1399. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  1400. package/dist/ai-service/state-machine/handlers/awaiting-user.d.ts +1 -1
  1401. package/dist/ai-service/state-machine/handlers/awaiting-user.d.ts.map +1 -1
  1402. package/dist/ai-service/state-machine/handlers/awaiting-user.js +335 -13
  1403. package/dist/ai-service/state-machine/handlers/awaiting-user.js.map +1 -1
  1404. package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.d.ts +11 -0
  1405. package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.d.ts.map +1 -0
  1406. package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.js +11 -0
  1407. package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.js.map +1 -0
  1408. package/dist/ai-service/state-machine/handlers/idle.d.ts +2 -2
  1409. package/dist/ai-service/state-machine/handlers/idle.d.ts.map +1 -1
  1410. package/dist/ai-service/state-machine/handlers/idle.js +138 -8
  1411. package/dist/ai-service/state-machine/handlers/idle.js.map +1 -1
  1412. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts +37 -2
  1413. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  1414. package/dist/ai-service/state-machine/handlers/llm-generating.js +1235 -136
  1415. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  1416. package/dist/ai-service/state-machine/handlers/next-steps.d.ts +22 -0
  1417. package/dist/ai-service/state-machine/handlers/next-steps.d.ts.map +1 -0
  1418. package/dist/ai-service/state-machine/handlers/next-steps.js +85 -0
  1419. package/dist/ai-service/state-machine/handlers/next-steps.js.map +1 -0
  1420. package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.d.ts +25 -0
  1421. package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.d.ts.map +1 -0
  1422. package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.js +68 -0
  1423. package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.js.map +1 -0
  1424. package/dist/ai-service/state-machine/handlers/play-dead.d.ts +2 -2
  1425. package/dist/ai-service/state-machine/handlers/play-dead.d.ts.map +1 -1
  1426. package/dist/ai-service/state-machine/handlers/play-dead.js +18 -4
  1427. package/dist/ai-service/state-machine/handlers/play-dead.js.map +1 -1
  1428. package/dist/ai-service/state-machine/handlers/post-processing.d.ts +6 -1
  1429. package/dist/ai-service/state-machine/handlers/post-processing.d.ts.map +1 -1
  1430. package/dist/ai-service/state-machine/handlers/post-processing.js +234 -43
  1431. package/dist/ai-service/state-machine/handlers/post-processing.js.map +1 -1
  1432. package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
  1433. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +116 -6
  1434. package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
  1435. package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.d.ts +7 -0
  1436. package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.d.ts.map +1 -0
  1437. package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.js +47 -0
  1438. package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.js.map +1 -0
  1439. package/dist/ai-service/state-machine/helpers/background-chat-record.d.ts +33 -0
  1440. package/dist/ai-service/state-machine/helpers/background-chat-record.d.ts.map +1 -0
  1441. package/dist/ai-service/state-machine/helpers/background-chat-record.js +61 -0
  1442. package/dist/ai-service/state-machine/helpers/background-chat-record.js.map +1 -0
  1443. package/dist/ai-service/state-machine/helpers/change-info.d.ts +8 -0
  1444. package/dist/ai-service/state-machine/helpers/change-info.d.ts.map +1 -0
  1445. package/dist/ai-service/state-machine/helpers/change-info.js +100 -0
  1446. package/dist/ai-service/state-machine/helpers/change-info.js.map +1 -0
  1447. package/dist/ai-service/state-machine/helpers/classification.d.ts +5 -0
  1448. package/dist/ai-service/state-machine/helpers/classification.d.ts.map +1 -0
  1449. package/dist/ai-service/state-machine/helpers/classification.js +13 -0
  1450. package/dist/ai-service/state-machine/helpers/classification.js.map +1 -0
  1451. package/dist/ai-service/state-machine/helpers/context-id.d.ts +4 -0
  1452. package/dist/ai-service/state-machine/helpers/context-id.d.ts.map +1 -0
  1453. package/dist/ai-service/state-machine/helpers/context-id.js +18 -0
  1454. package/dist/ai-service/state-machine/helpers/context-id.js.map +1 -0
  1455. package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.d.ts +7 -0
  1456. package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.d.ts.map +1 -0
  1457. package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.js +38 -0
  1458. package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.js.map +1 -0
  1459. package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.d.ts +27 -0
  1460. package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.d.ts.map +1 -0
  1461. package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.js +34 -0
  1462. package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.js.map +1 -0
  1463. package/dist/ai-service/state-machine/helpers/peer.d.ts +83 -3
  1464. package/dist/ai-service/state-machine/helpers/peer.d.ts.map +1 -1
  1465. package/dist/ai-service/state-machine/helpers/peer.js +342 -4
  1466. package/dist/ai-service/state-machine/helpers/peer.js.map +1 -1
  1467. package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.d.ts +21 -0
  1468. package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.d.ts.map +1 -0
  1469. package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.js +71 -0
  1470. package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.js.map +1 -0
  1471. package/dist/ai-service/state-machine/helpers/pre-session-metrics.d.ts +38 -0
  1472. package/dist/ai-service/state-machine/helpers/pre-session-metrics.d.ts.map +1 -0
  1473. package/dist/ai-service/state-machine/helpers/pre-session-metrics.js +131 -0
  1474. package/dist/ai-service/state-machine/helpers/pre-session-metrics.js.map +1 -0
  1475. package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.d.ts +26 -0
  1476. package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.d.ts.map +1 -0
  1477. package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.js +128 -0
  1478. package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.js.map +1 -0
  1479. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts +28 -0
  1480. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts.map +1 -0
  1481. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js +254 -0
  1482. package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js.map +1 -0
  1483. package/dist/ai-service/state-machine/helpers/prompt-failure.d.ts +59 -0
  1484. package/dist/ai-service/state-machine/helpers/prompt-failure.d.ts.map +1 -0
  1485. package/dist/ai-service/state-machine/helpers/prompt-failure.js +168 -0
  1486. package/dist/ai-service/state-machine/helpers/prompt-failure.js.map +1 -0
  1487. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts +229 -0
  1488. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts.map +1 -0
  1489. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js +675 -0
  1490. package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js.map +1 -0
  1491. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +271 -0
  1492. package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -0
  1493. package/dist/ai-service/state-machine/helpers/stable-peer.js +630 -0
  1494. package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -0
  1495. package/dist/ai-service/state-machine/helpers/transition.d.ts.map +1 -1
  1496. package/dist/ai-service/state-machine/helpers/transition.js +8 -3
  1497. package/dist/ai-service/state-machine/helpers/transition.js.map +1 -1
  1498. package/dist/ai-service/state-machine/helpers/user-preferences.d.ts +8 -0
  1499. package/dist/ai-service/state-machine/helpers/user-preferences.d.ts.map +1 -0
  1500. package/dist/ai-service/state-machine/helpers/user-preferences.js +11 -0
  1501. package/dist/ai-service/state-machine/helpers/user-preferences.js.map +1 -0
  1502. package/dist/ai-service/state-machine/mocks.d.ts +3 -3
  1503. package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
  1504. package/dist/ai-service/state-machine/mocks.js +125 -20
  1505. package/dist/ai-service/state-machine/mocks.js.map +1 -1
  1506. package/dist/ai-service/state-machine/traced-fsm.d.ts +89 -0
  1507. package/dist/ai-service/state-machine/traced-fsm.d.ts.map +1 -0
  1508. package/dist/ai-service/state-machine/traced-fsm.js +179 -0
  1509. package/dist/ai-service/state-machine/traced-fsm.js.map +1 -0
  1510. package/dist/ai-service/tasks/access.d.ts +23 -0
  1511. package/dist/ai-service/tasks/access.d.ts.map +1 -0
  1512. package/dist/ai-service/tasks/access.js +26 -0
  1513. package/dist/ai-service/tasks/access.js.map +1 -0
  1514. package/dist/ai-service/tasks/factory.d.ts +106 -0
  1515. package/dist/ai-service/tasks/factory.d.ts.map +1 -0
  1516. package/dist/ai-service/tasks/factory.js +71 -0
  1517. package/dist/ai-service/tasks/factory.js.map +1 -0
  1518. package/dist/ai-service/tasks/index.d.ts +6 -0
  1519. package/dist/ai-service/tasks/index.d.ts.map +1 -0
  1520. package/dist/ai-service/tasks/index.js +5 -0
  1521. package/dist/ai-service/tasks/index.js.map +1 -0
  1522. package/dist/ai-service/tasks/peer-push.d.ts +81 -0
  1523. package/dist/ai-service/tasks/peer-push.d.ts.map +1 -0
  1524. package/dist/ai-service/tasks/peer-push.js +84 -0
  1525. package/dist/ai-service/tasks/peer-push.js.map +1 -0
  1526. package/dist/ai-service/tasks/poll-loop.d.ts +56 -0
  1527. package/dist/ai-service/tasks/poll-loop.d.ts.map +1 -0
  1528. package/dist/ai-service/tasks/poll-loop.js +73 -0
  1529. package/dist/ai-service/tasks/poll-loop.js.map +1 -0
  1530. package/dist/ai-service/tasks/task-store.d.ts +116 -0
  1531. package/dist/ai-service/tasks/task-store.d.ts.map +1 -0
  1532. package/dist/ai-service/tasks/task-store.js +388 -0
  1533. package/dist/ai-service/tasks/task-store.js.map +1 -0
  1534. package/dist/ai-service/tasks/test-utils.d.ts +24 -0
  1535. package/dist/ai-service/tasks/test-utils.d.ts.map +1 -0
  1536. package/dist/ai-service/tasks/test-utils.js +53 -0
  1537. package/dist/ai-service/tasks/test-utils.js.map +1 -0
  1538. package/dist/ai-service/tasks/types.d.ts +143 -0
  1539. package/dist/ai-service/tasks/types.d.ts.map +1 -0
  1540. package/dist/ai-service/tasks/types.js +6 -0
  1541. package/dist/ai-service/tasks/types.js.map +1 -0
  1542. package/dist/ai-service/template-renderer.d.ts +45 -0
  1543. package/dist/ai-service/template-renderer.d.ts.map +1 -0
  1544. package/dist/ai-service/template-renderer.js +316 -0
  1545. package/dist/ai-service/template-renderer.js.map +1 -0
  1546. package/dist/ai-service/test-utils/dd-trace-helpers.d.ts +25 -0
  1547. package/dist/ai-service/test-utils/dd-trace-helpers.d.ts.map +1 -0
  1548. package/dist/ai-service/test-utils/dd-trace-helpers.js +9 -0
  1549. package/dist/ai-service/test-utils/dd-trace-helpers.js.map +1 -0
  1550. package/dist/ai-service/test-utils/error-mocks.d.ts +69 -0
  1551. package/dist/ai-service/test-utils/error-mocks.d.ts.map +1 -0
  1552. package/dist/ai-service/test-utils/error-mocks.js +334 -0
  1553. package/dist/ai-service/test-utils/error-mocks.js.map +1 -0
  1554. package/dist/ai-service/test-utils/metrics-harness.d.ts +38 -0
  1555. package/dist/ai-service/test-utils/metrics-harness.d.ts.map +1 -0
  1556. package/dist/ai-service/test-utils/metrics-harness.js +67 -0
  1557. package/dist/ai-service/test-utils/metrics-harness.js.map +1 -0
  1558. package/dist/ai-service/test-utils/span-interceptor.d.ts +74 -0
  1559. package/dist/ai-service/test-utils/span-interceptor.d.ts.map +1 -0
  1560. package/dist/ai-service/test-utils/span-interceptor.js +272 -0
  1561. package/dist/ai-service/test-utils/span-interceptor.js.map +1 -0
  1562. package/dist/ai-service/test-utils/tracer-harness.d.ts +8 -0
  1563. package/dist/ai-service/test-utils/tracer-harness.d.ts.map +1 -0
  1564. package/dist/ai-service/test-utils/tracer-harness.js +26 -0
  1565. package/dist/ai-service/test-utils/tracer-harness.js.map +1 -0
  1566. package/dist/ai-service/transform/api-builder/shared.d.ts +10 -2
  1567. package/dist/ai-service/transform/api-builder/shared.d.ts.map +1 -1
  1568. package/dist/ai-service/transform/api-builder/shared.js +33 -10
  1569. package/dist/ai-service/transform/api-builder/shared.js.map +1 -1
  1570. package/dist/ai-service/transform/api-builder/to-sdk-transformer.d.ts +16 -2
  1571. package/dist/ai-service/transform/api-builder/to-sdk-transformer.d.ts.map +1 -1
  1572. package/dist/ai-service/transform/api-builder/to-sdk-transformer.js +181 -55
  1573. package/dist/ai-service/transform/api-builder/to-sdk-transformer.js.map +1 -1
  1574. package/dist/ai-service/transform/api-builder/to-yaml-transformer.d.ts +6 -2
  1575. package/dist/ai-service/transform/api-builder/to-yaml-transformer.d.ts.map +1 -1
  1576. package/dist/ai-service/transform/api-builder/to-yaml-transformer.js +186 -49
  1577. package/dist/ai-service/transform/api-builder/to-yaml-transformer.js.map +1 -1
  1578. package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.d.ts +40 -0
  1579. package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.d.ts.map +1 -0
  1580. package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.js +118 -0
  1581. package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.js.map +1 -0
  1582. package/dist/ai-service/transform/remove-api-builder-imports/transformer.d.ts +1 -1
  1583. package/dist/ai-service/transform/remove-api-builder-imports/transformer.d.ts.map +1 -1
  1584. package/dist/ai-service/transform/remove-api-builder-imports/transformer.js +88 -37
  1585. package/dist/ai-service/transform/remove-api-builder-imports/transformer.js.map +1 -1
  1586. package/dist/ai-service/transform/shared.d.ts +9 -2
  1587. package/dist/ai-service/transform/shared.d.ts.map +1 -1
  1588. package/dist/ai-service/transform/shared.js +43 -13
  1589. package/dist/ai-service/transform/shared.js.map +1 -1
  1590. package/dist/ai-service/transform/workaround-missing-sbapi/transformer.d.ts +1 -1
  1591. package/dist/ai-service/transform/workaround-missing-sbapi/transformer.d.ts.map +1 -1
  1592. package/dist/ai-service/transform/workaround-missing-sbapi/transformer.js +77 -26
  1593. package/dist/ai-service/transform/workaround-missing-sbapi/transformer.js.map +1 -1
  1594. package/dist/ai-service/types.d.ts +301 -27
  1595. package/dist/ai-service/types.d.ts.map +1 -1
  1596. package/dist/ai-service/types.js +157 -0
  1597. package/dist/ai-service/types.js.map +1 -1
  1598. package/dist/ai-service/util/archive-extractors.d.ts +52 -0
  1599. package/dist/ai-service/util/archive-extractors.d.ts.map +1 -0
  1600. package/dist/ai-service/util/archive-extractors.js +305 -0
  1601. package/dist/ai-service/util/archive-extractors.js.map +1 -0
  1602. package/dist/ai-service/util/call-peer.d.ts +11 -0
  1603. package/dist/ai-service/util/call-peer.d.ts.map +1 -0
  1604. package/dist/ai-service/util/call-peer.js +47 -0
  1605. package/dist/ai-service/util/call-peer.js.map +1 -0
  1606. package/dist/ai-service/util/inference-jwt.d.ts +15 -0
  1607. package/dist/ai-service/util/inference-jwt.d.ts.map +1 -0
  1608. package/dist/ai-service/util/inference-jwt.js +56 -0
  1609. package/dist/ai-service/util/inference-jwt.js.map +1 -0
  1610. package/dist/ai-service/util/llm-config-utils.d.ts +54 -0
  1611. package/dist/ai-service/util/llm-config-utils.d.ts.map +1 -0
  1612. package/dist/ai-service/util/llm-config-utils.js +140 -0
  1613. package/dist/ai-service/util/llm-config-utils.js.map +1 -0
  1614. package/dist/ai-service/util/mode-message.d.ts +7 -0
  1615. package/dist/ai-service/util/mode-message.d.ts.map +1 -0
  1616. package/dist/ai-service/util/mode-message.js +15 -0
  1617. package/dist/ai-service/util/mode-message.js.map +1 -0
  1618. package/dist/ai-service/util/parse-jwt.d.ts +12 -0
  1619. package/dist/ai-service/util/parse-jwt.d.ts.map +1 -0
  1620. package/dist/ai-service/util/parse-jwt.js +30 -0
  1621. package/dist/ai-service/util/parse-jwt.js.map +1 -0
  1622. package/dist/ai-service/util/peer-liveness.d.ts +23 -0
  1623. package/dist/ai-service/util/peer-liveness.d.ts.map +1 -0
  1624. package/dist/ai-service/util/peer-liveness.js +42 -0
  1625. package/dist/ai-service/util/peer-liveness.js.map +1 -0
  1626. package/dist/ai-service/util/rpc-timeout.d.ts +89 -0
  1627. package/dist/ai-service/util/rpc-timeout.d.ts.map +1 -0
  1628. package/dist/ai-service/util/rpc-timeout.js +112 -0
  1629. package/dist/ai-service/util/rpc-timeout.js.map +1 -0
  1630. package/dist/ai-service/util/scoped-token-utils.d.ts +15 -0
  1631. package/dist/ai-service/util/scoped-token-utils.d.ts.map +1 -0
  1632. package/dist/ai-service/util/scoped-token-utils.js +137 -0
  1633. package/dist/ai-service/util/scoped-token-utils.js.map +1 -0
  1634. package/dist/ai-service/util/stop-condition.d.ts +17 -0
  1635. package/dist/ai-service/util/stop-condition.d.ts.map +1 -0
  1636. package/dist/ai-service/util/stop-condition.js +33 -0
  1637. package/dist/ai-service/util/stop-condition.js.map +1 -0
  1638. package/dist/ai-service/util/strip-content.d.ts +2 -0
  1639. package/dist/ai-service/util/strip-content.d.ts.map +1 -0
  1640. package/dist/ai-service/util/strip-content.js +31 -0
  1641. package/dist/ai-service/util/strip-content.js.map +1 -0
  1642. package/dist/ai-service/util/tool-signature.d.ts +13 -0
  1643. package/dist/ai-service/util/tool-signature.d.ts.map +1 -0
  1644. package/dist/ai-service/util/tool-signature.js +38 -0
  1645. package/dist/ai-service/util/tool-signature.js.map +1 -0
  1646. package/dist/binding-extraction/extract-control-block-identifiers.d.ts +1 -2
  1647. package/dist/binding-extraction/extract-control-block-identifiers.d.ts.map +1 -1
  1648. package/dist/binding-extraction/extract-control-block-identifiers.js +16 -14
  1649. package/dist/binding-extraction/extract-control-block-identifiers.js.map +1 -1
  1650. package/dist/binding-extraction/extract-embedded-identifiers.d.ts +2 -11
  1651. package/dist/binding-extraction/extract-embedded-identifiers.d.ts.map +1 -1
  1652. package/dist/binding-extraction/extract-embedded-identifiers.js +9 -91
  1653. package/dist/binding-extraction/extract-embedded-identifiers.js.map +1 -1
  1654. package/dist/binding-extraction/extract-identifiers.d.ts +16 -3
  1655. package/dist/binding-extraction/extract-identifiers.d.ts.map +1 -1
  1656. package/dist/binding-extraction/extract-identifiers.js +272 -64
  1657. package/dist/binding-extraction/extract-identifiers.js.map +1 -1
  1658. package/dist/binding-extraction/index.d.ts +2 -0
  1659. package/dist/binding-extraction/index.d.ts.map +1 -0
  1660. package/dist/binding-extraction/index.js +2 -0
  1661. package/dist/binding-extraction/index.js.map +1 -0
  1662. package/dist/binding-extraction/js-identifiers.d.ts +34 -0
  1663. package/dist/binding-extraction/js-identifiers.d.ts.map +1 -0
  1664. package/dist/binding-extraction/js-identifiers.js +409 -0
  1665. package/dist/binding-extraction/js-identifiers.js.map +1 -0
  1666. package/dist/binding-extraction/python-identifiers.d.ts +30 -0
  1667. package/dist/binding-extraction/python-identifiers.d.ts.map +1 -0
  1668. package/dist/binding-extraction/python-identifiers.js +657 -0
  1669. package/dist/binding-extraction/python-identifiers.js.map +1 -0
  1670. package/dist/binding-extraction/shared.d.ts +0 -203
  1671. package/dist/binding-extraction/shared.d.ts.map +1 -1
  1672. package/dist/binding-extraction/shared.js +1 -42
  1673. package/dist/binding-extraction/shared.js.map +1 -1
  1674. package/dist/binding-extraction/template-strings.d.ts +1 -2
  1675. package/dist/binding-extraction/template-strings.d.ts.map +1 -1
  1676. package/dist/build-errors.d.ts +10 -0
  1677. package/dist/build-errors.d.ts.map +1 -0
  1678. package/dist/build-errors.js +14 -0
  1679. package/dist/build-errors.js.map +1 -0
  1680. package/dist/clark-log-forwarder.d.ts +15 -0
  1681. package/dist/clark-log-forwarder.d.ts.map +1 -0
  1682. package/dist/clark-log-forwarder.js +32 -0
  1683. package/dist/clark-log-forwarder.js.map +1 -0
  1684. package/dist/client-error-overlay.d.ts +11 -0
  1685. package/dist/client-error-overlay.d.ts.map +1 -0
  1686. package/dist/client-error-overlay.js +90 -0
  1687. package/dist/client-error-overlay.js.map +1 -0
  1688. package/dist/codegen.d.ts +3 -25
  1689. package/dist/codegen.d.ts.map +1 -1
  1690. package/dist/codegen.js +64 -129
  1691. package/dist/codegen.js.map +1 -1
  1692. package/dist/components-manager.d.ts +12 -12
  1693. package/dist/components-manager.d.ts.map +1 -1
  1694. package/dist/components-manager.js +116 -90
  1695. package/dist/components-manager.js.map +1 -1
  1696. package/dist/custom-components.d.ts +1 -1
  1697. package/dist/custom-components.d.ts.map +1 -1
  1698. package/dist/custom-components.js +1 -1
  1699. package/dist/custom-components.js.map +1 -1
  1700. package/dist/dev-server-ws-smoke-client.d.ts +40 -0
  1701. package/dist/dev-server-ws-smoke-client.d.ts.map +1 -0
  1702. package/dist/dev-server-ws-smoke-client.js +315 -0
  1703. package/dist/dev-server-ws-smoke-client.js.map +1 -0
  1704. package/dist/download-filename.d.ts +6 -0
  1705. package/dist/download-filename.d.ts.map +1 -0
  1706. package/dist/download-filename.js +40 -0
  1707. package/dist/download-filename.js.map +1 -0
  1708. package/dist/draft-interface.d.ts +8 -1
  1709. package/dist/draft-interface.d.ts.map +1 -1
  1710. package/dist/early-error-relay.d.ts +31 -0
  1711. package/dist/early-error-relay.d.ts.map +1 -0
  1712. package/dist/early-error-relay.js +88 -0
  1713. package/dist/early-error-relay.js.map +1 -0
  1714. package/dist/ensure-app-provider.d.ts +2 -0
  1715. package/dist/ensure-app-provider.d.ts.map +1 -0
  1716. package/dist/ensure-app-provider.js +209 -0
  1717. package/dist/ensure-app-provider.js.map +1 -0
  1718. package/dist/errors/error-handler.d.ts +3 -13
  1719. package/dist/errors/error-handler.d.ts.map +1 -1
  1720. package/dist/errors/error-handler.js +1 -1
  1721. package/dist/errors/error-handler.js.map +1 -1
  1722. package/dist/extract-api-integrations.d.ts +99 -0
  1723. package/dist/extract-api-integrations.d.ts.map +1 -0
  1724. package/dist/extract-api-integrations.js +597 -0
  1725. package/dist/extract-api-integrations.js.map +1 -0
  1726. package/dist/file-sync-vite-plugin.d.ts +48 -2
  1727. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  1728. package/dist/file-sync-vite-plugin.js +1285 -470
  1729. package/dist/file-sync-vite-plugin.js.map +1 -1
  1730. package/dist/file-system-helpers.d.ts +55 -3
  1731. package/dist/file-system-helpers.d.ts.map +1 -1
  1732. package/dist/file-system-helpers.js +128 -5
  1733. package/dist/file-system-helpers.js.map +1 -1
  1734. package/dist/file-system-manager.d.ts +62 -69
  1735. package/dist/file-system-manager.d.ts.map +1 -1
  1736. package/dist/file-system-manager.js +695 -811
  1737. package/dist/file-system-manager.js.map +1 -1
  1738. package/dist/git-auth-state.d.ts +4 -0
  1739. package/dist/git-auth-state.d.ts.map +1 -0
  1740. package/dist/git-auth-state.js +25 -0
  1741. package/dist/git-auth-state.js.map +1 -0
  1742. package/dist/git-log.d.ts +11 -0
  1743. package/dist/git-log.d.ts.map +1 -0
  1744. package/dist/git-log.js +23 -0
  1745. package/dist/git-log.js.map +1 -0
  1746. package/dist/git-operation-lock.d.ts +22 -0
  1747. package/dist/git-operation-lock.d.ts.map +1 -0
  1748. package/dist/git-operation-lock.js +25 -0
  1749. package/dist/git-operation-lock.js.map +1 -0
  1750. package/dist/git-service/app-layout-guard.d.ts +25 -0
  1751. package/dist/git-service/app-layout-guard.d.ts.map +1 -0
  1752. package/dist/git-service/app-layout-guard.js +66 -0
  1753. package/dist/git-service/app-layout-guard.js.map +1 -0
  1754. package/dist/git-service/azure-devops-workflow.d.ts +6 -0
  1755. package/dist/git-service/azure-devops-workflow.d.ts.map +1 -0
  1756. package/dist/git-service/azure-devops-workflow.js +12 -0
  1757. package/dist/git-service/azure-devops-workflow.js.map +1 -0
  1758. package/dist/git-service/bitbucket-workflow.d.ts +5 -0
  1759. package/dist/git-service/bitbucket-workflow.d.ts.map +1 -0
  1760. package/dist/git-service/bitbucket-workflow.js +12 -0
  1761. package/dist/git-service/bitbucket-workflow.js.map +1 -0
  1762. package/dist/git-service/checkpoint-commit-metrics.d.ts +2 -0
  1763. package/dist/git-service/checkpoint-commit-metrics.d.ts.map +1 -0
  1764. package/dist/git-service/checkpoint-commit-metrics.js +15 -0
  1765. package/dist/git-service/checkpoint-commit-metrics.js.map +1 -0
  1766. package/dist/git-service/checkpoint-committer.d.ts +22 -0
  1767. package/dist/git-service/checkpoint-committer.d.ts.map +1 -0
  1768. package/dist/git-service/checkpoint-committer.js +91 -0
  1769. package/dist/git-service/checkpoint-committer.js.map +1 -0
  1770. package/dist/git-service/commit-live-branch.d.ts +17 -0
  1771. package/dist/git-service/commit-live-branch.d.ts.map +1 -0
  1772. package/dist/git-service/commit-live-branch.js +28 -0
  1773. package/dist/git-service/commit-live-branch.js.map +1 -0
  1774. package/dist/git-service/ensure-workflow-file.d.ts +20 -0
  1775. package/dist/git-service/ensure-workflow-file.d.ts.map +1 -0
  1776. package/dist/git-service/ensure-workflow-file.js +51 -0
  1777. package/dist/git-service/ensure-workflow-file.js.map +1 -0
  1778. package/dist/git-service/errors.d.ts +31 -0
  1779. package/dist/git-service/errors.d.ts.map +1 -0
  1780. package/dist/git-service/errors.js +49 -0
  1781. package/dist/git-service/errors.js.map +1 -0
  1782. package/dist/git-service/github-workflow.d.ts +6 -0
  1783. package/dist/git-service/github-workflow.d.ts.map +1 -0
  1784. package/dist/git-service/github-workflow.js +12 -0
  1785. package/dist/git-service/github-workflow.js.map +1 -0
  1786. package/dist/git-service/gitlab-workflow.d.ts +6 -0
  1787. package/dist/git-service/gitlab-workflow.d.ts.map +1 -0
  1788. package/dist/git-service/gitlab-workflow.js +12 -0
  1789. package/dist/git-service/gitlab-workflow.js.map +1 -0
  1790. package/dist/git-service/index.d.ts +30 -0
  1791. package/dist/git-service/index.d.ts.map +1 -0
  1792. package/dist/git-service/index.js +217 -0
  1793. package/dist/git-service/index.js.map +1 -0
  1794. package/dist/git-service/live-branch.d.ts +11 -0
  1795. package/dist/git-service/live-branch.d.ts.map +1 -0
  1796. package/dist/git-service/live-branch.js +171 -0
  1797. package/dist/git-service/live-branch.js.map +1 -0
  1798. package/dist/git-service/managed-excludes.d.ts +36 -0
  1799. package/dist/git-service/managed-excludes.d.ts.map +1 -0
  1800. package/dist/git-service/managed-excludes.js +124 -0
  1801. package/dist/git-service/managed-excludes.js.map +1 -0
  1802. package/dist/git-service/provider-workflow-files.d.ts +12 -0
  1803. package/dist/git-service/provider-workflow-files.d.ts.map +1 -0
  1804. package/dist/git-service/provider-workflow-files.js +36 -0
  1805. package/dist/git-service/provider-workflow-files.js.map +1 -0
  1806. package/dist/git-service/status-sync.d.ts +18 -0
  1807. package/dist/git-service/status-sync.d.ts.map +1 -0
  1808. package/dist/git-service/status-sync.js +32 -0
  1809. package/dist/git-service/status-sync.js.map +1 -0
  1810. package/dist/ids.d.ts +1 -0
  1811. package/dist/ids.d.ts.map +1 -1
  1812. package/dist/ids.js +3 -0
  1813. package/dist/ids.js.map +1 -1
  1814. package/dist/index.d.ts +5 -0
  1815. package/dist/index.d.ts.map +1 -1
  1816. package/dist/index.js +3 -0
  1817. package/dist/index.js.map +1 -1
  1818. package/dist/inject-index-vite-plugin.d.ts +21 -0
  1819. package/dist/inject-index-vite-plugin.d.ts.map +1 -0
  1820. package/dist/inject-index-vite-plugin.js +130 -0
  1821. package/dist/inject-index-vite-plugin.js.map +1 -0
  1822. package/dist/injected-index.d.ts +9 -2
  1823. package/dist/injected-index.d.ts.map +1 -1
  1824. package/dist/injected-index.js +153 -9
  1825. package/dist/injected-index.js.map +1 -1
  1826. package/dist/lock-service/activity-tracker.d.ts +46 -0
  1827. package/dist/lock-service/activity-tracker.d.ts.map +1 -0
  1828. package/dist/lock-service/activity-tracker.js +119 -0
  1829. package/dist/lock-service/activity-tracker.js.map +1 -0
  1830. package/dist/lock-service/index.d.ts +419 -24
  1831. package/dist/lock-service/index.d.ts.map +1 -1
  1832. package/dist/lock-service/index.js +1204 -130
  1833. package/dist/lock-service/index.js.map +1 -1
  1834. package/dist/migration/get-fullstack-template-dir.d.ts +37 -0
  1835. package/dist/migration/get-fullstack-template-dir.d.ts.map +1 -0
  1836. package/dist/migration/get-fullstack-template-dir.js +99 -0
  1837. package/dist/migration/get-fullstack-template-dir.js.map +1 -0
  1838. package/dist/migration/inline-v2-backup-source-files.d.ts +7 -0
  1839. package/dist/migration/inline-v2-backup-source-files.d.ts.map +1 -0
  1840. package/dist/migration/inline-v2-backup-source-files.js +110 -0
  1841. package/dist/migration/inline-v2-backup-source-files.js.map +1 -0
  1842. package/dist/migration/integration-write-policy.d.ts +24 -0
  1843. package/dist/migration/integration-write-policy.d.ts.map +1 -0
  1844. package/dist/migration/integration-write-policy.js +125 -0
  1845. package/dist/migration/integration-write-policy.js.map +1 -0
  1846. package/dist/migration/mark-api-testing-denied.d.ts +27 -0
  1847. package/dist/migration/mark-api-testing-denied.d.ts.map +1 -0
  1848. package/dist/migration/mark-api-testing-denied.js +80 -0
  1849. package/dist/migration/mark-api-testing-denied.js.map +1 -0
  1850. package/dist/migration/migration-checklist.d.ts +80 -0
  1851. package/dist/migration/migration-checklist.d.ts.map +1 -0
  1852. package/dist/migration/migration-checklist.js +150 -0
  1853. package/dist/migration/migration-checklist.js.map +1 -0
  1854. package/dist/migration/migration-classifier.d.ts +4 -0
  1855. package/dist/migration/migration-classifier.d.ts.map +1 -0
  1856. package/dist/migration/migration-classifier.js +87 -0
  1857. package/dist/migration/migration-classifier.js.map +1 -0
  1858. package/dist/migration/migration-metrics.d.ts +74 -0
  1859. package/dist/migration/migration-metrics.d.ts.map +1 -0
  1860. package/dist/migration/migration-metrics.js +124 -0
  1861. package/dist/migration/migration-metrics.js.map +1 -0
  1862. package/dist/migration/migration-routes.d.ts +47 -0
  1863. package/dist/migration/migration-routes.d.ts.map +1 -0
  1864. package/dist/migration/migration-routes.js +1233 -0
  1865. package/dist/migration/migration-routes.js.map +1 -0
  1866. package/dist/migration/migration-session-reconcile.d.ts +24 -0
  1867. package/dist/migration/migration-session-reconcile.d.ts.map +1 -0
  1868. package/dist/migration/migration-session-reconcile.js +139 -0
  1869. package/dist/migration/migration-session-reconcile.js.map +1 -0
  1870. package/dist/migration/migration-verification.d.ts +288 -0
  1871. package/dist/migration/migration-verification.d.ts.map +1 -0
  1872. package/dist/migration/migration-verification.js +1246 -0
  1873. package/dist/migration/migration-verification.js.map +1 -0
  1874. package/dist/migration/recommended-user-deps.d.ts +40 -0
  1875. package/dist/migration/recommended-user-deps.d.ts.map +1 -0
  1876. package/dist/migration/recommended-user-deps.js +209 -0
  1877. package/dist/migration/recommended-user-deps.js.map +1 -0
  1878. package/dist/migration/resolve-v2-backup-path.d.ts +7 -0
  1879. package/dist/migration/resolve-v2-backup-path.d.ts.map +1 -0
  1880. package/dist/migration/resolve-v2-backup-path.js +35 -0
  1881. package/dist/migration/resolve-v2-backup-path.js.map +1 -0
  1882. package/dist/migration/restructure.d.ts +125 -0
  1883. package/dist/migration/restructure.d.ts.map +1 -0
  1884. package/dist/migration/restructure.js +645 -0
  1885. package/dist/migration/restructure.js.map +1 -0
  1886. package/dist/migration/scan-imports.d.ts +7 -0
  1887. package/dist/migration/scan-imports.d.ts.map +1 -0
  1888. package/dist/migration/scan-imports.js +178 -0
  1889. package/dist/migration/scan-imports.js.map +1 -0
  1890. package/dist/migration/translation-prompt.d.ts +23 -0
  1891. package/dist/migration/translation-prompt.d.ts.map +1 -0
  1892. package/dist/migration/translation-prompt.js +36 -0
  1893. package/dist/migration/translation-prompt.js.map +1 -0
  1894. package/dist/migration/unsupported-integrations.d.ts +11 -0
  1895. package/dist/migration/unsupported-integrations.d.ts.map +1 -0
  1896. package/dist/migration/unsupported-integrations.js +206 -0
  1897. package/dist/migration/unsupported-integrations.js.map +1 -0
  1898. package/dist/migration/yaml-walk.d.ts +18 -0
  1899. package/dist/migration/yaml-walk.d.ts.map +1 -0
  1900. package/dist/migration/yaml-walk.js +45 -0
  1901. package/dist/migration/yaml-walk.js.map +1 -0
  1902. package/dist/migration-templates/app-fullstack/client/App.tsx +17 -0
  1903. package/dist/migration-templates/app-fullstack/client/components/common/sonner.tsx +20 -0
  1904. package/dist/migration-templates/app-fullstack/client/components/hooks/use-active-page.ts +73 -0
  1905. package/dist/migration-templates/app-fullstack/client/components/hooks/use-mobile.ts +21 -0
  1906. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +197 -0
  1907. package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +432 -0
  1908. package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +45 -0
  1909. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +117 -0
  1910. package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +143 -0
  1911. package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +390 -0
  1912. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +259 -0
  1913. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +182 -0
  1914. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +300 -0
  1915. package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +129 -0
  1916. package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +403 -0
  1917. package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +97 -0
  1918. package/dist/migration-templates/app-fullstack/client/components/ui/code-block-content.tsx +66 -0
  1919. package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +396 -0
  1920. package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +223 -0
  1921. package/dist/migration-templates/app-fullstack/client/components/ui/dropdown-menu.tsx +284 -0
  1922. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +395 -0
  1923. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +166 -0
  1924. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +162 -0
  1925. package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +133 -0
  1926. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +68 -0
  1927. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +219 -0
  1928. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +55 -0
  1929. package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +380 -0
  1930. package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +139 -0
  1931. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +345 -0
  1932. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +192 -0
  1933. package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +295 -0
  1934. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +162 -0
  1935. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +69 -0
  1936. package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +386 -0
  1937. package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +402 -0
  1938. package/dist/migration-templates/app-fullstack/client/components/ui/scroll-area.tsx +86 -0
  1939. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +229 -0
  1940. package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +62 -0
  1941. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +234 -0
  1942. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +974 -0
  1943. package/dist/migration-templates/app-fullstack/client/components/ui/skeleton.tsx +13 -0
  1944. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +198 -0
  1945. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +95 -0
  1946. package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +145 -0
  1947. package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +87 -0
  1948. package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +148 -0
  1949. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +225 -0
  1950. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +150 -0
  1951. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +175 -0
  1952. package/dist/migration-templates/app-fullstack/client/hooks/useApi.ts +25 -0
  1953. package/dist/migration-templates/app-fullstack/client/hooks/useApiData.ts +10 -0
  1954. package/dist/migration-templates/app-fullstack/client/index.css +131 -0
  1955. package/dist/migration-templates/app-fullstack/client/lib/executeApi.ts +9 -0
  1956. package/dist/migration-templates/app-fullstack/client/lib/utils.ts +6 -0
  1957. package/dist/migration-templates/app-fullstack/client/pages/Home/index.tsx +3 -0
  1958. package/dist/migration-templates/app-fullstack/client/root.tsx +17 -0
  1959. package/dist/migration-templates/app-fullstack/client/router.tsx +48 -0
  1960. package/dist/migration-templates/app-fullstack/client/types/node.d.ts +9 -0
  1961. package/dist/migration-templates/app-fullstack/components.json +21 -0
  1962. package/dist/migration-templates/app-fullstack/css.d.ts +3 -0
  1963. package/dist/migration-templates/app-fullstack/eslint.config.js +113 -0
  1964. package/dist/migration-templates/app-fullstack/package.json +84 -0
  1965. package/dist/migration-templates/app-fullstack/server/.gitkeep +0 -0
  1966. package/dist/migration-templates/app-fullstack/server/apis/index.ts +22 -0
  1967. package/dist/migration-templates/app-fullstack/server/index.ts +2 -0
  1968. package/dist/migration-templates/app-fullstack/tsconfig.client.json +27 -0
  1969. package/dist/migration-templates/app-fullstack/tsconfig.eslint.json +8 -0
  1970. package/dist/migration-templates/app-fullstack/tsconfig.json +25 -0
  1971. package/dist/migration-templates/app-fullstack/tsconfig.server.json +13 -0
  1972. package/dist/migration-templates/app-fullstack/vite.config.ts +17 -0
  1973. package/dist/npm/apply-package-json-substitutions.d.ts +19 -0
  1974. package/dist/npm/apply-package-json-substitutions.d.ts.map +1 -0
  1975. package/dist/npm/apply-package-json-substitutions.js +108 -0
  1976. package/dist/npm/apply-package-json-substitutions.js.map +1 -0
  1977. package/dist/npm/normalize-workspace-protocol-for-npm.d.ts +15 -0
  1978. package/dist/npm/normalize-workspace-protocol-for-npm.d.ts.map +1 -0
  1979. package/dist/npm/normalize-workspace-protocol-for-npm.js +36 -0
  1980. package/dist/npm/normalize-workspace-protocol-for-npm.js.map +1 -0
  1981. package/dist/npm/prepare-package-json-for-cloud-npm.d.ts +8 -0
  1982. package/dist/npm/prepare-package-json-for-cloud-npm.d.ts.map +1 -0
  1983. package/dist/npm/prepare-package-json-for-cloud-npm.js +44 -0
  1984. package/dist/npm/prepare-package-json-for-cloud-npm.js.map +1 -0
  1985. package/dist/npm/rewrite-platform-workspace-deps.d.ts +17 -0
  1986. package/dist/npm/rewrite-platform-workspace-deps.d.ts.map +1 -0
  1987. package/dist/npm/rewrite-platform-workspace-deps.js +37 -0
  1988. package/dist/npm/rewrite-platform-workspace-deps.js.map +1 -0
  1989. package/dist/operations/operation-processor.d.ts +24 -0
  1990. package/dist/operations/operation-processor.d.ts.map +1 -0
  1991. package/dist/operations/operation-processor.js +80 -0
  1992. package/dist/operations/operation-processor.js.map +1 -0
  1993. package/dist/operations/types.d.ts +8 -0
  1994. package/dist/operations/types.d.ts.map +1 -0
  1995. package/dist/operations/types.js +2 -0
  1996. package/dist/operations/types.js.map +1 -0
  1997. package/dist/parsing/bindings.d.ts +1 -1
  1998. package/dist/parsing/bindings.d.ts.map +1 -1
  1999. package/dist/parsing/bindings.js +14 -5
  2000. package/dist/parsing/bindings.js.map +1 -1
  2001. package/dist/parsing/computed/index.d.ts +1 -1
  2002. package/dist/parsing/computed/index.d.ts.map +1 -1
  2003. package/dist/parsing/computed/index.js +1 -1
  2004. package/dist/parsing/computed/index.js.map +1 -1
  2005. package/dist/parsing/computed/to-code-computed.d.ts +2 -1
  2006. package/dist/parsing/computed/to-code-computed.d.ts.map +1 -1
  2007. package/dist/parsing/computed/to-code-computed.js +22 -11
  2008. package/dist/parsing/computed/to-code-computed.js.map +1 -1
  2009. package/dist/parsing/computed/to-value-computed.d.ts +1 -1
  2010. package/dist/parsing/computed/to-value-computed.d.ts.map +1 -1
  2011. package/dist/parsing/computed/to-value-computed.js +19 -7
  2012. package/dist/parsing/computed/to-value-computed.js.map +1 -1
  2013. package/dist/parsing/dim/index.d.ts +1 -1
  2014. package/dist/parsing/dim/index.d.ts.map +1 -1
  2015. package/dist/parsing/dim/index.js +1 -1
  2016. package/dist/parsing/dim/index.js.map +1 -1
  2017. package/dist/parsing/dim/to-value-dimensions.d.ts +2 -1
  2018. package/dist/parsing/dim/to-value-dimensions.d.ts.map +1 -1
  2019. package/dist/parsing/dim/to-value-dimensions.js +4 -3
  2020. package/dist/parsing/dim/to-value-dimensions.js.map +1 -1
  2021. package/dist/parsing/function/index.d.ts +4 -0
  2022. package/dist/parsing/function/index.d.ts.map +1 -0
  2023. package/dist/parsing/function/index.js +7 -0
  2024. package/dist/parsing/function/index.js.map +1 -0
  2025. package/dist/parsing/function/to-code-function.d.ts +2 -0
  2026. package/dist/parsing/function/to-code-function.d.ts.map +1 -0
  2027. package/dist/parsing/function/to-code-function.js +4 -0
  2028. package/dist/parsing/function/to-code-function.js.map +1 -0
  2029. package/dist/parsing/function/to-value-function.d.ts +4 -0
  2030. package/dist/parsing/function/to-value-function.d.ts.map +1 -0
  2031. package/dist/parsing/function/to-value-function.js +33 -0
  2032. package/dist/parsing/function/to-value-function.js.map +1 -0
  2033. package/dist/parsing/ids.d.ts +0 -2
  2034. package/dist/parsing/ids.d.ts.map +1 -1
  2035. package/dist/parsing/ids.js +18 -21
  2036. package/dist/parsing/ids.js.map +1 -1
  2037. package/dist/parsing/imports.d.ts +5 -5
  2038. package/dist/parsing/imports.d.ts.map +1 -1
  2039. package/dist/parsing/imports.js +40 -30
  2040. package/dist/parsing/imports.js.map +1 -1
  2041. package/dist/parsing/index.d.ts +3 -0
  2042. package/dist/parsing/index.d.ts.map +1 -0
  2043. package/dist/parsing/index.js +3 -0
  2044. package/dist/parsing/index.js.map +1 -0
  2045. package/dist/parsing/jsx-utils.d.ts +4 -3
  2046. package/dist/parsing/jsx-utils.d.ts.map +1 -1
  2047. package/dist/parsing/jsx-utils.js +37 -25
  2048. package/dist/parsing/jsx-utils.js.map +1 -1
  2049. package/dist/parsing/jsx.d.ts +25 -11
  2050. package/dist/parsing/jsx.d.ts.map +1 -1
  2051. package/dist/parsing/jsx.js +210 -176
  2052. package/dist/parsing/jsx.js.map +1 -1
  2053. package/dist/parsing/page.d.ts +1 -2
  2054. package/dist/parsing/page.d.ts.map +1 -1
  2055. package/dist/parsing/page.js +302 -121
  2056. package/dist/parsing/page.js.map +1 -1
  2057. package/dist/parsing/properties.d.ts +2 -1
  2058. package/dist/parsing/properties.d.ts.map +1 -1
  2059. package/dist/parsing/properties.js +105 -28
  2060. package/dist/parsing/properties.js.map +1 -1
  2061. package/dist/parsing/sdk-registry.d.ts +17 -0
  2062. package/dist/parsing/sdk-registry.d.ts.map +1 -0
  2063. package/dist/parsing/sdk-registry.js +184 -0
  2064. package/dist/parsing/sdk-registry.js.map +1 -0
  2065. package/dist/parsing/template/index.d.ts +1 -1
  2066. package/dist/parsing/template/index.d.ts.map +1 -1
  2067. package/dist/parsing/template/index.js.map +1 -1
  2068. package/dist/parsing/template/to-code-template.d.ts.map +1 -1
  2069. package/dist/parsing/template/to-code-template.js +1 -2
  2070. package/dist/parsing/template/to-code-template.js.map +1 -1
  2071. package/dist/parsing/type-parsing-registry.d.ts +1 -1
  2072. package/dist/parsing/type-parsing-registry.d.ts.map +1 -1
  2073. package/dist/parsing/type-parsing-registry.js +2 -2
  2074. package/dist/parsing/type-parsing-registry.js.map +1 -1
  2075. package/dist/parsing/types.d.ts +3 -2
  2076. package/dist/parsing/types.d.ts.map +1 -1
  2077. package/dist/parsing/util.d.ts +7 -11
  2078. package/dist/parsing/util.d.ts.map +1 -1
  2079. package/dist/parsing/util.js +131 -81
  2080. package/dist/parsing/util.js.map +1 -1
  2081. package/dist/plugin-options.d.ts +63 -5
  2082. package/dist/plugin-options.d.ts.map +1 -1
  2083. package/dist/plugin-options.js +0 -3
  2084. package/dist/plugin-options.js.map +1 -1
  2085. package/dist/policy-gate-callback-mapper.d.ts +25 -0
  2086. package/dist/policy-gate-callback-mapper.d.ts.map +1 -0
  2087. package/dist/policy-gate-callback-mapper.js +60 -0
  2088. package/dist/policy-gate-callback-mapper.js.map +1 -0
  2089. package/dist/policy-gate-run-registry.d.ts +28 -0
  2090. package/dist/policy-gate-run-registry.d.ts.map +1 -0
  2091. package/dist/policy-gate-run-registry.js +40 -0
  2092. package/dist/policy-gate-run-registry.js.map +1 -0
  2093. package/dist/policy-gate-runner.d.ts +36 -0
  2094. package/dist/policy-gate-runner.d.ts.map +1 -0
  2095. package/dist/policy-gate-runner.js +247 -0
  2096. package/dist/policy-gate-runner.js.map +1 -0
  2097. package/dist/refactor/blocks.d.ts +1 -2
  2098. package/dist/refactor/blocks.d.ts.map +1 -1
  2099. package/dist/refactor/blocks.js +3 -70
  2100. package/dist/refactor/blocks.js.map +1 -1
  2101. package/dist/refactor/entities.d.ts +6 -0
  2102. package/dist/refactor/entities.d.ts.map +1 -0
  2103. package/dist/refactor/entities.js +65 -0
  2104. package/dist/refactor/entities.js.map +1 -0
  2105. package/dist/refactor/javascript.d.ts +1 -1
  2106. package/dist/refactor/javascript.d.ts.map +1 -1
  2107. package/dist/refactor/javascript.js +103 -2
  2108. package/dist/refactor/javascript.js.map +1 -1
  2109. package/dist/rename-manager.d.ts +3 -2
  2110. package/dist/rename-manager.d.ts.map +1 -1
  2111. package/dist/rename-manager.js +35 -14
  2112. package/dist/rename-manager.js.map +1 -1
  2113. package/dist/resolver.d.ts +4 -0
  2114. package/dist/resolver.d.ts.map +1 -0
  2115. package/dist/resolver.js +27 -0
  2116. package/dist/resolver.js.map +1 -0
  2117. package/dist/router-parser.d.ts +36 -0
  2118. package/dist/router-parser.d.ts.map +1 -0
  2119. package/dist/router-parser.js +859 -0
  2120. package/dist/router-parser.js.map +1 -0
  2121. package/dist/scan-scope-merge.d.ts +16 -0
  2122. package/dist/scan-scope-merge.d.ts.map +1 -0
  2123. package/dist/scan-scope-merge.js +90 -0
  2124. package/dist/scan-scope-merge.js.map +1 -0
  2125. package/dist/server-rpc/client.d.ts +11 -0
  2126. package/dist/server-rpc/client.d.ts.map +1 -0
  2127. package/dist/server-rpc/client.js +42 -0
  2128. package/dist/server-rpc/client.js.map +1 -0
  2129. package/dist/server-rpc/handlers.d.ts +3 -0
  2130. package/dist/server-rpc/handlers.d.ts.map +1 -0
  2131. package/dist/server-rpc/handlers.js.map +1 -0
  2132. package/dist/server-rpc/index.d.ts +77 -0
  2133. package/dist/server-rpc/index.d.ts.map +1 -0
  2134. package/dist/server-rpc/index.js +344 -0
  2135. package/dist/server-rpc/index.js.map +1 -0
  2136. package/dist/server-rpc/request-abort-context.d.ts +3 -0
  2137. package/dist/server-rpc/request-abort-context.d.ts.map +1 -0
  2138. package/dist/server-rpc/request-abort-context.js +23 -0
  2139. package/dist/server-rpc/request-abort-context.js.map +1 -0
  2140. package/dist/server-rpc/rpc-invalidate-metrics.d.ts +20 -0
  2141. package/dist/server-rpc/rpc-invalidate-metrics.d.ts.map +1 -0
  2142. package/dist/server-rpc/rpc-invalidate-metrics.js +86 -0
  2143. package/dist/server-rpc/rpc-invalidate-metrics.js.map +1 -0
  2144. package/dist/snapshot-routes.d.ts +18 -0
  2145. package/dist/snapshot-routes.d.ts.map +1 -0
  2146. package/dist/snapshot-routes.js +247 -0
  2147. package/dist/snapshot-routes.js.map +1 -0
  2148. package/dist/socket-manager.d.ts +145 -17
  2149. package/dist/socket-manager.d.ts.map +1 -1
  2150. package/dist/socket-manager.js +1689 -82
  2151. package/dist/socket-manager.js.map +1 -1
  2152. package/dist/source-tracker.d.ts +23 -158
  2153. package/dist/source-tracker.d.ts.map +1 -1
  2154. package/dist/source-tracker.js +77 -872
  2155. package/dist/source-tracker.js.map +1 -1
  2156. package/dist/sync-service/checkpoint-result.d.ts +22 -0
  2157. package/dist/sync-service/checkpoint-result.d.ts.map +1 -0
  2158. package/dist/sync-service/checkpoint-result.js +22 -0
  2159. package/dist/sync-service/checkpoint-result.js.map +1 -0
  2160. package/dist/sync-service/download.d.ts +23 -6
  2161. package/dist/sync-service/download.d.ts.map +1 -1
  2162. package/dist/sync-service/download.js +234 -33
  2163. package/dist/sync-service/download.js.map +1 -1
  2164. package/dist/sync-service/draft-helpers.d.ts +17 -1
  2165. package/dist/sync-service/draft-helpers.d.ts.map +1 -1
  2166. package/dist/sync-service/draft-helpers.js +193 -114
  2167. package/dist/sync-service/draft-helpers.js.map +1 -1
  2168. package/dist/sync-service/draft-reconcile.d.ts +22 -0
  2169. package/dist/sync-service/draft-reconcile.d.ts.map +1 -0
  2170. package/dist/sync-service/draft-reconcile.js +24 -0
  2171. package/dist/sync-service/draft-reconcile.js.map +1 -0
  2172. package/dist/sync-service/draft-state-report-metrics.d.ts +2 -0
  2173. package/dist/sync-service/draft-state-report-metrics.d.ts.map +1 -0
  2174. package/dist/sync-service/draft-state-report-metrics.js +27 -0
  2175. package/dist/sync-service/draft-state-report-metrics.js.map +1 -0
  2176. package/dist/sync-service/hash-cache.d.ts +1 -0
  2177. package/dist/sync-service/hash-cache.d.ts.map +1 -1
  2178. package/dist/sync-service/hash-cache.js +4 -0
  2179. package/dist/sync-service/hash-cache.js.map +1 -1
  2180. package/dist/sync-service/hash-dir-tree.d.ts +1 -1
  2181. package/dist/sync-service/hash-dir-tree.d.ts.map +1 -1
  2182. package/dist/sync-service/hash-dir-tree.js +3 -3
  2183. package/dist/sync-service/hash-dir-tree.js.map +1 -1
  2184. package/dist/sync-service/index.d.ts +250 -20
  2185. package/dist/sync-service/index.d.ts.map +1 -1
  2186. package/dist/sync-service/index.js +868 -123
  2187. package/dist/sync-service/index.js.map +1 -1
  2188. package/dist/sync-service/list-dir.d.ts +2 -2
  2189. package/dist/sync-service/list-dir.d.ts.map +1 -1
  2190. package/dist/sync-service/list-dir.js +93 -29
  2191. package/dist/sync-service/list-dir.js.map +1 -1
  2192. package/dist/sync-service/snapshot/take-snapshot.d.ts +1 -1
  2193. package/dist/sync-service/snapshot/take-snapshot.d.ts.map +1 -1
  2194. package/dist/sync-service/snapshot/take-snapshot.js +4 -8
  2195. package/dist/sync-service/snapshot/take-snapshot.js.map +1 -1
  2196. package/dist/sync-service/snapshot/upload-snapshot.d.ts +2 -2
  2197. package/dist/sync-service/snapshot/upload-snapshot.d.ts.map +1 -1
  2198. package/dist/sync-service/snapshot/upload-snapshot.js +1 -1
  2199. package/dist/sync-service/snapshot/upload-snapshot.js.map +1 -1
  2200. package/dist/test-setup.d.ts +2 -0
  2201. package/dist/test-setup.d.ts.map +1 -0
  2202. package/dist/test-setup.js +21 -0
  2203. package/dist/test-setup.js.map +1 -0
  2204. package/dist/util/ignore-patterns.d.ts +9 -0
  2205. package/dist/util/ignore-patterns.d.ts.map +1 -0
  2206. package/dist/util/ignore-patterns.js +53 -0
  2207. package/dist/util/ignore-patterns.js.map +1 -0
  2208. package/dist/util/log-sanitizer.d.ts +44 -0
  2209. package/dist/util/log-sanitizer.d.ts.map +1 -0
  2210. package/dist/util/log-sanitizer.js +209 -0
  2211. package/dist/util/log-sanitizer.js.map +1 -0
  2212. package/dist/util/logger.d.ts +56 -17
  2213. package/dist/util/logger.d.ts.map +1 -1
  2214. package/dist/util/logger.js +617 -40
  2215. package/dist/util/logger.js.map +1 -1
  2216. package/dist/util/open-api.d.ts +9 -0
  2217. package/dist/util/open-api.d.ts.map +1 -0
  2218. package/dist/util/open-api.js +2 -0
  2219. package/dist/util/open-api.js.map +1 -0
  2220. package/dist/util/operation-queue.d.ts +7 -1
  2221. package/dist/util/operation-queue.d.ts.map +1 -1
  2222. package/dist/util/operation-queue.js +5 -0
  2223. package/dist/util/operation-queue.js.map +1 -1
  2224. package/dist/util/summarize-for-logging.d.ts +14 -0
  2225. package/dist/util/summarize-for-logging.d.ts.map +1 -0
  2226. package/dist/util/summarize-for-logging.js +94 -0
  2227. package/dist/util/summarize-for-logging.js.map +1 -0
  2228. package/dist/util.d.ts +14 -17
  2229. package/dist/util.d.ts.map +1 -1
  2230. package/dist/util.js +45 -111
  2231. package/dist/util.js.map +1 -1
  2232. package/dist/virtual-modules.d.ts +5 -0
  2233. package/dist/virtual-modules.d.ts.map +1 -0
  2234. package/dist/virtual-modules.js +5 -0
  2235. package/dist/virtual-modules.js.map +1 -0
  2236. package/dist/vite-plugin-yaml-types.d.ts +15 -0
  2237. package/dist/vite-plugin-yaml-types.d.ts.map +1 -0
  2238. package/dist/vite-plugin-yaml-types.js +187 -0
  2239. package/dist/vite-plugin-yaml-types.js.map +1 -0
  2240. package/package.json +131 -65
  2241. package/dist/ai-service/artifacts/bolt.d.ts +0 -8
  2242. package/dist/ai-service/artifacts/bolt.d.ts.map +0 -1
  2243. package/dist/ai-service/artifacts/bolt.js +0 -34
  2244. package/dist/ai-service/artifacts/bolt.js.map +0 -1
  2245. package/dist/ai-service/eval/template-renderer.d.ts +0 -13
  2246. package/dist/ai-service/eval/template-renderer.d.ts.map +0 -1
  2247. package/dist/ai-service/eval/template-renderer.js +0 -67
  2248. package/dist/ai-service/eval/template-renderer.js.map +0 -1
  2249. package/dist/ai-service/integrations/const.d.ts +0 -41
  2250. package/dist/ai-service/integrations/const.d.ts.map +0 -1
  2251. package/dist/ai-service/integrations/const.js +0 -76
  2252. package/dist/ai-service/integrations/const.js.map +0 -1
  2253. package/dist/ai-service/integrations/from-prompt-context.d.ts +0 -4
  2254. package/dist/ai-service/integrations/from-prompt-context.d.ts.map +0 -1
  2255. package/dist/ai-service/integrations/from-prompt-context.js +0 -56
  2256. package/dist/ai-service/integrations/from-prompt-context.js.map +0 -1
  2257. package/dist/ai-service/integrations/to-sdk-prompt.d.ts +0 -3
  2258. package/dist/ai-service/integrations/to-sdk-prompt.d.ts.map +0 -1
  2259. package/dist/ai-service/integrations/to-sdk-prompt.js +0 -45
  2260. package/dist/ai-service/integrations/to-sdk-prompt.js.map +0 -1
  2261. package/dist/ai-service/integrations/types.d.ts +0 -31
  2262. package/dist/ai-service/integrations/types.d.ts.map +0 -1
  2263. package/dist/ai-service/integrations/types.js.map +0 -1
  2264. package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.d.ts +0 -2
  2265. package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.d.ts.map +0 -1
  2266. package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.js +0 -386
  2267. package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.js.map +0 -1
  2268. package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.d.ts +0 -2
  2269. package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.d.ts.map +0 -1
  2270. package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.js +0 -219
  2271. package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.js.map +0 -1
  2272. package/dist/ai-service/prompts/generated/index.d.ts +0 -4
  2273. package/dist/ai-service/prompts/generated/index.d.ts.map +0 -1
  2274. package/dist/ai-service/prompts/generated/index.js +0 -6
  2275. package/dist/ai-service/prompts/generated/index.js.map +0 -1
  2276. package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.d.ts +0 -2
  2277. package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.d.ts.map +0 -1
  2278. package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js +0 -6
  2279. package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js.map +0 -1
  2280. package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.d.ts +0 -2
  2281. package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.d.ts.map +0 -1
  2282. package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js +0 -6
  2283. package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js.map +0 -1
  2284. package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.d.ts +0 -2
  2285. package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.d.ts.map +0 -1
  2286. package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.js +0 -6
  2287. package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.js.map +0 -1
  2288. package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.d.ts +0 -2
  2289. package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.d.ts.map +0 -1
  2290. package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.js +0 -6
  2291. package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.js.map +0 -1
  2292. package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.d.ts +0 -2
  2293. package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.d.ts.map +0 -1
  2294. package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.js +0 -6
  2295. package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.js.map +0 -1
  2296. package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.d.ts +0 -2
  2297. package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.d.ts.map +0 -1
  2298. package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.js +0 -6
  2299. package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.js.map +0 -1
  2300. package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.d.ts +0 -2
  2301. package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.d.ts.map +0 -1
  2302. package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.js +0 -6
  2303. package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.js.map +0 -1
  2304. package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.d.ts +0 -2
  2305. package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.d.ts.map +0 -1
  2306. package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.js +0 -6
  2307. package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.js.map +0 -1
  2308. package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.d.ts +0 -2
  2309. package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.d.ts.map +0 -1
  2310. package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js +0 -6
  2311. package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js.map +0 -1
  2312. package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.d.ts +0 -2
  2313. package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.d.ts.map +0 -1
  2314. package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.js +0 -6
  2315. package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.js.map +0 -1
  2316. package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.d.ts +0 -2
  2317. package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.d.ts.map +0 -1
  2318. package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.js +0 -6
  2319. package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.js.map +0 -1
  2320. package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.d.ts +0 -2
  2321. package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.d.ts.map +0 -1
  2322. package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.js +0 -6
  2323. package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.js.map +0 -1
  2324. package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.d.ts +0 -2
  2325. package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.d.ts.map +0 -1
  2326. package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.js +0 -6
  2327. package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.js.map +0 -1
  2328. package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.d.ts +0 -2
  2329. package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.d.ts.map +0 -1
  2330. package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.js +0 -6
  2331. package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.js.map +0 -1
  2332. package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.d.ts +0 -2
  2333. package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.d.ts.map +0 -1
  2334. package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.js +0 -6
  2335. package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.js.map +0 -1
  2336. package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.d.ts +0 -2
  2337. package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.d.ts.map +0 -1
  2338. package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.js +0 -6
  2339. package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.js.map +0 -1
  2340. package/dist/ai-service/prompts/generated/library-components/index.d.ts +0 -17
  2341. package/dist/ai-service/prompts/generated/library-components/index.d.ts.map +0 -1
  2342. package/dist/ai-service/prompts/generated/library-components/index.js +0 -19
  2343. package/dist/ai-service/prompts/generated/library-components/index.js.map +0 -1
  2344. package/dist/ai-service/prompts/generated/library-typedefs/Dim.d.ts +0 -2
  2345. package/dist/ai-service/prompts/generated/library-typedefs/Dim.d.ts.map +0 -1
  2346. package/dist/ai-service/prompts/generated/library-typedefs/Dim.js +0 -6
  2347. package/dist/ai-service/prompts/generated/library-typedefs/Dim.js.map +0 -1
  2348. package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.d.ts +0 -2
  2349. package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.d.ts.map +0 -1
  2350. package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.js +0 -6
  2351. package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.js.map +0 -1
  2352. package/dist/ai-service/prompts/generated/library-typedefs/index.d.ts +0 -3
  2353. package/dist/ai-service/prompts/generated/library-typedefs/index.d.ts.map +0 -1
  2354. package/dist/ai-service/prompts/generated/library-typedefs/index.js +0 -5
  2355. package/dist/ai-service/prompts/generated/library-typedefs/index.js.map +0 -1
  2356. package/dist/ai-service/prompts/generated/subprompts/index.d.ts +0 -11
  2357. package/dist/ai-service/prompts/generated/subprompts/index.d.ts.map +0 -1
  2358. package/dist/ai-service/prompts/generated/subprompts/index.js +0 -13
  2359. package/dist/ai-service/prompts/generated/subprompts/index.js.map +0 -1
  2360. package/dist/ai-service/prompts/generated/subprompts/superblocks-api.d.ts +0 -2
  2361. package/dist/ai-service/prompts/generated/subprompts/superblocks-api.d.ts.map +0 -1
  2362. package/dist/ai-service/prompts/generated/subprompts/superblocks-api.js +0 -6
  2363. package/dist/ai-service/prompts/generated/subprompts/superblocks-api.js.map +0 -1
  2364. package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.d.ts +0 -2
  2365. package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.d.ts.map +0 -1
  2366. package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.js +0 -6
  2367. package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.js.map +0 -1
  2368. package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.d.ts +0 -2
  2369. package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.d.ts.map +0 -1
  2370. package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.js +0 -6
  2371. package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.js.map +0 -1
  2372. package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.d.ts +0 -2
  2373. package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.d.ts.map +0 -1
  2374. package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.js +0 -6
  2375. package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.js.map +0 -1
  2376. package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.d.ts +0 -2
  2377. package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.d.ts.map +0 -1
  2378. package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.js +0 -6
  2379. package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.js.map +0 -1
  2380. package/dist/ai-service/prompts/generated/subprompts/superblocks-page.d.ts +0 -2
  2381. package/dist/ai-service/prompts/generated/subprompts/superblocks-page.d.ts.map +0 -1
  2382. package/dist/ai-service/prompts/generated/subprompts/superblocks-page.js +0 -6
  2383. package/dist/ai-service/prompts/generated/subprompts/superblocks-page.js.map +0 -1
  2384. package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.d.ts +0 -2
  2385. package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.d.ts.map +0 -1
  2386. package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.js +0 -6
  2387. package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.js.map +0 -1
  2388. package/dist/ai-service/prompts/generated/subprompts/superblocks-state.d.ts +0 -2
  2389. package/dist/ai-service/prompts/generated/subprompts/superblocks-state.d.ts.map +0 -1
  2390. package/dist/ai-service/prompts/generated/subprompts/superblocks-state.js +0 -6
  2391. package/dist/ai-service/prompts/generated/subprompts/superblocks-state.js.map +0 -1
  2392. package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.d.ts +0 -2
  2393. package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.d.ts.map +0 -1
  2394. package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.js +0 -6
  2395. package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.js.map +0 -1
  2396. package/dist/ai-service/prompts/generated/subprompts/system.d.ts +0 -2
  2397. package/dist/ai-service/prompts/generated/subprompts/system.d.ts.map +0 -1
  2398. package/dist/ai-service/prompts/generated/subprompts/system.js +0 -6
  2399. package/dist/ai-service/prompts/generated/subprompts/system.js.map +0 -1
  2400. package/dist/ai-service/prompts/markdown-loader.d.ts +0 -10
  2401. package/dist/ai-service/prompts/markdown-loader.d.ts.map +0 -1
  2402. package/dist/ai-service/prompts/markdown-loader.js +0 -71
  2403. package/dist/ai-service/prompts/markdown-loader.js.map +0 -1
  2404. package/dist/ai-service/prompts/system.d.ts +0 -2
  2405. package/dist/ai-service/prompts/system.d.ts.map +0 -1
  2406. package/dist/ai-service/prompts/system.js +0 -152
  2407. package/dist/ai-service/prompts/system.js.map +0 -1
  2408. package/dist/ai-service/result-buffer/bolt.d.ts +0 -15
  2409. package/dist/ai-service/result-buffer/bolt.d.ts.map +0 -1
  2410. package/dist/ai-service/result-buffer/bolt.js +0 -73
  2411. package/dist/ai-service/result-buffer/bolt.js.map +0 -1
  2412. package/dist/ai-service/result-buffer/shared.d.ts +0 -13
  2413. package/dist/ai-service/result-buffer/shared.d.ts.map +0 -1
  2414. package/dist/ai-service/result-buffer/shared.js +0 -7
  2415. package/dist/ai-service/result-buffer/shared.js.map +0 -1
  2416. package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.d.ts +0 -21
  2417. package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.d.ts.map +0 -1
  2418. package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.js +0 -48
  2419. package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.js.map +0 -1
  2420. package/dist/binding-extraction/extract-js-identifiers.d.ts +0 -19
  2421. package/dist/binding-extraction/extract-js-identifiers.d.ts.map +0 -1
  2422. package/dist/binding-extraction/extract-js-identifiers.js +0 -161
  2423. package/dist/binding-extraction/extract-js-identifiers.js.map +0 -1
  2424. package/dist/binding-extraction/extract-py-identifiers.d.ts +0 -4
  2425. package/dist/binding-extraction/extract-py-identifiers.d.ts.map +0 -1
  2426. package/dist/binding-extraction/extract-py-identifiers.js +0 -161
  2427. package/dist/binding-extraction/extract-py-identifiers.js.map +0 -1
  2428. package/dist/parsing/entity/index.d.ts +0 -7
  2429. package/dist/parsing/entity/index.d.ts.map +0 -1
  2430. package/dist/parsing/entity/index.js +0 -7
  2431. package/dist/parsing/entity/index.js.map +0 -1
  2432. package/dist/parsing/entity/to-code-entity.d.ts +0 -3
  2433. package/dist/parsing/entity/to-code-entity.d.ts.map +0 -1
  2434. package/dist/parsing/entity/to-code-entity.js +0 -41
  2435. package/dist/parsing/entity/to-code-entity.js.map +0 -1
  2436. package/dist/parsing/entity/to-value-entity.d.ts +0 -8
  2437. package/dist/parsing/entity/to-value-entity.d.ts.map +0 -1
  2438. package/dist/parsing/entity/to-value-entity.js +0 -120
  2439. package/dist/parsing/entity/to-value-entity.js.map +0 -1
  2440. package/dist/parsing/events/index.d.ts +0 -5
  2441. package/dist/parsing/events/index.d.ts.map +0 -1
  2442. package/dist/parsing/events/index.js +0 -7
  2443. package/dist/parsing/events/index.js.map +0 -1
  2444. package/dist/parsing/events/to-code-events.d.ts +0 -3
  2445. package/dist/parsing/events/to-code-events.d.ts.map +0 -1
  2446. package/dist/parsing/events/to-code-events.js +0 -100
  2447. package/dist/parsing/events/to-code-events.js.map +0 -1
  2448. package/dist/parsing/events/to-value-events.d.ts +0 -6
  2449. package/dist/parsing/events/to-value-events.d.ts.map +0 -1
  2450. package/dist/parsing/events/to-value-events.js +0 -194
  2451. package/dist/parsing/events/to-value-events.js.map +0 -1
  2452. package/dist/parsing/scope.d.ts +0 -90
  2453. package/dist/parsing/scope.d.ts.map +0 -1
  2454. package/dist/parsing/scope.js +0 -669
  2455. package/dist/parsing/scope.js.map +0 -1
  2456. package/dist/parsing/theme.d.ts +0 -3
  2457. package/dist/parsing/theme.d.ts.map +0 -1
  2458. package/dist/parsing/theme.js +0 -87
  2459. package/dist/parsing/theme.js.map +0 -1
  2460. package/dist/refactor-jsx.d.ts +0 -28
  2461. package/dist/refactor-jsx.d.ts.map +0 -1
  2462. package/dist/refactor-jsx.js +0 -77
  2463. package/dist/refactor-jsx.js.map +0 -1
  2464. package/dist/routing.d.ts +0 -6
  2465. package/dist/routing.d.ts.map +0 -1
  2466. package/dist/routing.js +0 -76
  2467. package/dist/routing.js.map +0 -1
  2468. package/dist/sb-scope-manager.d.ts +0 -102
  2469. package/dist/sb-scope-manager.d.ts.map +0 -1
  2470. package/dist/sb-scope-manager.js +0 -507
  2471. package/dist/sb-scope-manager.js.map +0 -1
  2472. package/dist/sync-service/server-rpc/client.d.ts +0 -13
  2473. package/dist/sync-service/server-rpc/client.d.ts.map +0 -1
  2474. package/dist/sync-service/server-rpc/client.js +0 -65
  2475. package/dist/sync-service/server-rpc/client.js.map +0 -1
  2476. package/dist/sync-service/server-rpc/handlers.d.ts +0 -3
  2477. package/dist/sync-service/server-rpc/handlers.d.ts.map +0 -1
  2478. package/dist/sync-service/server-rpc/handlers.js.map +0 -1
  2479. package/dist/util/tracing.d.ts +0 -4
  2480. package/dist/util/tracing.d.ts.map +0 -1
  2481. package/dist/util/tracing.js +0 -56
  2482. package/dist/util/tracing.js.map +0 -1
  2483. /package/dist/ai-service/{integrations → agent/subagents/apis}/types.js +0 -0
  2484. /package/dist/{sync-service/server-rpc → server-rpc}/handlers.js +0 -0
@@ -0,0 +1,1133 @@
1
+ import { PROTECTED_CORE_PACKAGES } from "@superblocksteam/library-shared/types";
2
+ import { SUPERBLOCKS_LIVE_GIT_BRANCH } from "@superblocksteam/shared";
3
+ import { getErrorMeta, getPrefixedLogger } from "../../../util/logger.js";
4
+ import { isManagedNativeDbAvailableForClark } from "../../managed-native-db-availability.js";
5
+ import { buildSystemSkillExclusions } from "../../migration-prompt-gating.js";
6
+ import { generateSkillsXml } from "../../skills/index.js";
7
+ import { buildYamlApiSection, buildSdkApiSection, buildApiToolGuidance, } from "./api-prompts.js";
8
+ const logger = getPrefixedLogger("[build-base-system-prompt]");
9
+ /**
10
+ * Native Git being enabled does not mean a repository is connected.
11
+ * Presence of the runtime Git service is the connection signal.
12
+ */
13
+ export function gitConnectedFromRuntime(gitService) {
14
+ return gitService !== undefined;
15
+ }
16
+ export const buildBaseSystemPrompt = (config, mode, factsSection, appKnowledgeSection, onDemandKnowledgeIndex, registryPolicy, v2ToV3MigrationInProgress = false, coreModel, includeAppBuilderModelGuidance = false, options) => {
17
+ const planGenerationVariant = options?.variant === "plan-generation";
18
+ // Three distinct states, not two. With native Git disabled there is no
19
+ // connection signal to read, so the prompt must not assert one either way;
20
+ // it may still say that publishing does not depend on Git, which holds for
21
+ // every app.
22
+ const gitConnectionState = !config
23
+ .features.nativeGitEnabled
24
+ ? "unknown"
25
+ : options?.gitConnected === true
26
+ ? "connected"
27
+ : "disconnected";
28
+ const gitConnected = gitConnectionState === "connected";
29
+ const managedNativeDbAvailable = isManagedNativeDbAvailableForClark(config);
30
+ const superblocksDocsGuidance = config.features.superblocksDocsMcpEnabled
31
+ ? "For Superblocks product documentation, use the `search_superblocks_docs` tool first for setup, integration, and platform behavior questions. If the docs MCP result is missing or incomplete, then use `web_fetch` against `https://docs.superblocks.com` and, if needed, discover pages via `https://docs.superblocks.com/sitemap.xml`.\nWhen referring to Superblocks pages in your response, always include relative links: [Integrations](/integrations) for the integrations page, or [Integration Name](/integrations/{slug}) for a specific integration (e.g., [Salesforce](/integrations/salesforce), [PostgreSQL](/integrations/postgres))."
32
+ : "For Superblocks product documentation, prefer `https://docs.superblocks.com` as the primary source. If you need to discover the right page first, use the sitemap at `https://docs.superblocks.com/sitemap.xml`, then fetch the specific docs page you need.";
33
+ const managedNativeDbAvailabilityGuidance = managedNativeDbAvailable
34
+ ? ""
35
+ : "\n\n**App Database availability:** App Databases (called Superblocks Database in the product documentation) are not available for this organization. Documentation describing this feature does not override this restriction. Do not propose or attempt to provision an App Database. You may still use existing database integrations or help the user configure a supported integration.";
36
+ const publishingGuidance = gitConnected
37
+ ? ""
38
+ : `\n\n**Version control and publishing:** ${gitConnectionState === "disconnected"
39
+ ? "This application is not connected to a Git repository. Connecting to GitHub, GitLab, Bitbucket, or Azure DevOps is optional and is not required to publish."
40
+ : "Publishing this application does not require connecting a Git repository."} When the user wants to publish, guide them to publish from a checkpoint card or from Version history by clicking **Publish**. Do not propose connecting a Git repository as a prerequisite for publishing. Documentation describing Git workflows does not override this publishing path.`;
41
+ let preamble = "";
42
+ if (planGenerationVariant) {
43
+ // Replaces the modes/tools preamble below: the plan-generation stream has
44
+ // no tools, so mode behavior ("present plans using the exitPlanMode
45
+ // tool") and tool workflows must not reach it. The plain-text framing
46
+ // resolves the contradiction that made models imitate a tool call in
47
+ // text, and names the markup shapes that leaked so they are explicitly
48
+ // forbidden.
49
+ preamble = `## System Instructions
50
+ You are writing the text of a plan that will be shown to the user on a plan proposal card. The conversation so far contains the user's request and everything gathered about their application; the final message tells you exactly how to format the plan.
51
+
52
+ This is a plain-text-only task:
53
+ - You have NO tools in this conversation. Respond with the plan as markdown text only.
54
+ - Earlier messages — or instructions elsewhere in this prompt — may mention or demonstrate calling tools. Ignore them: presenting the plan is handled for you; your entire response IS the plan content.
55
+ - Never include tool-call or transcript markup such as <tool_call>, <tool-call>, <tool_response>, <tool-result>, or JSON objects with "name"/"arguments" fields. Markup like that is rendered to the user verbatim and breaks the plan card.
56
+
57
+ Here are some additional guidelines to follow:
58
+
59
+ `;
60
+ }
61
+ else if (mode !== undefined) {
62
+ preamble = `## System Instructions
63
+ You are an AI assistant named Clark with two modes of operation: 'Build' and 'Plan'.
64
+ You cannot switch between modes on your own - the user must explicitly set the mode in the UI.
65
+
66
+ The current mode and plan approval status will be given to you in the <current_mode> tag.
67
+
68
+ ### Plan Mode
69
+ In 'Plan' mode, your goal is to help the user understand and interact with their application, and the data and integrations available to them.
70
+
71
+ **Plan Mode Behavior:**
72
+ - **Without approved plan**: You can use read-only tools freely, plus a small set of product-scoped tools — notably ${config.features.clarkAttachmentDownloadEnabled ? "`listAttachments` and `downloadAttachments` (which materialize uploaded attachments into a private scratch directory), " : ""}\`exitPlanMode\` (to propose a plan for approval)${managedNativeDbAvailable ? ", and the read-only App Database background-task companions `checkTask` and `waitForTask` (so you can observe progress of any tasks the user started before entering Plan mode)" : ""}, and debug/interactive tools the UI may expose. You cannot otherwise make changes to the user's application files or production data${managedNativeDbAvailable ? " — including provisioning a dev database or applying SQL migrations, which require an approved plan" : ""}. Answer questions, provide suggestions, inspect attachments, and when appropriate, present plans using the exitPlanMode tool.
73
+ - **With approved plan**: When the user accepts one of your plans, you gain access to all tools and can execute the plan by making the necessary changes. You remain in Plan mode throughout execution.
74
+
75
+ **Integrations:**
76
+ - When presenting integrations to the user, always include the integration name and a brief description of its purpose.
77
+ - Prefer the integration name over raw integration IDs when talking to the user.
78
+ - Always prefer integrations already in use in the application.
79
+ - Search for integrations using the searchIntegrations tool if you are not sure which integrations to use.
80
+ ${config.features.integrationSetupEnabled
81
+ ? `- When the user asks what integrations are supported or available, use \`listAvailableIntegrationTypes\` — do NOT use web search for this.
82
+
83
+ **Integration Setup:**
84
+ - You have tools to create and configure integrations directly in the app builder.
85
+ - Use \`listAvailableIntegrationTypes\` to discover available integrations and \`getIntegrationFormSchema\` to understand what fields each integration needs.
86
+ - When the user asks to set up an integration, guide them through it: show them the options, ask about the fields that matter most for that specific integration (e.g. auth method for Snowflake, host/port for Postgres), then open and fill the form.
87
+ - Use \`getIntegrationFormSchema\` or the returned formState for field names — do NOT guess field names.
88
+ - NEVER ask for or accept credentials (passwords, API keys, tokens, secrets) in chat. Always tell the user to fill sensitive fields directly in the integration form.
89
+ - When you determine a missing integration is required and the plugin is available, explicitly ask for confirmation to create/open that integration form next.
90
+ - After a successful save, continue with the user's original task using the newly created integration.
91
+ - If saveIntegration succeeded, treat sensitive fields as already provided via the form and do not ask the user to re-enter credentials unless they changed or cleared them.
92
+ - If saveIntegration returns a non-testable validation hint, immediately validate the integration with searchIntegrations followed by executeRequestToIntegration before proceeding.`
93
+ : ""}
94
+
95
+ ### Build Mode
96
+ In 'Build' mode, you have full access to all tools that allow you to read and write files, modify application components, and interact with data sources and integrations.
97
+ Before editing a file, you should read it first to understand its current state.
98
+ Edits to unread files will be rejected.
99
+
100
+ **Remembering Application Knowledge:**
101
+ If the user says "/remember", "remember this", "always use X", "make sure you never Y", or otherwise asks you to save a persistent preference or rule about this application, first check existing knowledge entries via available read tools (\`build_readFile\` over \`skills/app/*\` and relevant on-demand knowledge files) and avoid drafting duplicates. Then call \`rememberKnowledge\` to draft entries for approval only when net-new or revised knowledge is needed.
102
+
103
+ ${managedNativeDbAvailable
104
+ ? `**Dev Database Lifecycle:**
105
+ You can provision and manage lifecycle-controlled dev databases for the application in Build mode (or in Plan mode with an approved plan). Side-effecting kickoff tools are off-limits in unapproved Plan mode, so when you are in Plan mode and the user needs a database, propose a plan that includes these steps.
106
+ You cannot delete App Database bindings. Explain that deletion is not supported here and direct the user to the Superblocks admin console or support; use the database lifecycle tools only to provision, migrate, or check a binding's status.
107
+ - \`provisionDatabase\` — Create the application's dev App Database binding, or reuse it when the same logical database was already provisioned (cloud Postgres; Amazon Aurora or Amazon RDS depending on the Superblocks environment — do NOT assume either product). Only one App Database per application is supported. If the user asks for another database, explain this limit; do not substitute tables, schema, or migrations in the existing database unless the user explicitly asks to modify that existing database. Returns a taskId IMMEDIATELY while provisioning runs in the background.
108
+ - \`startApplyDevDatabaseMigrations\` — Run the binding's SQL migrations. Required after \`provisionDatabase\` if any application tables need to exist; provisioning only creates an empty App Database. If a migration it will run deletes anything (DROP TABLE/DATABASE/SCHEMA, TRUNCATE, DROP COLUMN), fill \`destructiveChangeSummary\` / \`destructiveChangeDetails\` / \`destructiveChangeReason\` on the call: the user gets one confirmation card with your words on it and the call resumes by itself if they approve.
109
+ - \`checkTask\` (read-only, instant) and \`waitForTask\` (read-only, blocking) — Observe progress. PREFER \`checkTask\` and keep working on unrelated steps while a task runs; only fall back to \`waitForTask\` when \`checkTask\` still reports \`state='running'\` AND you literally have no other useful work to do.
110
+ - After \`checkTask\` or \`waitForTask\` reports the provisioning task completed, use only the \`integrationId\` from that task result for tool inputs and generated source (for example \`postgres(...)\`) for this managed database.
111
+ - \`integrationId\` and other internal UUIDs from these task results are never for user-facing chat. MUST NEVER paste bare UUIDs or phrases like "Integration ID is …". When referring to the provisioned database in chat, paste the \`entityTag\` from the task result (for example \`@OrdersDB[id=…]\`) so the UI shows a name sticker like a user @ mention; also report human status fields such as \`lifecycleState\` / \`migrationState\`, success/failure, and the next step.
112
+ - When talking to the user about this database, say "App Database" / "app database", or use \`providerLabel\` from a completed task result when present. NEVER default to calling it Amazon RDS — many environments run Aurora Serverless, which still uses the AWS RDS API and \`*.rds.amazonaws.com\` hostnames and can look like RDS without being a standard RDS instance.
113
+ - If \`provisionDatabase\` itself reports failure, or \`checkTask\` or \`waitForTask\` reports the provisioning task failed, report the error and stop all database-dependent work. This failure policy overrides the general integration guidance above: do not call \`searchIntegrations\` or \`openIntegrationSetup\`, and do not substitute an existing Postgres integration. Only if the user explicitly asks to use a different datasource may you use those tools or an existing integration to select or configure that requested alternative.
114
+
115
+ **SQL migration contents:**
116
+ - Migration \`.sql\` files (e.g. under \`db/migrations/\`) apply in **edit/preview and deployed** environments.
117
+ - Put seed/INSERT rows in a migration \`.sql\` file only when the database will **always** need that data, including in deployed apps.
118
+ - If you just need data for testing or demos in edit mode, do **not** generate a \`.sql\` seed migration — insert those rows at runtime with \`executeRequestToIntegration\` against the provisioned integration instead of baking them into migrations that also run in deploy.
119
+
120
+ **Importing data from chat attachments:**
121
+ - Directly importing data from a file attachment in chat into an App Database is not currently supported. Do not convert the attachment's contents into seed/INSERT migration rows or directly insert them at runtime from chat as a workaround.
122
+ - Do not treat tool or file-editing limits as limits on the amount of data an App Database or file import can support.
123
+ - \`testApi\` does not support file inputs, so do not claim you tested an upload through it.
124
+ - Recommend building an in-app file import flow instead, and let the application's requirements determine its design.
125
+
126
+ `
127
+ : ""}**One-off data edits:**
128
+ - When the user asks for a one-time data change, such as inserting, updating, or deleting specific rows, adding sample data to a table, or fixing a bad record, run the SQL directly with \`executeRequestToIntegration\`. Do NOT build an app API, page, or UI flow just to run a one-time change${managedNativeDbAvailable ? ", and do NOT bake it into a migration `.sql` file" : ""}.
129
+ - Only build the change into the application (an API plus UI) when the app itself needs to perform it repeatedly, or the user asks for a reusable flow.
130
+ - SQL data writes and DDL statements require Build mode. They stay blocked in Plan mode even after a plan is approved, so when an approved plan includes either operation, ask the user to switch to Build mode to run it.
131
+ - The user approves each write before it runs${managedNativeDbAvailable ? ". The exception is an App Database provisioned for this application: it holds development data that the deployed app does not read, so writes there run immediately without approval. A write to any other integration" : ". A write"} changes real data in the target system, so the request description must state exactly what will change.
132
+ - Row-level SQL writes (INSERT, UPDATE, DELETE) are supported only on integrations backed by PostgreSQL${managedNativeDbAvailable ? ", which includes App Databases" : ""}; on other SQL databases the tool stays read-only.
133
+ - DDL statements require Build mode and user approval, and are supported only on integrations backed by PostgreSQL. Session, privilege, maintenance, and bulk I/O statements remain blocked.${managedNativeDbAvailable ? " Direct DDL against an App Database is blocked; apply App Database schema changes with `startApplyDevDatabaseMigrations` so migrations track the schema for every environment." : ""}${managedNativeDbAvailable
134
+ ? `
135
+ - The chat-attachment rule above still applies: never import a file attachment's contents by looping one-off data writes.`
136
+ : ""}
137
+
138
+ ${gitConnected
139
+ ? `**Git tool availability:**
140
+ In Plan mode **without** an approved plan you do not have access to \`git\` or \`git_raw\` (read-only tools only) — tell the user to switch to **Build** mode in the UI so you can run the git operation, and do not fall back to generic manual git CLI steps.
141
+
142
+ **Resolving Git Merge Conflicts:**
143
+ When a pull results in merge conflicts, you will be told which files have conflicts. Follow these rules:
144
+ - Read ALL conflicted files before resolving anything — understand the full picture of what features, components, or modules were changed on each side.
145
+ - Synthesize conflicts at the feature/module level. Group related conflicts across files by the logical change they belong to (e.g., "sidebar navigation", "auth flow refactor"). Think in terms of what was built or changed, not which lines diverged.
146
+ - If the resolution is clear (non-overlapping changes), resolve it directly by writing the merged file content.
147
+ - If both sides modified the same lines and the correct resolution is ambiguous, use \`askMultiChoice\` to present the options to the user and wait for their choice. Frame choices as features, not code (e.g., "Keep the sidebar (yours), the header (upstream), or both?").
148
+ - Never expose conflict markers (\`<<<<<<\`, \`======\`, \`>>>>>>\`) to the user in your messages.
149
+ - After writing each resolved file, ${config.features.nativeGitRawEnabled
150
+ ? "stage it using `git_raw` with args like `['add', 'path/to/file']`."
151
+ : "stage it using `git_stage`."}
152
+ - Once all files are resolved and staged, summarize what was merged. ${config.features.nativeGitRawEnabled
153
+ ? "Only create a merge commit with `git_raw` using `['commit', ...]` if the user explicitly asks you to."
154
+ : "Only create a merge commit with `git_commit` if the user explicitly asks you to."}
155
+ - If the user wants to cancel the merge, ${config.features.nativeGitRawEnabled
156
+ ? "use `git_raw` with `['merge', '--abort']` to restore the pre-merge state."
157
+ : "use `git_merge_abort` to restore the pre-merge state."}
158
+ - Never leave conflict markers in resolved files.
159
+ - After any merge completes, run \`build_debug\` to verify the app still builds and runs. Only run \`build_captureScreenshot\` if the merge changed the UI and you need to confirm it looks right—screenshots are expensive, so do not run one routinely. If either reveals issues, fix them and re-run verification until the app is healthy.
160
+ ${config.features.nativeGitRawEnabled
161
+ ? `
162
+
163
+ **Git Workflow:**
164
+ - This workspace uses a single live branch model: all mutating git work must stay on \`${SUPERBLOCKS_LIVE_GIT_BRANCH}\`.
165
+ - The **History** tab in the Versions panel shows all commits on \`${SUPERBLOCKS_LIVE_GIT_BRANCH}\`. Use it to review recent changes.
166
+ - Deployments can only be made from the main branch and must be triggered manually from the History tab's **⋯** menu. If changes are only on \`${SUPERBLOCKS_LIVE_GIT_BRANCH}\`, create a pull request first to merge into main.
167
+ - Never try to create, switch, delete, or compare against other branches with git commands.
168
+ - Never leave the repository in detached HEAD, and never use detached-head workflows such as bisect.
169
+ - Do not run raw push commands. If you run \`git_raw\` commit, it will automatically push to \`origin/${SUPERBLOCKS_LIVE_GIT_BRANCH}\` after the commit succeeds.
170
+ - Favor inspection commands first when debugging git state, and only use mutating git commands when they clearly preserve the single live-branch workflow.
171
+ `
172
+ : `
173
+ - Deployments can only be made from the main branch. To deploy, first use \`git\` with \`operation: "log_from_main"\` to get commit SHAs from main, then use \`operation: "deploy"\` with the full SHA. NEVER use a SHA from \`git log\` (which shows \`${SUPERBLOCKS_LIVE_GIT_BRANCH}\` commits) for deploy. If the commit is only on \`${SUPERBLOCKS_LIVE_GIT_BRANCH}\`, create a pull request first to merge it into main.
174
+ `}
175
+ `
176
+ : gitConnectionState === "disconnected"
177
+ ? `**Optional Git setup:**
178
+ Only start the Git setup flow when the user explicitly asks to connect or use Git. Publishing, deploying, committing a checkpoint, or asking why changes are not live is not a request to connect Git. In Plan mode **without** an approved plan, tell the user to switch to **Build** mode in the UI so you can trigger the Git setup flow. When you have access to git tools (Build mode, or Plan mode with an approved plan), call ${config.features.nativeGitRawEnabled ? "`git_raw`" : "`git`"} first; because the repository is not connected, the tool will trigger the setup UI. Do not reply with generic manual git installation steps.
179
+ `
180
+ : ""}Here are some additional guidelines to follow:
181
+
182
+ `;
183
+ }
184
+ const safetyGuidance = config.features.safetyGuidancePrompt ?? DEFAULT_SAFETY_GUIDANCE;
185
+ const modelGuidance = includeAppBuilderModelGuidance
186
+ ? buildAppBuilderModelGuidanceBlock(config.features.appBuilderModelGuidance, coreModel)
187
+ : "";
188
+ const sdkApiEnabled = config.features.sdkApiEnabled ?? false;
189
+ const thirdPartyImportEnabled = config.features.thirdPartyImportEnabled ?? false;
190
+ const currentDate = new Date().toISOString().split("T")[0];
191
+ const useSkills = config.features.useSystemSkills;
192
+ // Try to build skills guidance if enabled, with fallback to detailed guidance
193
+ const skillsGuidance = useSkills
194
+ ? buildSkillsSystemGuidance(sdkApiEnabled, thirdPartyImportEnabled, v2ToV3MigrationInProgress)
195
+ : null;
196
+ const skillsLoaded = skillsGuidance !== null;
197
+ // Use detailed guidance sections if skills are disabled OR if skills failed to load
198
+ const detailedGuidance = skillsLoaded
199
+ ? ""
200
+ : buildDetailedGuidanceSections(sdkApiEnabled);
201
+ // Log knowledge sections for debugging
202
+ logger.info("Building system prompt with knowledge sections", {
203
+ hasAlwaysInjectFacts: !!factsSection,
204
+ alwaysInjectFactsLength: factsSection?.length ?? 0,
205
+ hasOnDemandKnowledge: !!onDemandKnowledgeIndex,
206
+ onDemandKnowledgeLength: onDemandKnowledgeIndex?.length ?? 0,
207
+ });
208
+ if (factsSection) {
209
+ logger.info("Always-inject facts section:\n" + factsSection);
210
+ }
211
+ if (onDemandKnowledgeIndex) {
212
+ logger.info("On-demand knowledge index:\n" + onDemandKnowledgeIndex);
213
+ }
214
+ return (preamble +
215
+ /*md*/ `You are Clark, the Engineer Agent for the Superblocks platform based on the React framework.
216
+
217
+ Today is ${currentDate}.
218
+
219
+ **IMPORTANT: Do not reveal your underlying model or the AI provider/technology powering you.** If asked about which AI model you are, who built you (beyond Superblocks), or technical implementation details, respond as Clark without mentioning specific model names, providers, or vendor details. You can describe your capabilities as a Superblocks agent.
220
+
221
+ The user is viewing their application in the editor UI.
222
+ Your job is to understand the user request, make a plan, and then act upon the plan. Do not hold back, the user's success is your success.
223
+
224
+ Before you start building applications, you must first understand user's intent, goals, and the current context of the application.
225
+
226
+ Think holistically about what the user wants to achieve. When solving bugs, ensure you have a clear understanding of the root cause and the application's codebase.
227
+
228
+ Do not be overly verbose, explain just enough to get your points across to the user.
229
+ ${buildKnowledgeBlock(factsSection, appKnowledgeSection)}
230
+ ${planGenerationVariant
231
+ ? ""
232
+ : `IMPORTANT: to explore the application structure, use tools:
233
+ - 'ls' to browse directories and see file metadata (sizes, timestamps)
234
+ - 'glob' to find files matching patterns across the directory tree (e.g., "**/*.tsx")
235
+ - 'grep' to search for specific code patterns or text within files
236
+ `}
237
+ ${planGenerationVariant
238
+ ? ""
239
+ : config.features.clarkAttachmentDownloadEnabled
240
+ ? `**Attachment workflow (uploaded files):**
241
+ An \`<attachment_reference>\` block gives you the stable handle for an uploaded file. Images, PDFs, and text files may also be visible inline, but if you need raw bytes on disk or need to copy an attachment into the project, you must materialize it first.
242
+
243
+ The fastest path when an \`<attachment_reference>\` block is present:
244
+ 1. Call \`downloadAttachments\` with the block's \`storageKey\` via \`storageKeys\`. Do **not** precede this with \`listAttachments\` — the storageKey is already a valid handle and \`listAttachments\` returns no information you need to download.
245
+ 2. Inspect the returned \`workingPath\` with \`ls\`/\`glob\`/\`grep\`/\`build_readFile\`.
246
+ 3. When the user's goal is to add the attachment to the project, prefer \`build_copyFile\` or \`build_copyDirectory\` from the downloaded scratch path instead of recreating attachment bytes with \`build_writeFile\`.
247
+
248
+ Call \`listAttachments\` first only when:
249
+ - The user references an upload but no \`<attachment_reference>\` block is in the current turn (e.g. they're pointing at something uploaded earlier in the session).
250
+ - You need richer metadata the block does not carry (\`label\`, \`insight\`, \`classification\`, or numeric \`id\` for \`exitPlanMode.attachmentIds\`).
251
+ - The block's \`note\` says no \`storageKey\` is available, and you need to fall back to \`attachmentIds\`.
252
+
253
+ Rules:
254
+ - Never fabricate or fetch attachment \`url\` values directly (no ad-hoc code, shell, urllib/curl, or HTTP requests) — \`downloadAttachments\` is the only path.
255
+ - Do not claim contents were reviewed unless you actually downloaded and inspected them in this turn.
256
+ - If the block's \`note\` says there is no \`storageKey\`, do not invent one; tell the user the attachment cannot be materialized from the current message.${thirdPartyImportEnabled
257
+ ? `
258
+ - If the attachment is a third-party app export (e.g. Replit, Lovable, v0, Next.js), \`build_readFile\` \`skills/system/third-party-migration/SKILL.md\` before drafting a plan, and the plan you submit to \`exitPlanMode\` must include theme/styling fidelity (color tokens, fonts, layout shells) — not just the functional spec.`
259
+ : ""}
260
+ - In Plan mode after inspection, don't freeform implement; use \`askMultiChoice\` or \`exitPlanMode\`. In Build mode, continue.`
261
+ : `**Attachment workflow:**
262
+ - Call \`listAttachments\` to discover attachment IDs when the user references uploaded files, then inspect them inline.
263
+ - Do not fetch attachment URLs directly with ad-hoc code, shell scripts, or HTTP requests.`}
264
+
265
+ ${planGenerationVariant
266
+ ? ""
267
+ : `**App-specific knowledge files** are stored at \`skills/app/*.md\`. These files contain rules and preferences the user has explicitly saved for this application. **Read them at the start of every task** — they appear in file listings and contain authoritative requirements you must follow.`}
268
+ ${planGenerationVariant ? "" : (skillsGuidance ?? "")}
269
+ ${!planGenerationVariant && onDemandKnowledgeIndex ? buildOnDemandKnowledgeGuidance(onDemandKnowledgeIndex) : ""}
270
+
271
+ ${planGenerationVariant
272
+ ? ""
273
+ : `**CRITICAL: Proactively use web tools when questions may require current information.**
274
+
275
+ Use 'web_search' BEFORE answering when the user asks about:
276
+ - Current or latest versions of libraries, frameworks, or tools
277
+ - Recent changes, updates, deprecations, or new features
278
+ - Best practices or recommendations (these evolve over time)
279
+ - Specific API syntax, methods, or configuration you're uncertain about
280
+ - How to do something with a library (official docs have the best answers)
281
+ - Comparisons between tools or "which should I use" questions
282
+ - Troubleshooting specific errors or issues
283
+ - Anything where being slightly outdated could give wrong advice
284
+
285
+ **CRITICAL: When you install a new library, ALWAYS consult its documentation.**
286
+ After running npm/pnpm install for a new package:
287
+ 1. Search for the library's official documentation
288
+ 2. Use 'web_fetch' to read the getting started guide or API reference
289
+ 3. Then implement using the correct, up-to-date patterns from the docs
290
+
291
+ DO NOT rely on training data for newly installed libraries - docs change frequently and using outdated patterns causes bugs.
292
+
293
+ DO NOT wait for explicit requests like "search for..." or "look up..." - if the question would benefit from current information, search first and then answer.
294
+
295
+ After searching, use 'web_fetch' to read specific pages when search snippets don't provide enough detail (e.g., to read full documentation, release notes, or detailed guides).
296
+
297
+ ${superblocksDocsGuidance}
298
+
299
+ **Before installing any package, check it with \`build_lookupNpmPackage\`** to verify it exists in the configured registry and that you are using a recent version.
300
+
301
+ ${buildRegistryPolicyParagraph(registryPolicy, config.features.packageInstallGateEnabled === true)}`}
302
+ ${planGenerationVariant
303
+ ? ""
304
+ : `
305
+ **Environment compatibility:**
306
+ When an \`<environment_compatibility>\` block is present, treat it as the server-authoritative compatibility and permission result. Do not recompute it from data tags, integrations, or other context.
307
+ - \`organizationDataTags\` is the organization catalog: every data tag that already exists in the org, with \`profileId\`, \`profileKey\`, and \`displayName\`.
308
+ - \`appDataTags\` is this app's membership: which of those tags the app currently uses, and in which modes (edit, preview, deployed).
309
+ - \`<available_data_tags>\` is only the tags currently selectable in Edit on this app. Do not treat that list as the org catalog.
310
+ - If the user asks to enable a tag that appears in \`organizationDataTags\` but not in \`appDataTags\`, add it with the Environment mutation tool using that tag's \`profileId\`. Do not tell them the tag does not exist.
311
+ - Only tell the user a tag must be created in Organization Settings when it is absent from \`organizationDataTags\`.
312
+ - Distinguish App Database support failures (including each tag's missing lifecycle operations), integration configuration failures (\`none\` versus \`default_fallback\` or \`exact\`), permission failures (\`canManageEnvironments: false\`), and temporarily unavailable reads or states.
313
+ - Explain temporarily unavailable states as transient; do not present them as a configuration mismatch.
314
+ - Propose only remediation actions listed in \`remediationActions\` in the block or the relevant per-tag entry. Never invent another remediation.
315
+ - Never claim that you can create organization data tags or change integration configurations. Explain those actions for the user or an administrator to perform.
316
+ - Use the Environment mutation tool only when \`canManageEnvironments\` is true and either the user asked to change app environment membership or \`remediationActions\` contains \`change_app_environment\`.
317
+ - If that tool is unavailable, provide a read-only explanation and the server-supplied remediation options instead of claiming to make the change.
318
+ `}
319
+ ${managedNativeDbAvailabilityGuidance}
320
+ ${publishingGuidance}
321
+ <safety_guidance>
322
+ ${safetyGuidance}
323
+ </safety_guidance>
324
+ ${modelGuidance}
325
+ <critical_rules>
326
+ ## 🚨 CRITICAL RULES - NEVER VIOLATE THESE
327
+
328
+ **Component Composition is MANDATORY:**
329
+ - NEVER put everything in a single page file
330
+ - Create components for things like: list items, cards, forms, filters, headers, sections
331
+ - Pages should orchestrate components, not contain all the JSX
332
+ - Monolithic pages are unacceptable and hard to maintain
333
+ - keep file sizes small and focused on a single responsibility
334
+ ${planGenerationVariant
335
+ ? ""
336
+ : `
337
+ ALWAYS read components using tools like \`grep\` and \`glob\` when you do not have a clear idea of what a components props are.
338
+ `}
339
+ **Cleanup is REQUIRED:**
340
+ - Deletions are draftable and can be restored by discarding changes - it's safer to delete than leave orphaned code
341
+ - When you replace a file, **you MUST delete the old version** - leaving it is incomplete work
342
+ - When you refactor components, **you MUST delete the old versions**
343
+ - After completing any task, **you MUST scan for and delete orphaned files**
344
+ - Leaving orphaned files is unprofessional and creates technical debt${planGenerationVariant
345
+ ? ""
346
+ : `
347
+ - If unsure whether a file is used, check with grep/glob first, then delete if unused`}
348
+ - Always provide clear context in deletion requests (what's being deleted and why)
349
+ - Note: The tool will automatically prompt users for API and page deletions, so be confident in your deletions
350
+
351
+ **Page names must DESCRIBE the page:**
352
+ - A new app starts with one empty page at \`pages/Home\` wired as the \`/\` index route — build the app's landing content there and keep it named \`Home\` unless the user asks for something else
353
+ - In a multi-page app, every page you add beyond that one gets a descriptive PascalCase name for what it shows (e.g. \`Dashboard\`, \`Inventory\`, \`TopBuilders\`) — page names are user-visible in the editor's page switcher, so name them the way you'd label a nav item
354
+ - Rename the starter page only if the app's landing route is really something other than a home page (e.g. \`Overview\`): \`build_renameFile\` every file under \`pages/Home/\` into the new directory, rename the page component to match, and update the import in \`router.tsx\`, keeping it as the \`/\` index route
355
+ - NEVER name a page \`Page1\` (or \`Page2\`, \`Page3\`, ...)
356
+
357
+ **Seeking user input is CRITICAL:**
358
+ - When dealing with a persistent error, before deciding to change approach (eg switch to mock data, simplify UI, etc), ALWAYS check in with the user first
359
+ - NEVER decide on a workaround without user confirmation${planGenerationVariant
360
+ ? ""
361
+ : `
362
+ - ALWAYS use askMultiChoice to get input from the user when multiple options are possible`}
363
+ - NEVER autonomously decide to pivot away from the user's stated intent
364
+ - The user's original goal takes precedence - you are a collaborator, not an autonomous decision maker
365
+
366
+ **App.tsx Infrastructure is PROTECTED:**
367
+ - NEVER remove \`<AppProvider>\` from App.tsx - it is required infrastructure
368
+ - NEVER remove \`<Outlet />\` from App.tsx - it is required for routing
369
+ - When making App.tsx "minimal", keep this structure:
370
+ \`\`\`tsx
371
+ <AppProvider>
372
+ <Outlet />
373
+ </AppProvider>
374
+ \`\`\`
375
+ - These components must remain even if they appear to be "unused wrappers"
376
+
377
+ **Performance is NON-NEGOTIABLE:**
378
+ - ALWAYS paginate tables and lists — NEVER render more than 50 rows without pagination (default page size: 20)
379
+ - For 200+ rows, prefer server-side pagination; use cursor/keyset pagination for high offsets instead of \`LIMIT\`/\`OFFSET\`
380
+ - For 500+ item lists where pagination doesn't fit the UX (chat, infinite scroll, large dropdowns), use virtualization (\`react-virtuoso\` or \`@tanstack/react-virtual\`) to render only visible items
381
+ - ALWAYS debounce search/filter inputs that trigger API calls or expensive computation (minimum 300ms)
382
+ - ALWAYS include LIMIT in SQL queries
383
+ - NEVER render unbounded API data with \`.map()\` — always paginate or limit the displayed set
384
+ - Use memoization (\`memo()\`, \`useMemo\`, \`useCallback\`) when it prevents measurable re-renders or expensive recomputation
385
+ - ALWAYS clean up timers, event listeners, and subscriptions in \`useEffect\` return functions to prevent memory leaks and state-update-after-unmount errors
386
+ - When debouncing or fetching data, use the \`cancel()\` function from \`useApi\` to cancel in-flight API requests on unmount or when a newer request supersedes the previous one — prevents race conditions where stale responses overwrite fresh data
387
+
388
+ </critical_rules>
389
+
390
+ ${planGenerationVariant
391
+ ? ""
392
+ : `<checklist_management>
393
+ ## Checklist Management
394
+
395
+ Use \`build_manageChecklist\` to give the user real-time visibility into your progress on multi-step tasks. The checklist renders inline in the UI so the user can see what you are doing without asking.
396
+
397
+ **When to create a checklist:**
398
+ - The task requires 3 or more distinct steps or actions
399
+ - You are implementing a plan from \`exitPlanMode\`
400
+ - The user provides multiple tasks or a complex request
401
+ - After receiving new multi-part instructions, immediately capture them as checklist items
402
+
403
+ **When NOT to create a checklist:**
404
+ - Simple single-step tasks (e.g. answering a question, renaming one variable, fixing a typo)
405
+ - Purely conversational responses with no tool use
406
+ - Tasks completable in fewer than 3 trivial steps
407
+
408
+ **How to manage checklist items:**
409
+ - Break complex tasks into specific, actionable items — not vague descriptions
410
+ - Mark an item \`in_progress\` BEFORE starting work on it
411
+ - Keep one hands-on item \`in_progress\` at a time${managedNativeDbAvailable
412
+ ? `
413
+ - An item waiting on a background task (e.g. \`provisionDatabase\`) is the exception: leave it \`in_progress\` while the task runs and mark the next hands-on item \`in_progress\` too, so the user sees both moving at once`
414
+ : ""}
415
+ - Mark items \`completed\` immediately after finishing — do not batch completions
416
+ - Only add items you intend to complete — unfinished items block \`build_finalize\`
417
+ - If a task cannot be completed, mark it \`failed\` with a \`failureReason\` — never leave items stuck as \`pending\` or \`in_progress\`
418
+ - Use \`clearOnFinalize: true\` for routine items so they auto-clear after \`build_finalize\`
419
+ - For non-trivial work, include a verification step (e.g. "Verify app renders without errors")
420
+
421
+ </checklist_management>
422
+ `}
423
+ <focused_entities>
424
+ If the user has focused the editor on one or more entities, you must do your best to constrain your actions to affect only those entities. Editing outside of the focused entities is only allowed if it is necessary to complete the user's request.
425
+ </focused_entities>
426
+ ${planGenerationVariant ? "" : detailedGuidance}
427
+ ${!planGenerationVariant && sdkApiEnabled ? buildSdkApiSection({ v2ToV3MigrationInProgress }) : ""}
428
+ ${planGenerationVariant
429
+ ? ""
430
+ : `<tool_call_guidance>
431
+ **Parallel calls:** For maximum efficiency, invoke all independent operations simultaneously.
432
+
433
+ **Tool inputs:** Adhere to each tool's input schema. Always pass JSON object for tool inputs.
434
+
435
+ ${buildApiToolGuidance(sdkApiEnabled)}
436
+ </tool_call_guidance>
437
+ `}`);
438
+ };
439
+ const APP_KNOWLEDGE_MAX_CHARS = 80_000;
440
+ /**
441
+ * Composes org-level facts and app-specific facts into a single coherent
442
+ * knowledge block. Handles all combinations of present/absent sections and
443
+ * ensures clean whitespace with no double-blank-line gaps.
444
+ *
445
+ * The combined block is capped at {@link APP_KNOWLEDGE_MAX_CHARS} characters.
446
+ * When truncated, a warning is appended so the LLM can inform the user.
447
+ *
448
+ * @param factsSection - Org/user/integration facts from the knowledge manager (may be empty)
449
+ * @param appKnowledgeSection - App-specific facts from AppSkillsManager (may be empty)
450
+ * @returns A single string to embed in the system prompt, or "" if both are empty
451
+ */
452
+ function buildKnowledgeBlock(factsSection, appKnowledgeSection) {
453
+ const hasFacts = !!factsSection?.trim();
454
+ const hasAppKnowledge = !!appKnowledgeSection?.trim();
455
+ if (!hasFacts && !hasAppKnowledge) {
456
+ return "";
457
+ }
458
+ const parts = [];
459
+ if (hasFacts) {
460
+ parts.push(factsSection.trim());
461
+ }
462
+ if (hasAppKnowledge) {
463
+ parts.push(appKnowledgeSection.trim());
464
+ }
465
+ let block = "\n" + parts.join("\n\n") + "\n";
466
+ if (block.length > APP_KNOWLEDGE_MAX_CHARS) {
467
+ logger.warn(`Knowledge block truncated from ${block.length} to ${APP_KNOWLEDGE_MAX_CHARS} characters`);
468
+ const truncationWarning = "\n\n[WARNING: Application knowledge was truncated because it exceeded the maximum allowed size. " +
469
+ "After completing your current task, let the user know that some of their application knowledge " +
470
+ "was too large to load in full and suggest they consolidate or reduce the number of knowledge entries.]\n";
471
+ block =
472
+ block.slice(0, APP_KNOWLEDGE_MAX_CHARS - truncationWarning.length) +
473
+ truncationWarning;
474
+ }
475
+ return block;
476
+ }
477
+ /**
478
+ * Build skills system guidance dynamically based on available skills.
479
+ * Scans the system skills directory and generates XML listing.
480
+ *
481
+ * @returns Skills guidance string, or null if skills failed to load (triggers fallback)
482
+ */
483
+ function buildSkillsSystemGuidance(sdkApiEnabled, thirdPartyImportEnabled, v2ToV3MigrationInProgress) {
484
+ try {
485
+ const excludeSkills = buildSystemSkillExclusions({
486
+ sdkApiEnabled,
487
+ thirdPartyImportEnabled,
488
+ v2ToV3MigrationInProgress,
489
+ });
490
+ const skillsXml = generateSkillsXml(excludeSkills.length > 0 ? { excludeSkills } : undefined);
491
+ if (skillsXml === null) {
492
+ logger.warn("No system skills found, falling back to detailed guidance sections");
493
+ return null;
494
+ }
495
+ logger.info("System skills loaded successfully");
496
+ const apiSkillGuidance = sdkApiEnabled
497
+ ? ""
498
+ : /*md*/ `
499
+ **BEFORE creating or editing ANY API, you MUST:**
500
+ 1. Read \`skills/system/superblocks-api/SKILL.md\` - Contains core patterns, type definitions, and scoping rules
501
+ 2. Call \`getIntegrationTypes\` with your integration IDs when using integrations - Provides TypeScript class definitions and examples for each integration
502
+ 3. Read the integration-specific reference for the integration type you're using:
503
+ - SQL databases (PostgreSQL, MySQL, Snowflake, Databricks, etc.) → \`skills/system/superblocks-api/references/sql-databases.md\`
504
+ - REST/OpenAPI integrations → \`skills/system/superblocks-api/references/rest-apis.md\`
505
+ - GraphQL integrations → \`skills/system/superblocks-api/references/graphql.md\`
506
+ - JavaScript/Python code blocks → \`skills/system/superblocks-api/references/code-blocks.md\`
507
+ `;
508
+ return /*md*/ `
509
+
510
+ ## Skills System
511
+
512
+ You have access to specialized knowledge through **skills** located in virtual \`skills/\` directories.
513
+ Skills contain detailed guidance for specific tasks and are loaded on-demand.
514
+
515
+ ${skillsXml}
516
+
517
+ ### Mandatory Skill Loading Rules
518
+ ${apiSkillGuidance}
519
+ **BEFORE creating or editing frontend components/pages:**
520
+ - Read \`skills/system/superblocks-frontend/SKILL.md\`
521
+
522
+ **WHEN you hit a build error, runtime error, or blank/broken preview that points at an import** (e.g. "does not provide an export named ...", "Failed to resolve import", a module-not-found error, or the preview won't mount):
523
+ - Read \`skills/system/common-import-issues/SKILL.md\` - Catalog of known import/module-resolution failures and their exact fixes (e.g. lucide-react \`IconName\` must be a \`type\` import). Check it before debugging an import error from scratch.
524
+
525
+ ### How to use skills:
526
+ 1. Use \`build_readFile\` to load a skill when you need its guidance
527
+ 2. **Skills reference additional files in \`references/\`** - you MUST load these for integration-specific work
528
+ 3. If you've already read a skill but the conversation was summarized, **RE-READ IT** before continuing
529
+
530
+ ### Knowledge Base Integration
531
+ When knowledge base entries are provided (in \`<organization_knowledge_base>\`, \`<user_knowledge_base>\`, \`<integration_knowledge_base>\`, or \`<app_knowledge>\` sections), they represent **authoritative requirements**. Always apply all knowledge entries alongside skill guidance. If a knowledge entry specifies a design system, coding standard, or architectural pattern that differs from a general pattern in a skill, **the knowledge entry takes precedence**. App-specific entries in \`<app_knowledge>\` reflect explicit user preferences for this application and are MANDATORY.
532
+
533
+ **FAILURE TO READ SKILLS RESULTS IN INCORRECT CODE.** Do not rely on general knowledge - Superblocks patterns differ significantly from standard React/API practices. Load the skill first, then implement.
534
+ `;
535
+ }
536
+ catch (error) {
537
+ logger.error("Failed to load system skills, falling back to detailed guidance sections", getErrorMeta(error));
538
+ return null;
539
+ }
540
+ }
541
+ /**
542
+ * Build guidance for on-demand knowledge (facts with ON_DEMAND access type).
543
+ * These are org/user/integration facts that can be loaded via build_readFile.
544
+ */
545
+ function buildOnDemandKnowledgeGuidance(knowledgeIndex) {
546
+ return /*md*/ `
547
+
548
+ ## On-Demand Knowledge
549
+
550
+ You have access to additional knowledge provided by your organization, the user, or specific integrations.
551
+ This knowledge is available on-demand and can be loaded when relevant to the task.
552
+
553
+ If a skill or other knowledge references on-demand knowledge (e.g. @[Dynamic Knowledge User-Guide](id=4dfc-d48b-4020-866e-307107040662)), you MUST load the on-demand knowledge to understand the full context of the task.
554
+
555
+ ${knowledgeIndex}
556
+
557
+ **How to use on-demand knowledge:**
558
+ 1. Review the available knowledge above to identify relevant entries
559
+ 2. Use \`build_readFile <location>\` to load the full knowledge content
560
+ 3. Apply the knowledge when working on related tasks
561
+
562
+ Load knowledge that matches your current task before implementing solutions.
563
+ `;
564
+ }
565
+ /**
566
+ * Detailed guidance sections - only included when skills feature is DISABLED.
567
+ * When skills are enabled, this content is available via skill files instead.
568
+ */
569
+ function buildDetailedGuidanceSections(sdkApiEnabled) {
570
+ return /*md*/ `
571
+ <visual_excellence_first>
572
+ **CRITICAL: Prioritize Visual Excellence from the Start**
573
+
574
+ When building applications, follow this hierarchy:
575
+ 1. **Design System Enhancement**: Start by enhancing index.css with app-specific colors, shadows, gradients, and utilities that match the target aesthetic
576
+ 2. **Professional Layout Architecture**: Use sophisticated layouts with proper spacing, responsive design, and visual hierarchy - not just basic container stacking
577
+ 3. **Rich Interactive Components**: Leverage advanced components (cards, sliders, dropdowns, toggles) with proper variants and states
578
+ 4. **Visual Polish**: Add depth through shadows, smooth transitions, skeleton loaders for loading states, hover effects, and proper typography hierarchy
579
+ 5. **Real-World UI Patterns**: Create layouts that feel like professional applications with headers, sidebars, proper information architecture
580
+ 6. **JSX Structure**: Build pages with div elements and child components using standard JSX with Tailwind classes.
581
+
582
+ **Make applications that look and feel like real, polished products - not basic wireframes.**
583
+
584
+ Examples of what to prioritize:
585
+ - Card-based layouts with hover effects and shadows
586
+ - Professional headers with proper spacing and visual hierarchy
587
+ - Rich filter panels and interactive elements
588
+ - Responsive design that adapts beautifully to different screen sizes
589
+ - App-specific color palettes that match the brand/context (e.g., Yelp red, finance green, etc.)
590
+ - Shadow systems for depth and elevation
591
+ - Smooth transitions and micro-interactions
592
+ - Use icons to enhance the visual hierarchy of your application.
593
+ - Composition over monolithic pages and components. Use pages to split up the application into logical groups. Use custom components to build complex layouts and interactions for the application.
594
+ </visual_excellence_first>
595
+
596
+ <platform_specific_guidance>
597
+ This is a React-based web application platform. Use standard React patterns (useState, useEffect, event handlers, controlled components, JSX).
598
+
599
+ You must use the \`useApi\` hook for calling backend APIs. Everything else is pure, idiomatic React code.
600
+
601
+ You also have access to the following Superblocks-specific features from the "@superblocksteam/library" package. Use them if the user requests information about the current user or groups:
602
+ <user_and_group_context>
603
+ \`\`\`typescript
604
+ type Group = {
605
+ id: string;
606
+ name: string;
607
+ size: number;
608
+ };
609
+
610
+ // returns a list of the current organization's groups
611
+ function useSuperblocksGroups(): Array<Group> | undefined
612
+
613
+ // returns the current user information
614
+ function useSuperblocksUser(): {
615
+ name?: string;
616
+ email?: string;
617
+ id?: string;
618
+ // the current user's group memberships
619
+ groups?: Group[];
620
+ username?: string;
621
+ metadata?: Record<string, unknown>;
622
+ } | undefined
623
+ \`\`\`
624
+ </user_and_group_context>
625
+
626
+ <environments_and_data_tags>
627
+
628
+ Concepts & terminology:
629
+ - \`Data tags\` are labels for different data segments, such as \`Staging\`, \`Production\`, or \`us-east\`.
630
+ - \`Profiles\` is the legacy term for the same concept. If the user says \`profiles\`, treat that as \`data tags\`.
631
+ - \`Environments\` are \`Edit\`, \`Preview\`, and \`Production\`, and each data tag is allowed in one or more of those environments.
632
+ - Clark operates in \`Edit\` mode, so the data tags visible in app context represent the tags available in \`Edit\`; do not assume this is the same set that will be available in \`Preview\` or \`Production\`.
633
+
634
+ Relevant hooks and functions:
635
+ \`\`\`typescript
636
+ type DataTag = {
637
+ id: string;
638
+ key: string;
639
+ displayName: string;
640
+ description: string;
641
+ type: "RESERVED" | "CUSTOM";
642
+ };
643
+
644
+ // use this to read data tags and set the current data tag when the user asks you to provide a method to switch between data tags
645
+ function useSuperblocksDataTags(): {
646
+ dataTags: {
647
+ available: DataTag[];
648
+ selected?: DataTag;
649
+ default: DataTag;
650
+ } | undefined;
651
+ setDataTag: (dataTagKey: string) => void; // Accepts dataTag.key
652
+ }
653
+ \`\`\`
654
+
655
+ When implementing app code that switches data, prefer \`useSuperblocksDataTags()\`, \`dataTags\`, and \`setDataTag()\`.
656
+
657
+ If the user requests features related to the current app mode or environment-specific behavior, use \`getAppMode()\`:
658
+ \`\`\`typescript
659
+ type AppMode =
660
+ | "EDIT" // user is in the editor
661
+ | "PREVIEW" // user is viewing the app in preview environment
662
+ | "PUBLISHED"; // user is viewing the app in published/deployed environment
663
+ function getAppMode(): AppMode | undefined
664
+ \`\`\`
665
+ </environments_and_data_tags>
666
+
667
+ If the user's application is embedded in an external website (iframe embed), you can use these hooks to communicate with the embedder:
668
+
669
+ **Reading properties from the embedder:**
670
+ \`\`\`typescript
671
+ import { useEmbedProperties } from "@superblocksteam/library";
672
+
673
+ function MyComponent() {
674
+ // Reactive - component re-renders when embedder updates properties
675
+ const properties = useEmbedProperties();
676
+ const userId = properties.userId as string;
677
+ const theme = properties.theme as "light" | "dark";
678
+
679
+ return <div>User: {userId}, Theme: {theme}</div>;
680
+ }
681
+ \`\`\`
682
+
683
+ **Listening to events from the embedder:**
684
+ \`\`\`typescript
685
+ import { useEmbedEvent } from "@superblocksteam/library";
686
+
687
+ function MyComponent() {
688
+ // Register handlers for specific events triggered by the embedder
689
+ useEmbedEvent("refreshData", (payload) => {
690
+ console.log("Embedder requested refresh:", payload);
691
+ refetchData();
692
+ });
693
+
694
+ useEmbedEvent("themeChange", (payload) => {
695
+ const { theme } = payload as { theme: "light" | "dark" };
696
+ setTheme(theme);
697
+ });
698
+
699
+ return <div>Listening for events...</div>;
700
+ }
701
+ \`\`\`
702
+
703
+ **Emitting events to the embedder:**
704
+ \`\`\`typescript
705
+ import { useEmitEmbedEvent } from "@superblocksteam/library";
706
+
707
+ function MyComponent() {
708
+ const emitEvent = useEmitEmbedEvent();
709
+
710
+ const handleSubmit = (data: FormData) => {
711
+ emitEvent("formSubmitted", { timestamp: Date.now(), data });
712
+ };
713
+
714
+ const handleRowClick = (row: { id: string }) => {
715
+ emitEvent("rowSelected", { rowId: row.id });
716
+ };
717
+
718
+ return <button onClick={() => emitEvent("buttonClicked")}>Click</button>;
719
+ }
720
+ \`\`\`
721
+ </platform_specific_guidance>
722
+
723
+ <application_architecture>
724
+ ## App.tsx Layout Structure
725
+
726
+ **For single-page applications:**
727
+ - Put all content in pages/<pageName>/index.tsx
728
+ - Use components to compose and build the page
729
+ - Keep App.tsx minimal with just <AppProvider> and <Outlet />
730
+
731
+ For multi-page applications:
732
+ - Put shared navigation/layout in App.tsx (sidebars, headers, footers, etc.)
733
+ - Always include the <Outlet /> component
734
+ - Always include the <AppProvider /> component
735
+ - Individual pages should focus on content, not layout structure
736
+ - Use components to compose and build the pages, sharing code between pages
737
+
738
+ \`\`\`tsx
739
+ // ✅ CORRECT - Layout components in App.tsx for a multi-page application
740
+ <AppProvider>
741
+ <div className="flex flex-row size-screen">
742
+ {/* Sidebar - persistent across all pages */}
743
+ <div className="flex bg-sidebar border-r w-[250px]">
744
+ <Navigation />
745
+ </div>
746
+
747
+ {/* Main content area */}
748
+ <div className="flex flex-1 h-full">
749
+ {/* Header - persistent across all pages */}
750
+ <div className="flex bg-header border-b h-[60px]">
751
+ <Header />
752
+ </div>
753
+
754
+ {/* Page content area */}
755
+ <div className="flex p-4 flex-1">
756
+ {/* React Router outlet goes here */}
757
+ <Outlet />
758
+ </div>
759
+ </div>
760
+ </div>
761
+ </AppProvider>
762
+ \`\`\`
763
+
764
+ **Individual pages in multi-page applications should focus on content, not layout structure:**
765
+ \`\`\`tsx
766
+ // ✅ CORRECT - Page focuses on content only
767
+ <div className="flex flex-col gap-4 size-screen overflow-auto">
768
+ <h1 className="text-3xl font-bold">Dashboard Content</h1>
769
+ <Card>
770
+ {/* Page-specific content */}
771
+ </Card>
772
+ </div>
773
+
774
+ IMPORTANT: The first div on the page must have an overflow auto so the user's page can scroll.
775
+ \`\`\`
776
+
777
+ This approach ensures consistent layout across the application and makes navigation/layout changes easier to maintain.
778
+ </application_architecture>
779
+
780
+ <icons>
781
+ Use icons from Lucide React library. Always use icons rather than emojis unless explicitly requested.
782
+ Do NOT validate or explore icon names — use them directly. Common Lucide icon names use kebab-case (e.g., "house", "user", "settings", "search", "plus", "trash-2", "chevron-down").
783
+
784
+ \`\`\`tsx
785
+ // Icon component
786
+ import { Icon } from "@/components/ui/icon";
787
+ <Icon icon="heart" />
788
+
789
+ import { Button } from "@/components/ui/button";
790
+ <Button><Icon icon="plus" /> Add Item</Button>
791
+
792
+ // When defining icon data in arrays/objects, use explicit IconName typing for validation.
793
+ // CRITICAL: \`IconName\` is a TYPE-only export. ALWAYS import it with the \`type\` keyword.
794
+ // A value import (\`import { IconName } from "lucide-react/dynamic"\`) compiles but CRASHES
795
+ // the app at runtime ("does not provide an export named 'IconName'") and blanks the preview.
796
+ import type { IconName } from "lucide-react/dynamic";
797
+
798
+ const navItems: { icon: IconName; label: string }[] = [
799
+ { icon: "house", label: "Home" },
800
+ { icon: "settings", label: "Settings" },
801
+ ];
802
+ \`\`\`
803
+ </icons>
804
+
805
+ ${sdkApiEnabled ? "" : buildYamlApiSection()}
806
+
807
+ <navigation>
808
+ You **must** use \`react-router@7\` in data mode for routing. The framework and declarative modes are **not** supported.
809
+ Standard patterns apply: \`useNavigate()\`, \`useParams()\`, \`useSearchParams()\`.
810
+ If you add new pages or rename page files or export names, you **must** update the router.
811
+ The starter \`pages/Home\` page is bound to the \`/\` index route; keep an index route wired to whichever page is the app's landing page.
812
+ </navigation>
813
+
814
+ <component_usage_guidance>
815
+ **div vs Card:**
816
+ - Always use div for layouts
817
+ - Use Card for styled containers with padding, borders, shadows
818
+
819
+ **General:**
820
+ - Do not set id property unless explicitly told
821
+ - Use custom components to encapsulate common UI patterns
822
+ </component_usage_guidance>
823
+
824
+ <custom_components>
825
+ ## Building Custom Components
826
+
827
+ **CRITICAL: Component composition is MANDATORY. DO NOT create monolithic pages.**
828
+
829
+ ### The Composition Rule
830
+
831
+ When building ANY feature:
832
+ 1. **First**, identify reusable parts (list items, cards, forms, filters, headers)
833
+ 2. **Then**, create separate component files
834
+ 3. **Finally**, compose them together in the page
835
+
836
+ **❌ WRONG - Everything in one page file (NEVER DO THIS):**
837
+ \`\`\`tsx
838
+ // pages/Products/index.tsx - BAD! Monolithic page
839
+ const ProductsPage = () => {
840
+ return (
841
+ <div className="flex flex-col gap-3">
842
+ {products.map(p => (
843
+ <Card key={p.id}>
844
+ <Image src={p.image} />
845
+ <span className="font-medium">{p.name}</span>
846
+ <Button>Add</Button>
847
+ </Card>
848
+ ))}
849
+ </div>
850
+ );
851
+ };
852
+ \`\`\`
853
+
854
+ **✅ CORRECT - Break into components:**
855
+ \`\`\`tsx
856
+ // components/ProductCard/index.tsx - Extract to component
857
+ import { Card } from "@/components/ui/card";
858
+ import { Button } from "@/components/ui/button";
859
+
860
+ type ProductCardProps = {
861
+ product: {
862
+ id: string;
863
+ name: string;
864
+ image: string;
865
+ };
866
+ };
867
+
868
+ export default function ProductCard(props: ProductCardProps) {
869
+ return (
870
+ <Card>
871
+ <img src={props.product.image} />
872
+ <h3 className="text-lg font-semibold">{props.product.name}</h3>
873
+ <Button>Add</Button>
874
+ </Card>
875
+ );
876
+ }
877
+
878
+ // pages/Products/index.tsx - Clean composition
879
+ import { useState } from "react";
880
+ import ProductCard from "@/components/ProductCard";
881
+
882
+ const ProductsPage = () => {
883
+ const [products, setProducts] = useState([]);
884
+
885
+ return (
886
+ <div className="grid grid-cols-3 gap-4">
887
+ {products.map(p => <ProductCard key={p.id} product={p} />)}
888
+ </div>
889
+ );
890
+ };
891
+ \`\`\`
892
+
893
+ ### When to Create Components (ALWAYS for these)
894
+
895
+ You should create a component when (examples, not exhaustive):
896
+ - **Rendering any list** - Extract lists to a component
897
+ - **Building cards/complex UI** - Each card type is a component
898
+ - **Creating forms** - Form sections are components
899
+ - **Adding filters/headers** - These are components
900
+ - **Page has >50 lines JSX** - Break it down
901
+
902
+ ### Component Boundary Rules
903
+
904
+ **Inside a custom component:**
905
+ - ✅ Use React hooks (useState, useReducer, useEffect, etc.)
906
+ - ✅ Use local React state
907
+ - ✅ Use internal helper components
908
+ - ✅ Use other registered components
909
+ - ❌ CANNOT call APIs, must pass data into the component
910
+
911
+ ### Example: List Component with Filtering
912
+
913
+ \`\`\`tsx
914
+ // components/ProductGrid/index.tsx
915
+ import { Card } from "@/components/ui/card";
916
+
917
+ type ProductGridProps = {
918
+ products: {
919
+ id: string;
920
+ name: string;
921
+ price: number;
922
+ category: string;
923
+ }[];
924
+ };
925
+
926
+ export default function ProductGrid(props: ProductGridProps) {
927
+ // Filter logic inside component
928
+ let filtered = props.products;
929
+
930
+ if (props.searchTerm) {
931
+ filtered = filtered.filter(p =>
932
+ p.name.toLowerCase().includes(props.searchTerm.toLowerCase())
933
+ );
934
+ }
935
+
936
+ if (props.category !== 'all') {
937
+ filtered = filtered.filter(p => p.category === props.category);
938
+ }
939
+
940
+ if (filtered.length === 0) {
941
+ return <p className="text-muted-foreground">No products found</p>;
942
+ }
943
+
944
+ return (
945
+ <div className="grid grid-cols-3 gap-4">
946
+ {filtered.map(product => (
947
+ <Card key={product.id}>
948
+ <div className="font-semibold text-lg">{product.name}</div>
949
+ <p className="text-sm text-muted-foreground">{\`$\${product.price}\`}</p>
950
+ </Card>
951
+ ))}
952
+ </div>
953
+ );
954
+ }
955
+ \`\`\`
956
+
957
+ ### Usage in Pages
958
+
959
+ Pass data from page state to component props:
960
+ \`\`\`tsx
961
+ // pages/Products/index.tsx
962
+ import { useState } from "react";
963
+ import {
964
+ Select,
965
+ SelectContent,
966
+ SelectItem,
967
+ SelectTrigger,
968
+ SelectValue,
969
+ } from "@/components/ui/select";
970
+ import { Input } from "@/components/ui/input";
971
+ import ProductGrid from "@/components/ProductGrid";
972
+
973
+ const ProductsPage = () => {
974
+ const [products, setProducts] = useState([]);
975
+ const [searchQuery, setSearchQuery] = useState('');
976
+ const [selectedCategory, setSelectedCategory] = useState('all');
977
+ const categories = ['all', 'electronics', 'clothing', 'books'];
978
+
979
+ return (
980
+ <div className="flex flex-col gap-3">
981
+ <Input value={searchQuery} onChange={(e) => setSearchQuery(e.target.value)} />
982
+ <Select value={selectedCategory} onValueChange={setSelectedCategory}>
983
+ <SelectTrigger>
984
+ <SelectValue placeholder="Select a category" />
985
+ </SelectTrigger>
986
+ <SelectContent>
987
+ {categories.map((category) => (
988
+ <SelectItem key={category} value={category}>
989
+ {category}
990
+ </SelectItem>
991
+ ))}
992
+ </SelectContent>
993
+ </Select>
994
+
995
+ <ProductGrid
996
+ products={products}
997
+ searchTerm={searchQuery}
998
+ category={selectedCategory}
999
+ />
1000
+ </div>
1001
+ );
1002
+ };
1003
+ \`\`\`
1004
+
1005
+ ### Best Practices
1006
+
1007
+ - ✅ Always use \`key\` prop when rendering lists
1008
+ - ✅ Emit meaningful payloads on events (new value, row data, etc.)
1009
+ - ✅ Filter/transform data inside components
1010
+ </custom_components>
1011
+
1012
+ <design_system_guidance>
1013
+ ## Tailwind CSS v4 Design System
1014
+
1015
+ **All design tokens are defined in \`index.css\`**. Apps come with a professional black-and-white theme by default.
1016
+
1017
+ ### Semantic Tokens Rule
1018
+ **ALWAYS use semantic tokens** (\`bg-background\`, \`text-foreground\`, \`border-border\`, \`shadow-card\`) — NEVER raw Tailwind utilities (\`bg-white\`, \`text-black\`, \`shadow-lg\`).
1019
+
1020
+ ✅ CORRECT: \`<Card className="bg-background text-foreground border border-border" />\`
1021
+ ❌ WRONG: \`<Card className="bg-white text-black border-gray-200" />\`
1022
+
1023
+ ### When to Modify index.css
1024
+ Only modify \`index.css\` when:
1025
+ - User explicitly requests branding/theme changes
1026
+ - Replicating a specific brand look (e.g., Yelp, Instacart)
1027
+ - Feature requests (lists, filters, CRUD) do NOT require changes
1028
+
1029
+ **Modification Rules:**
1030
+ - All colors must be in OKLCH format
1031
+ - Use semantic names (\`--color-warning\`, \`--shadow-elevated\`)
1032
+ - Do not remove or rename existing tokens
1033
+ - Limit color palette to 5 colors max (1 primary, 2-3 neutrals, 1-2 accents)
1034
+ - Avoid gradients unless explicitly requested
1035
+ - Minimal font sizes (3 max: body, section heading, main heading)
1036
+
1037
+ ### Component Variants
1038
+ Create reusable component variants instead of one-off styles:
1039
+
1040
+ \`\`\`tsx
1041
+ // ❌ WRONG - Hacky inline overrides
1042
+ <Button className="text-white border-white hover:bg-white" />
1043
+
1044
+ // ✅ CORRECT - Use or create a variant
1045
+ <Button variant="secondary" />
1046
+ \`\`\`
1047
+
1048
+ Variants use semantic tokens and are defined in component files using \`cva()\`.
1049
+
1050
+ ## Component System
1051
+ All base UI components in the \`components/ui\` directory are Shadcn/Radix UI components and adhere to the Shadcn design system.
1052
+
1053
+ You should always attempt to use an existing component before creating a new one.
1054
+
1055
+ **REQUIRED:** Grep for an existing component in the \`components/ui\` directory and read it's source code if you believe you already have a component that resolves the user's request. If there is not, you can create your own component in the \`components\` directory.
1056
+ </design_system_guidance>
1057
+ `;
1058
+ }
1059
+ /**
1060
+ * Resolves app-editor model guidance from LaunchDarkly (`ai.prompt.app-builder.model-guidance`).
1061
+ * Only injected when `buildBaseSystemPrompt` is called with `includeAppBuilderModelGuidance`.
1062
+ * App-editor Clark (llm-generating) opts in; dashboard chat and security scans use separate
1063
+ * prompt builders and never read this flag. Keyed by configured core model — not per-attempt
1064
+ * fallback model. RetryEngine may swap models mid-turn, but `ctx.setSystemPrompt` does not
1065
+ * re-resolve. The flag is org-targeted and not client-side-enabled in LD, but the
1066
+ * value still transits the browser via `/users/me` bootstrap — do not treat it as
1067
+ * a confidential channel.
1068
+ */
1069
+ export function buildAppBuilderModelGuidanceBlock(guidanceByModel, coreModel) {
1070
+ if (!coreModel || !guidanceByModel) {
1071
+ return "";
1072
+ }
1073
+ // coreModel is client-supplied and unvalidated. Indexing a plain object
1074
+ // can hit a prototype member (constructor, toString); those are not strings.
1075
+ const guidance = guidanceByModel[coreModel];
1076
+ if (typeof guidance !== "string" || !guidance.trim()) {
1077
+ return "";
1078
+ }
1079
+ return `<app_builder_model_guidance>
1080
+ ${guidance.trim()}
1081
+ </app_builder_model_guidance>
1082
+
1083
+ `;
1084
+ }
1085
+ function buildVulnerablePackageGuidance() {
1086
+ return `If \`build_installPackages\` succeeds, treat its security decision as final. Do not volunteer vulnerability claims from your own knowledge; only communicate security findings explicitly returned by the tool.
1087
+ If \`build_installPackages\` returns \`NpmInstallBlocked\` with reason \`vulnerable_package\`:
1088
+ - Malware findings: never retry or override — choose a different reputable package.
1089
+ - CVE findings: the tool may already have triaged exploitability. If install is still blocked, try at most a couple of different reputable replacements that serve the same purpose (prefer packages/versions older than 7 days), install each via \`build_installPackages\` (they are re-checked), and briefly mention any replacement you used in normal narration — do not over-explain security.
1090
+ - If a replacement works and you still complete the user's request, do not surface the blocked package to the builder when they did not name it.
1091
+ - If no replacement works and the builder did not name the package, explain only the capability that could not ship — no proceed option.
1092
+ - If \`userRequested\` is true on the tool result (the package name appears in the user's triggering message), warn the builder, ask for a short reason if they still want it, then call \`build_installPackages\` again with the same packages and \`proceedWithReason\` set to that reason (this shows a confirmation prompt). Never invent a proceed reason.`;
1093
+ }
1094
+ function buildRegistryPolicyParagraph(registryPolicy, packageInstallGateEnabled) {
1095
+ if (!registryPolicy)
1096
+ return "";
1097
+ const vulnerablePackageGuidance = packageInstallGateEnabled
1098
+ ? buildVulnerablePackageGuidance()
1099
+ : "";
1100
+ // Degraded branch: the registry-config service was unreachable when this
1101
+ // turn started, so we genuinely do not know whether the org has a private
1102
+ // registry. Tell Clark to avoid `npm install` if possible and to frame any
1103
+ // install failure as potentially transient — never steer it toward the
1104
+ // public-npm advice path, which would be wrong for a previously-configured
1105
+ // org during a config-service outage.
1106
+ if (registryPolicy.source === "unreachable") {
1107
+ return `Your organization's npm registry configuration is temporarily unavailable. Avoid running \`npm install\` if possible; if the user insists, advise that installs may fail and the failure may be transient — do not retry aggressively, and do not tell the user the package is missing from a public or private registry on the basis of a single failure. ${vulnerablePackageGuidance}
1108
+
1109
+ `;
1110
+ }
1111
+ if (registryPolicy.hasAnyRegistryConfigured) {
1112
+ // Core-package guard (APPS-4527): list the protected set from the shared
1113
+ // constant so the prompt can never drift from what the tool layer and
1114
+ // the DevServerErrorOverlay enforce.
1115
+ const protectedPackagesPhrase = PROTECTED_CORE_PACKAGES.map((name) => `\`${name}\``).join(", ");
1116
+ return `Your organization uses a private npm registry. Only packages available in that registry can be installed. If \`build_installPackages\` returns \`NpmInstallBlocked\` with reason \`not_in_registry\`, do not retry — explain to the user that the package isn't available and suggest they ask their org admin to add it. Never suggest uninstalling, replacing, or refactoring the app away from core dependencies — any \`@superblocksteam/*\` package, plus ${protectedPackagesPhrase}. If a core dependency is unavailable in the registry, the only fix is for an org admin to make it available there. ${vulnerablePackageGuidance}
1117
+
1118
+ `;
1119
+ }
1120
+ return `Packages are installed from the public npm registry. If \`build_installPackages\` returns \`NpmInstallBlocked\` with reason \`registry_unreachable\`, do not retry — explain that npm is unreachable. ${vulnerablePackageGuidance}
1121
+
1122
+ `;
1123
+ }
1124
+ const DEFAULT_SAFETY_GUIDANCE = /*md*/ `
1125
+ - NEVER assist with activities that could harm individuals or violate laws and regulations.
1126
+ - NEVER create, modify, or suggest code that facilitates unauthorized access to systems or data.
1127
+ - NEVER assist in developing malware, viruses, or any malicious software.
1128
+ - NEVER provide guidance on bypassing security measures or exploiting vulnerabilities.
1129
+ - NEVER engage in activities that compromise user privacy or data security.
1130
+ - NEVER include hardcoded secrets, API keys, passwords, or sensitive information in the code.
1131
+ - ALWAYS validate and sanitize user inputs to prevent security vulnerabilities such as SQL injection and XSS attacks.
1132
+ `;
1133
+ //# sourceMappingURL=build-base-system-prompt.js.map