@superblocksteam/vite-plugin-file-sync 2.0.119-next.0 → 2.0.119-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/dist/ai-service/agent/middleware.d.ts.map +1 -1
  2. package/dist/ai-service/agent/middleware.js +5 -2
  3. package/dist/ai-service/agent/middleware.js.map +1 -1
  4. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
  5. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +11 -17
  6. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
  7. package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -1
  8. package/dist/ai-service/agent/tool-message-utils.js +3 -27
  9. package/dist/ai-service/agent/tool-message-utils.js.map +1 -1
  10. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts +0 -4
  11. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts.map +1 -1
  12. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js +5 -16
  13. package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js.map +1 -1
  14. package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts +1 -1
  15. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -1
  16. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +13 -18
  17. package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -1
  18. package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -1
  19. package/dist/ai-service/agent/tools/apis/test-api.js +2 -138
  20. package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -1
  21. package/dist/ai-service/agent/tools/build-debug.d.ts.map +1 -1
  22. package/dist/ai-service/agent/tools/build-debug.js +5 -17
  23. package/dist/ai-service/agent/tools/build-debug.js.map +1 -1
  24. package/dist/ai-service/agent/tools/build-finalize.d.ts.map +1 -1
  25. package/dist/ai-service/agent/tools/build-finalize.js +50 -42
  26. package/dist/ai-service/agent/tools/build-finalize.js.map +1 -1
  27. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +5 -7
  28. package/dist/ai-service/agent/tools/build-manage-checklist.d.ts.map +1 -1
  29. package/dist/ai-service/agent/tools/build-manage-checklist.js +108 -54
  30. package/dist/ai-service/agent/tools/build-manage-checklist.js.map +1 -1
  31. package/dist/ai-service/agent/tools/get-logs.d.ts +1 -1
  32. package/dist/ai-service/agent/tools/index.d.ts +0 -4
  33. package/dist/ai-service/agent/tools/index.d.ts.map +1 -1
  34. package/dist/ai-service/agent/tools/index.js +0 -4
  35. package/dist/ai-service/agent/tools/index.js.map +1 -1
  36. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +1 -1
  37. package/dist/ai-service/agent/tools/integrations/index.d.ts +0 -1
  38. package/dist/ai-service/agent/tools/integrations/index.d.ts.map +1 -1
  39. package/dist/ai-service/agent/tools/integrations/index.js +0 -1
  40. package/dist/ai-service/agent/tools/integrations/index.js.map +1 -1
  41. package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
  42. package/dist/ai-service/agent/tools/integrations/metadata.js +4 -30
  43. package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
  44. package/dist/ai-service/agent/tools.d.ts +0 -2
  45. package/dist/ai-service/agent/tools.d.ts.map +1 -1
  46. package/dist/ai-service/agent/tools.js +6 -74
  47. package/dist/ai-service/agent/tools.js.map +1 -1
  48. package/dist/ai-service/agent/tools2/example.js +1 -1
  49. package/dist/ai-service/agent/tools2/example.js.map +1 -1
  50. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts +0 -7
  51. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts.map +1 -1
  52. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js +1 -11
  53. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js.map +1 -1
  54. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts +0 -7
  55. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts.map +1 -1
  56. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js +1 -3
  57. package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js.map +1 -1
  58. package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -1
  59. package/dist/ai-service/agent/tools2/tools/download-attachments.js +3 -4
  60. package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -1
  61. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts +0 -9
  62. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts.map +1 -1
  63. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js +1 -15
  64. package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js.map +1 -1
  65. package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts.map +1 -1
  66. package/dist/ai-service/agent/tools2/tools/list-attachments.js +4 -8
  67. package/dist/ai-service/agent/tools2/tools/list-attachments.js.map +1 -1
  68. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts +4 -21
  69. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts.map +1 -1
  70. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js +11 -87
  71. package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js.map +1 -1
  72. package/dist/ai-service/agent/tools2/types.d.ts +2 -10
  73. package/dist/ai-service/agent/tools2/types.d.ts.map +1 -1
  74. package/dist/ai-service/agent/tools2/types.js.map +1 -1
  75. package/dist/ai-service/agent/utils.d.ts.map +1 -1
  76. package/dist/ai-service/agent/utils.js +0 -2
  77. package/dist/ai-service/agent/utils.js.map +1 -1
  78. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts +1 -1
  79. package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts.map +1 -1
  80. package/dist/ai-service/app-interface/filesystem/draft-manager.js.map +1 -1
  81. package/dist/ai-service/app-interface/shell.d.ts +0 -38
  82. package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
  83. package/dist/ai-service/app-interface/shell.js +1 -222
  84. package/dist/ai-service/app-interface/shell.js.map +1 -1
  85. package/dist/ai-service/attachments/uploaded-content-part.d.ts +0 -5
  86. package/dist/ai-service/attachments/uploaded-content-part.d.ts.map +1 -1
  87. package/dist/ai-service/attachments/uploaded-content-part.js +21 -31
  88. package/dist/ai-service/attachments/uploaded-content-part.js.map +1 -1
  89. package/dist/ai-service/context-download.d.ts +1 -14
  90. package/dist/ai-service/context-download.d.ts.map +1 -1
  91. package/dist/ai-service/context-download.js +0 -80
  92. package/dist/ai-service/context-download.js.map +1 -1
  93. package/dist/ai-service/features.d.ts +0 -16
  94. package/dist/ai-service/features.d.ts.map +1 -1
  95. package/dist/ai-service/features.js +0 -10
  96. package/dist/ai-service/features.js.map +1 -1
  97. package/dist/ai-service/index.d.ts +1 -11
  98. package/dist/ai-service/index.d.ts.map +1 -1
  99. package/dist/ai-service/index.js +13 -81
  100. package/dist/ai-service/index.js.map +1 -1
  101. package/dist/ai-service/integrations/store.d.ts +0 -5
  102. package/dist/ai-service/integrations/store.d.ts.map +1 -1
  103. package/dist/ai-service/integrations/store.js +2 -19
  104. package/dist/ai-service/integrations/store.js.map +1 -1
  105. package/dist/ai-service/judge/tools/submit-feedback.d.ts +1 -1
  106. package/dist/ai-service/llm/context-v2/manager.d.ts +1 -8
  107. package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -1
  108. package/dist/ai-service/llm/context-v2/manager.js +1 -17
  109. package/dist/ai-service/llm/context-v2/manager.js.map +1 -1
  110. package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts +1 -1
  111. package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts.map +1 -1
  112. package/dist/ai-service/llm/context-v2/prompts/compaction.js +3 -3
  113. package/dist/ai-service/llm/impl/clark.d.ts.map +1 -1
  114. package/dist/ai-service/llm/impl/clark.js +3 -3
  115. package/dist/ai-service/llm/impl/clark.js.map +1 -1
  116. package/dist/ai-service/llm/provider.d.ts.map +1 -1
  117. package/dist/ai-service/llm/provider.js +7 -22
  118. package/dist/ai-service/llm/provider.js.map +1 -1
  119. package/dist/ai-service/llm/types.d.ts +1 -14
  120. package/dist/ai-service/llm/types.d.ts.map +1 -1
  121. package/dist/ai-service/llmobs/otel-exporter.d.ts +0 -23
  122. package/dist/ai-service/llmobs/otel-exporter.d.ts.map +1 -1
  123. package/dist/ai-service/llmobs/otel-exporter.js +10 -112
  124. package/dist/ai-service/llmobs/otel-exporter.js.map +1 -1
  125. package/dist/ai-service/llmobs/tracer.d.ts +0 -7
  126. package/dist/ai-service/llmobs/tracer.d.ts.map +1 -1
  127. package/dist/ai-service/llmobs/tracer.js +0 -38
  128. package/dist/ai-service/llmobs/tracer.js.map +1 -1
  129. package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -1
  130. package/dist/ai-service/skills/system/_registry.generated.js +0 -2
  131. package/dist/ai-service/skills/system/_registry.generated.js.map +1 -1
  132. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +1 -1
  133. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -1
  134. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +0 -2
  135. package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -1
  136. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts +1 -1
  137. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts.map +1 -1
  138. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js +1 -3
  139. package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js.map +1 -1
  140. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts +1 -1
  141. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts.map +1 -1
  142. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js +0 -29
  143. package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js.map +1 -1
  144. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +1 -1
  145. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -1
  146. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +6 -112
  147. package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js.map +1 -1
  148. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +1 -1
  149. package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -1
  150. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +3 -33
  151. package/dist/ai-service/skills/system/third-party-migration/skill.generated.js.map +1 -1
  152. package/dist/ai-service/state-machine/clark-fsm.d.ts +0 -21
  153. package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
  154. package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
  155. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  156. package/dist/ai-service/state-machine/handlers/agent-planning.js +6 -79
  157. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  158. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts +0 -10
  159. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  160. package/dist/ai-service/state-machine/handlers/llm-generating.js +41 -69
  161. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  162. package/dist/ai-service/state-machine/helpers/peer.d.ts +7 -35
  163. package/dist/ai-service/state-machine/helpers/peer.d.ts.map +1 -1
  164. package/dist/ai-service/state-machine/helpers/peer.js +15 -81
  165. package/dist/ai-service/state-machine/helpers/peer.js.map +1 -1
  166. package/dist/ai-service/template-renderer.d.ts +1 -14
  167. package/dist/ai-service/template-renderer.d.ts.map +1 -1
  168. package/dist/ai-service/template-renderer.js +41 -144
  169. package/dist/ai-service/template-renderer.js.map +1 -1
  170. package/dist/ai-service/transform/api-builder/to-sdk-transformer.js +2 -2
  171. package/dist/ai-service/transform/api-builder/to-sdk-transformer.js.map +1 -1
  172. package/dist/ai-service/transform/api-builder/to-yaml-transformer.js +2 -2
  173. package/dist/ai-service/transform/api-builder/to-yaml-transformer.js.map +1 -1
  174. package/dist/draft-interface.d.ts +1 -1
  175. package/dist/draft-interface.d.ts.map +1 -1
  176. package/dist/file-sync-vite-plugin.d.ts.map +1 -1
  177. package/dist/file-sync-vite-plugin.js +27 -34
  178. package/dist/file-sync-vite-plugin.js.map +1 -1
  179. package/dist/file-system-helpers.d.ts +0 -4
  180. package/dist/file-system-helpers.d.ts.map +1 -1
  181. package/dist/file-system-helpers.js +0 -13
  182. package/dist/file-system-helpers.js.map +1 -1
  183. package/dist/inject-index-vite-plugin.d.ts.map +1 -1
  184. package/dist/inject-index-vite-plugin.js +1 -15
  185. package/dist/inject-index-vite-plugin.js.map +1 -1
  186. package/dist/injected-index.d.ts.map +1 -1
  187. package/dist/injected-index.js +1 -15
  188. package/dist/injected-index.js.map +1 -1
  189. package/dist/lock-service/index.d.ts.map +1 -1
  190. package/dist/lock-service/index.js +10 -8
  191. package/dist/lock-service/index.js.map +1 -1
  192. package/dist/migration/migration-checklist.d.ts +2 -51
  193. package/dist/migration/migration-checklist.d.ts.map +1 -1
  194. package/dist/migration/migration-checklist.js +151 -79
  195. package/dist/migration/migration-checklist.js.map +1 -1
  196. package/dist/migration/migration-routes.d.ts.map +1 -1
  197. package/dist/migration/migration-routes.js +30 -290
  198. package/dist/migration/migration-routes.js.map +1 -1
  199. package/dist/migration/restructure.d.ts +2 -9
  200. package/dist/migration/restructure.d.ts.map +1 -1
  201. package/dist/migration/restructure.js +5 -116
  202. package/dist/migration/restructure.js.map +1 -1
  203. package/dist/migration/unsupported-integrations.d.ts.map +1 -1
  204. package/dist/migration/unsupported-integrations.js +0 -9
  205. package/dist/migration/unsupported-integrations.js.map +1 -1
  206. package/dist/migration-templates/app-fullstack/client/components/hooks/use-mobile.ts +1 -1
  207. package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +1 -1
  208. package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +1 -1
  209. package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +1 -1
  210. package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +1 -1
  211. package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +1 -1
  212. package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +1 -1
  213. package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +1 -1
  214. package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +1 -1
  215. package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +1 -1
  216. package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +1 -1
  217. package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +1 -1
  218. package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +1 -1
  219. package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +1 -1
  220. package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +1 -1
  221. package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +1 -1
  222. package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +1 -1
  223. package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +1 -1
  224. package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +1 -1
  225. package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +1 -1
  226. package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +1 -1
  227. package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +1 -1
  228. package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +1 -1
  229. package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +1 -1
  230. package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +1 -1
  231. package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +1 -1
  232. package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +1 -1
  233. package/dist/socket-manager.d.ts.map +1 -1
  234. package/dist/socket-manager.js +0 -8
  235. package/dist/socket-manager.js.map +1 -1
  236. package/dist/sync-service/hash-dir-tree.d.ts +1 -1
  237. package/dist/sync-service/hash-dir-tree.d.ts.map +1 -1
  238. package/dist/sync-service/hash-dir-tree.js +3 -3
  239. package/dist/sync-service/hash-dir-tree.js.map +1 -1
  240. package/dist/sync-service/index.d.ts +14 -0
  241. package/dist/sync-service/index.d.ts.map +1 -1
  242. package/dist/sync-service/index.js +44 -1
  243. package/dist/sync-service/index.js.map +1 -1
  244. package/dist/sync-service/list-dir.d.ts +1 -1
  245. package/dist/sync-service/list-dir.d.ts.map +1 -1
  246. package/dist/sync-service/list-dir.js +3 -36
  247. package/dist/sync-service/list-dir.js.map +1 -1
  248. package/dist/sync-service/snapshot/take-snapshot.d.ts +1 -1
  249. package/dist/sync-service/snapshot/take-snapshot.d.ts.map +1 -1
  250. package/dist/sync-service/snapshot/take-snapshot.js +8 -4
  251. package/dist/sync-service/snapshot/take-snapshot.js.map +1 -1
  252. package/dist/util/log-sanitizer.d.ts +5 -6
  253. package/dist/util/log-sanitizer.d.ts.map +1 -1
  254. package/dist/util/log-sanitizer.js +6 -21
  255. package/dist/util/log-sanitizer.js.map +1 -1
  256. package/package.json +8 -9
  257. package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts +0 -17
  258. package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts.map +0 -1
  259. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js +0 -219
  260. package/dist/ai-service/agent/prompts/build-security-scan-prompt.js.map +0 -1
  261. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts +0 -36
  262. package/dist/ai-service/agent/tools/apis/api-comparator.d.ts.map +0 -1
  263. package/dist/ai-service/agent/tools/apis/api-comparator.js +0 -369
  264. package/dist/ai-service/agent/tools/apis/api-comparator.js.map +0 -1
  265. package/dist/ai-service/agent/tools/build-copy-directory.d.ts +0 -12
  266. package/dist/ai-service/agent/tools/build-copy-directory.d.ts.map +0 -1
  267. package/dist/ai-service/agent/tools/build-copy-directory.js +0 -51
  268. package/dist/ai-service/agent/tools/build-copy-directory.js.map +0 -1
  269. package/dist/ai-service/agent/tools/build-copy-file.d.ts +0 -12
  270. package/dist/ai-service/agent/tools/build-copy-file.d.ts.map +0 -1
  271. package/dist/ai-service/agent/tools/build-copy-file.js +0 -52
  272. package/dist/ai-service/agent/tools/build-copy-file.js.map +0 -1
  273. package/dist/ai-service/agent/tools/build-copy-utils.d.ts +0 -57
  274. package/dist/ai-service/agent/tools/build-copy-utils.d.ts.map +0 -1
  275. package/dist/ai-service/agent/tools/build-copy-utils.js +0 -37
  276. package/dist/ai-service/agent/tools/build-copy-utils.js.map +0 -1
  277. package/dist/ai-service/agent/tools/databases/dev-database.d.ts +0 -103
  278. package/dist/ai-service/agent/tools/databases/dev-database.d.ts.map +0 -1
  279. package/dist/ai-service/agent/tools/databases/dev-database.js +0 -117
  280. package/dist/ai-service/agent/tools/databases/dev-database.js.map +0 -1
  281. package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts +0 -18
  282. package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts.map +0 -1
  283. package/dist/ai-service/agent/tools/integrations/delete-integration.js +0 -99
  284. package/dist/ai-service/agent/tools/integrations/delete-integration.js.map +0 -1
  285. package/dist/ai-service/agent/tools/report-security-findings.d.ts +0 -163
  286. package/dist/ai-service/agent/tools/report-security-findings.d.ts.map +0 -1
  287. package/dist/ai-service/agent/tools/report-security-findings.js +0 -52
  288. package/dist/ai-service/agent/tools/report-security-findings.js.map +0 -1
  289. package/dist/ai-service/app-interface/npm-registry.d.ts +0 -137
  290. package/dist/ai-service/app-interface/npm-registry.d.ts.map +0 -1
  291. package/dist/ai-service/app-interface/npm-registry.js +0 -415
  292. package/dist/ai-service/app-interface/npm-registry.js.map +0 -1
  293. package/dist/ai-service/checklist/persisted-checklist-store.d.ts +0 -105
  294. package/dist/ai-service/checklist/persisted-checklist-store.d.ts.map +0 -1
  295. package/dist/ai-service/checklist/persisted-checklist-store.js +0 -498
  296. package/dist/ai-service/checklist/persisted-checklist-store.js.map +0 -1
  297. package/dist/ai-service/dev-database-client.d.ts +0 -90
  298. package/dist/ai-service/dev-database-client.d.ts.map +0 -1
  299. package/dist/ai-service/dev-database-client.js +0 -166
  300. package/dist/ai-service/dev-database-client.js.map +0 -1
  301. package/dist/ai-service/llmobs/context-registry.d.ts +0 -62
  302. package/dist/ai-service/llmobs/context-registry.d.ts.map +0 -1
  303. package/dist/ai-service/llmobs/context-registry.js +0 -115
  304. package/dist/ai-service/llmobs/context-registry.js.map +0 -1
  305. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts +0 -2
  306. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts.map +0 -1
  307. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js +0 -107
  308. package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js.map +0 -1
  309. package/dist/migration/migration-verification.d.ts +0 -206
  310. package/dist/migration/migration-verification.d.ts.map +0 -1
  311. package/dist/migration/migration-verification.js +0 -1006
  312. package/dist/migration/migration-verification.js.map +0 -1
  313. package/dist/migration/yaml-walk.d.ts +0 -18
  314. package/dist/migration/yaml-walk.d.ts.map +0 -1
  315. package/dist/migration/yaml-walk.js +0 -45
  316. package/dist/migration/yaml-walk.js.map +0 -1
@@ -1,206 +0,0 @@
1
- import { type ApiComparisonDiff, type ApiComparisonDiffEntry } from "../ai-service/agent/tools/apis/api-comparator.js";
2
- import { type ApiExecutionResult } from "../ai-service/agent/tools/apis/api-executor.js";
3
- import { PermissionLevel } from "../ai-service/agent/tools2/types.js";
4
- import type { Clark, ClarkStateHandlerParams } from "../ai-service/state-machine/clark-fsm.js";
5
- /**
6
- * Hard cap on verification attempts per API per migration. The agent does NOT
7
- * decide when to stop iterating — this counter is computed from on-disk
8
- * history and enforced inside `runMigrationVerification`. An LLM agent asked
9
- * to self-assess "am I converging?" reliably picks the socially acceptable
10
- * answer ("yes"); the cap removes that judgment from the loop.
11
- */
12
- export declare const MAX_VERIFICATION_ATTEMPTS = 10;
13
- export type VerificationOutcome = {
14
- kind: "passed";
15
- } | {
16
- kind: "both_failed";
17
- v2Error: string;
18
- v3Error: string;
19
- } | {
20
- kind: "skipped_mutation";
21
- mutationDetails: string[];
22
- /** "ask" = user set policy to ask-before-running; "deny" = permanently blocked. */
23
- skipPolicy: "ask" | "deny";
24
- } | {
25
- kind: "v2_unrunnable";
26
- reason: string;
27
- } | {
28
- kind: "diverged";
29
- diff: ApiComparisonDiff;
30
- /** 1-indexed attempt number for this verification run. */
31
- attempt: number;
32
- /**
33
- * Programmatic convergence signal computed from on-disk history. Agents
34
- * cannot fudge this — it's derived by hashing the (path, kind) tuples of
35
- * the current diff and comparing to the prior attempt's hash.
36
- *
37
- * - `first_attempt`: no prior diverged result for this API.
38
- * - `converging`: the set of (path, kind) pairs differs from the prior
39
- * diverged attempt — Clark's last edit changed *which* paths diverge.
40
- * Note: the hash deliberately excludes value hashes, so changing the
41
- * *value* on the same path/kind is NOT counted as progress.
42
- * - `stalled`: the set of (path, kind) pairs is identical to the prior
43
- * diverged attempt. Whatever Clark did had no structural effect.
44
- */
45
- progress: "first_attempt" | "converging" | "stalled";
46
- } | {
47
- kind: "error";
48
- reason: string;
49
- } | {
50
- kind: "exhausted";
51
- attempts: number;
52
- lastDivergence?: ApiComparisonDiff;
53
- };
54
- export interface RunMigrationVerificationParams {
55
- apiName: string;
56
- appRootDir: string;
57
- /**
58
- * Test inputs to inject into both the v2 YAML pipeline and the v3 SDK
59
- * execution. Structurally identical to the `inputs` accepted by the
60
- * `testApi` tool — Clark synthesizes mock values for the API's bindings
61
- * (e.g. `Input1.value`, `Table1.selectedRow`) the same way it does for
62
- * standalone testing. Defaults to `{}` so callers that don't care about
63
- * parametrized verification can omit it.
64
- */
65
- inputs?: Record<string, unknown>;
66
- /** Injected to allow unit testing without Clark infrastructure. */
67
- runV2Pipeline: (sourcePath: string, inputs: Record<string, unknown>) => Promise<{
68
- success: boolean;
69
- executionResult?: ApiExecutionResult;
70
- }>;
71
- runV3Sdk: (integrationIds: string[] | undefined, inputs: Record<string, unknown>) => Promise<Pick<ApiExecutionResult, "success" | "outputs"> & Partial<Pick<ApiExecutionResult, "errors" | "systemError">>>;
72
- /**
73
- * If true, "ask" mutation policy does not auto-skip and verification proceeds.
74
- * Callers must ensure permission prompting has already been handled.
75
- */
76
- allowAskPolicy?: boolean;
77
- }
78
- /**
79
- * Verify a single API by running both the v2 YAML and v3 TS versions with the
80
- * supplied inputs and comparing their outputs.
81
- *
82
- * Wraps `computeVerificationOutcome` with on-disk history bookkeeping:
83
- * - Reads `scratch/migration-verification/<apiName>.history.json` and refuses
84
- * to run beyond `MAX_VERIFICATION_ATTEMPTS`, returning `kind: "exhausted"`.
85
- * - For `diverged` outcomes, computes `progress` (`first_attempt` |
86
- * `converging` | `stalled`) by hashing (path, kind) tuples and comparing to
87
- * the prior diverged attempt's hash.
88
- * - Appends a history entry on every run so the next call has accurate state.
89
- *
90
- * History persistence is best-effort: bookkeeping I/O failures are logged but
91
- * do not surface as verification errors.
92
- */
93
- export declare function runMigrationVerification(params: RunMigrationVerificationParams): Promise<VerificationOutcome>;
94
- /** Relative path (from appRootDir) for a diff JSON file. */
95
- export declare function diffRelativePath(apiName: string): string;
96
- export declare const migrationVerificationToolFactory: import("../ai-service/agent/tools2/types.js").ToolFactory<{
97
- clark: Clark;
98
- services: ClarkStateHandlerParams;
99
- }, import("../ai-service/agent/tools2/types.js").Tool<{
100
- apiName: string;
101
- inputs?: Record<string, any> | undefined;
102
- }, {
103
- kind: string;
104
- summaryForAgent: ApiComparisonDiffEntry[];
105
- diffPath: string;
106
- attempt: number;
107
- maxAttempts: number;
108
- progress: "first_attempt" | "converging" | "stalled";
109
- guidance: string;
110
- attempts?: undefined;
111
- summary?: undefined;
112
- mutationDetails?: undefined;
113
- reason?: undefined;
114
- } | {
115
- kind: string;
116
- attempts: number;
117
- summary: string;
118
- summaryForAgent?: undefined;
119
- diffPath?: undefined;
120
- attempt?: undefined;
121
- maxAttempts?: undefined;
122
- progress?: undefined;
123
- guidance?: undefined;
124
- mutationDetails?: undefined;
125
- reason?: undefined;
126
- } | {
127
- kind: string;
128
- mutationDetails: string[];
129
- summary: string;
130
- summaryForAgent?: undefined;
131
- diffPath?: undefined;
132
- attempt?: undefined;
133
- maxAttempts?: undefined;
134
- progress?: undefined;
135
- guidance?: undefined;
136
- attempts?: undefined;
137
- reason?: undefined;
138
- } | {
139
- kind: string;
140
- summary: string;
141
- summaryForAgent?: undefined;
142
- diffPath?: undefined;
143
- attempt?: undefined;
144
- maxAttempts?: undefined;
145
- progress?: undefined;
146
- guidance?: undefined;
147
- attempts?: undefined;
148
- mutationDetails?: undefined;
149
- reason?: undefined;
150
- } | {
151
- kind: string;
152
- reason: string;
153
- summaryForAgent?: undefined;
154
- diffPath?: undefined;
155
- attempt?: undefined;
156
- maxAttempts?: undefined;
157
- progress?: undefined;
158
- guidance?: undefined;
159
- attempts?: undefined;
160
- summary?: undefined;
161
- mutationDetails?: undefined;
162
- }>>;
163
- /**
164
- * Inspect a v2 backup YAML for mutating steps and the integrations they touch.
165
- *
166
- * Returns empty results when the backup is missing or unparseable — the
167
- * verification flow handles that downstream as `v2_unrunnable`. The goal here
168
- * is only to feed the policy gate so v2-only writes don't bypass it.
169
- *
170
- * Walks the whole tree via `forEachYamlStep` so writes nested inside
171
- * control-flow blocks (`tryCatch`, `conditional`, `foreach`, `parallel`) are
172
- * caught — a flat scan over `parsed.blocks` would let nested v2 writes bypass
173
- * the policy gate, especially now that the language-plugin filter has removed
174
- * the accidental safety net where javascript's missing policy used to block
175
- * all verification.
176
- *
177
- * Treats `unknown` step classifications (dynamic SQL bodies, plugins we don't
178
- * recognize) as mutations: better to ask the user than silently run a write.
179
- */
180
- export declare function analyzeV2BackupMutations(v2BackupPath: string): Promise<{
181
- mutationDetails: string[];
182
- integrationIds: string[];
183
- }>;
184
- export declare const checkRunMigrationVerificationPermissions: (services: ClarkStateHandlerParams, input?: {
185
- apiName?: string;
186
- }) => Promise<PermissionLevel>;
187
- /**
188
- * Delete the per-API verification history (and stale diff snapshot) so the
189
- * next `runMigrationVerification` call starts from a clean slate. Called by
190
- * the "Fix with Clark" retry endpoints — without this, an item that hit the
191
- * `MAX_VERIFICATION_ATTEMPTS` cap on the first run would immediately return
192
- * `kind: "exhausted"` on retry, making the retry a no-op.
193
- *
194
- * Routed through the same per-API `verificationHistoryQueues` queue used by
195
- * `runMigrationVerification`. Without this, a clear could race with an
196
- * in-flight verification: the verification reads history, runs the pipeline,
197
- * the clear `rm()`s the file, then the verification's append re-creates the
198
- * file with a stale attempt count — defeating the clear and immediately
199
- * returning `exhausted` on the user's next retry.
200
- *
201
- * Best-effort: missing files are not an error. The safety check on
202
- * `apiName` (via `historyPath`/`diffPath`) runs *before* enqueueing so a
203
- * poisoned name throws synchronously, never holding the queue.
204
- */
205
- export declare function clearVerificationHistory(appRootDir: string, apiName: string): Promise<void>;
206
- //# sourceMappingURL=migration-verification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migration-verification.d.ts","sourceRoot":"","sources":["../../src/migration/migration-verification.ts"],"names":[],"mappings":"AAkBA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACV,KAAK,EACL,uBAAuB,EACxB,MAAM,0CAA0C,CAAC;AAalD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAI5C,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI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