veryfront 0.1.545 → 0.1.547

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 (2141) hide show
  1. package/esm/cli/templates/manifest.js +6 -6
  2. package/esm/deno.js +3 -3
  3. package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.d.ts.map +1 -1
  4. package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.js +28 -2
  5. package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
  6. package/esm/extensions/ext-sandbox-shell-tools/src/index.js +22 -2
  7. package/esm/src/agent/ag-ui/handler.d.ts +2 -0
  8. package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
  9. package/esm/src/agent/ag-ui/handler.js +43 -10
  10. package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
  11. package/esm/src/agent/ag-ui/host-support.js +51 -10
  12. package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
  13. package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +21 -1
  14. package/esm/src/agent/index.d.ts +28 -11
  15. package/esm/src/agent/index.d.ts.map +1 -1
  16. package/esm/src/agent/index.js +27 -11
  17. package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts.map +1 -1
  18. package/esm/src/agent/react/use-chat/browser-inference/worker-client.d.ts.map +1 -1
  19. package/esm/src/agent/react/use-chat/index.d.ts +1 -1
  20. package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
  21. package/esm/src/agent/react/use-chat/streaming/handler.d.ts +1 -0
  22. package/esm/src/agent/react/use-chat/streaming/handler.d.ts.map +1 -1
  23. package/esm/src/agent/react/use-chat/streaming/handler.js +121 -6
  24. package/esm/src/agent/react/use-chat/streaming/index.d.ts +1 -1
  25. package/esm/src/agent/react/use-chat/streaming/index.d.ts.map +1 -1
  26. package/esm/src/agent/react/use-chat/streaming/index.js +1 -1
  27. package/esm/src/agent/react/use-chat/types.d.ts +2 -0
  28. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  29. package/esm/src/agent/react/use-chat/use-chat.d.ts +4 -2
  30. package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
  31. package/esm/src/agent/react/use-chat/use-chat.js +8 -4
  32. package/esm/src/agent/runtime/index.js +2 -2
  33. package/esm/src/agent/service/before-stream.d.ts +31 -0
  34. package/esm/src/agent/service/before-stream.d.ts.map +1 -0
  35. package/esm/src/agent/service/before-stream.js +64 -0
  36. package/esm/src/chat/ag-ui.d.ts +2 -2
  37. package/esm/src/chat/ag-ui.d.ts.map +1 -1
  38. package/esm/src/chat/ag-ui.js +105 -29
  39. package/esm/src/integrations/index.d.ts +8 -1
  40. package/esm/src/integrations/index.d.ts.map +1 -1
  41. package/esm/src/integrations/index.js +8 -1
  42. package/esm/src/jobs/index.d.ts +0 -1
  43. package/esm/src/jobs/index.d.ts.map +1 -1
  44. package/esm/src/jobs/index.js +0 -1
  45. package/esm/src/mcp/index.d.ts +2 -6
  46. package/esm/src/mcp/index.d.ts.map +1 -1
  47. package/esm/src/mcp/index.js +2 -6
  48. package/esm/src/platform/compat/opaque-dependency-versions.d.ts +5 -0
  49. package/esm/src/platform/compat/opaque-dependency-versions.d.ts.map +1 -0
  50. package/esm/src/platform/compat/opaque-dependency-versions.js +4 -0
  51. package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
  52. package/esm/src/platform/compat/opaque-deps.js +3 -2
  53. package/esm/src/prompt/index.d.ts +5 -0
  54. package/esm/src/prompt/index.d.ts.map +1 -1
  55. package/esm/src/prompt/index.js +5 -0
  56. package/esm/src/resource/index.d.ts +10 -7
  57. package/esm/src/resource/index.d.ts.map +1 -1
  58. package/esm/src/resource/index.js +10 -7
  59. package/esm/src/sandbox/types.d.ts +1 -1
  60. package/esm/src/sandbox/types.d.ts.map +1 -1
  61. package/esm/src/tool/index.d.ts +44 -24
  62. package/esm/src/tool/index.d.ts.map +1 -1
  63. package/esm/src/tool/index.js +44 -24
  64. package/esm/src/utils/version-constant.d.ts +1 -1
  65. package/esm/src/utils/version-constant.js +1 -1
  66. package/package.json +54 -23
  67. package/esm/src/agent/service/chat-handler.d.ts +0 -69
  68. package/esm/src/agent/service/chat-handler.d.ts.map +0 -1
  69. package/esm/src/agent/service/chat-handler.js +0 -311
  70. package/src/_dnt.polyfills.ts +0 -558
  71. package/src/_dnt.shims.ts +0 -71
  72. package/src/cli/app/actions.ts +0 -149
  73. package/src/cli/app/components/inline-input.ts +0 -243
  74. package/src/cli/app/components/list-select.ts +0 -197
  75. package/src/cli/app/data/slug-words.ts +0 -303
  76. package/src/cli/app/handlers/remote-navigation.ts +0 -65
  77. package/src/cli/app/handlers/view-handlers.ts +0 -173
  78. package/src/cli/app/index.ts +0 -19
  79. package/src/cli/app/logging/console-interceptor.ts +0 -97
  80. package/src/cli/app/operations/project-creation.ts +0 -71
  81. package/src/cli/app/shell.ts +0 -666
  82. package/src/cli/app/startup.ts +0 -48
  83. package/src/cli/app/state.ts +0 -383
  84. package/src/cli/app/types.ts +0 -40
  85. package/src/cli/app/utils.ts +0 -65
  86. package/src/cli/app/views/auth.ts +0 -30
  87. package/src/cli/app/views/dashboard.ts +0 -189
  88. package/src/cli/app/views/help.ts +0 -65
  89. package/src/cli/app/views/index.ts +0 -12
  90. package/src/cli/app/views/new-project.ts +0 -36
  91. package/src/cli/app/views/startup.ts +0 -112
  92. package/src/cli/app/views/templates.ts +0 -35
  93. package/src/cli/auth/browser.ts +0 -26
  94. package/src/cli/auth/callback-server.ts +0 -297
  95. package/src/cli/auth/index.ts +0 -16
  96. package/src/cli/auth/login.ts +0 -303
  97. package/src/cli/auth/provider-store.ts +0 -82
  98. package/src/cli/auth/providers/anthropic.ts +0 -45
  99. package/src/cli/auth/providers/openai.ts +0 -44
  100. package/src/cli/auth/token-store.ts +0 -63
  101. package/src/cli/auth/utils.ts +0 -31
  102. package/src/cli/commands/analyze-chunks/command-help.ts +0 -18
  103. package/src/cli/commands/analyze-chunks/command.ts +0 -89
  104. package/src/cli/commands/analyze-chunks/handler.ts +0 -33
  105. package/src/cli/commands/build/command-help.ts +0 -51
  106. package/src/cli/commands/build/command.ts +0 -93
  107. package/src/cli/commands/build/config-display.ts +0 -48
  108. package/src/cli/commands/build/error-handler.ts +0 -30
  109. package/src/cli/commands/build/handler.ts +0 -103
  110. package/src/cli/commands/build/stats-display.ts +0 -40
  111. package/src/cli/commands/build/types.ts +0 -1
  112. package/src/cli/commands/clean/command-help.ts +0 -33
  113. package/src/cli/commands/clean/command.ts +0 -151
  114. package/src/cli/commands/clean/handler.ts +0 -33
  115. package/src/cli/commands/completions/command-help.ts +0 -15
  116. package/src/cli/commands/completions/command.ts +0 -163
  117. package/src/cli/commands/completions/handler.ts +0 -29
  118. package/src/cli/commands/config/command-help.ts +0 -15
  119. package/src/cli/commands/config/handler.ts +0 -90
  120. package/src/cli/commands/demo/command-help.ts +0 -27
  121. package/src/cli/commands/demo/demo.ts +0 -630
  122. package/src/cli/commands/demo/handler.ts +0 -30
  123. package/src/cli/commands/demo/index.ts +0 -2
  124. package/src/cli/commands/demo/steps.ts +0 -68
  125. package/src/cli/commands/deploy/command-help.ts +0 -42
  126. package/src/cli/commands/deploy/command.ts +0 -287
  127. package/src/cli/commands/deploy/handler.ts +0 -13
  128. package/src/cli/commands/deploy/index.ts +0 -14
  129. package/src/cli/commands/dev/command-help.ts +0 -34
  130. package/src/cli/commands/dev/command.ts +0 -337
  131. package/src/cli/commands/dev/handler.ts +0 -76
  132. package/src/cli/commands/dev/index.ts +0 -7
  133. package/src/cli/commands/doctor/ai-checks.ts +0 -65
  134. package/src/cli/commands/doctor/command-help.ts +0 -15
  135. package/src/cli/commands/doctor/handler.ts +0 -27
  136. package/src/cli/commands/doctor/index.ts +0 -89
  137. package/src/cli/commands/doctor/project-structure.ts +0 -56
  138. package/src/cli/commands/doctor/server-checks.ts +0 -142
  139. package/src/cli/commands/doctor/types.ts +0 -6
  140. package/src/cli/commands/doctor/version-checks.ts +0 -67
  141. package/src/cli/commands/extension/command-help.ts +0 -18
  142. package/src/cli/commands/extension/handler.ts +0 -41
  143. package/src/cli/commands/extension/init-command.ts +0 -150
  144. package/src/cli/commands/extension/validate-command.ts +0 -78
  145. package/src/cli/commands/files/command-help.ts +0 -41
  146. package/src/cli/commands/files/command.ts +0 -343
  147. package/src/cli/commands/files/handler.ts +0 -6
  148. package/src/cli/commands/files/index.ts +0 -19
  149. package/src/cli/commands/generate/command-help.ts +0 -21
  150. package/src/cli/commands/generate/command.ts +0 -155
  151. package/src/cli/commands/generate/handler.ts +0 -55
  152. package/src/cli/commands/generate/index.ts +0 -6
  153. package/src/cli/commands/generate/integration-generator-helpers.ts +0 -185
  154. package/src/cli/commands/generate/integration-generator.ts +0 -782
  155. package/src/cli/commands/init/catalog.ts +0 -224
  156. package/src/cli/commands/init/command-help.ts +0 -54
  157. package/src/cli/commands/init/config-generator.ts +0 -84
  158. package/src/cli/commands/init/handler.ts +0 -79
  159. package/src/cli/commands/init/index.ts +0 -8
  160. package/src/cli/commands/init/init-command.ts +0 -566
  161. package/src/cli/commands/init/interactive-wizard.ts +0 -170
  162. package/src/cli/commands/init/path-utils.ts +0 -15
  163. package/src/cli/commands/init/types.ts +0 -28
  164. package/src/cli/commands/install/command-help.ts +0 -63
  165. package/src/cli/commands/install/detect.ts +0 -51
  166. package/src/cli/commands/install/handler.ts +0 -33
  167. package/src/cli/commands/install/install.ts +0 -112
  168. package/src/cli/commands/install/registry.ts +0 -79
  169. package/src/cli/commands/install/types.ts +0 -58
  170. package/src/cli/commands/install/uninstall.ts +0 -139
  171. package/src/cli/commands/issues/command-help.ts +0 -50
  172. package/src/cli/commands/issues/command.ts +0 -364
  173. package/src/cli/commands/issues/handler.ts +0 -10
  174. package/src/cli/commands/issues/index.ts +0 -6
  175. package/src/cli/commands/knowledge/command-help.ts +0 -44
  176. package/src/cli/commands/knowledge/command-helpers.ts +0 -295
  177. package/src/cli/commands/knowledge/command.ts +0 -802
  178. package/src/cli/commands/knowledge/handler.ts +0 -6
  179. package/src/cli/commands/knowledge/index.ts +0 -2
  180. package/src/cli/commands/knowledge/parser-source.ts +0 -641
  181. package/src/cli/commands/knowledge/result.ts +0 -88
  182. package/src/cli/commands/knowledge/source-policy.ts +0 -164
  183. package/src/cli/commands/lint/command-help.ts +0 -15
  184. package/src/cli/commands/lint/command.ts +0 -59
  185. package/src/cli/commands/lint/handler.ts +0 -36
  186. package/src/cli/commands/lock/command-help.ts +0 -42
  187. package/src/cli/commands/lock/command.ts +0 -193
  188. package/src/cli/commands/lock/handler.ts +0 -35
  189. package/src/cli/commands/login/command-help.ts +0 -38
  190. package/src/cli/commands/logout/command-help.ts +0 -14
  191. package/src/cli/commands/mcp/command-help.ts +0 -36
  192. package/src/cli/commands/mcp/handler.ts +0 -37
  193. package/src/cli/commands/merge/command-help.ts +0 -32
  194. package/src/cli/commands/merge/command.ts +0 -224
  195. package/src/cli/commands/merge/handler.ts +0 -13
  196. package/src/cli/commands/open/command-help.ts +0 -19
  197. package/src/cli/commands/open/command.ts +0 -33
  198. package/src/cli/commands/open/handler.ts +0 -38
  199. package/src/cli/commands/pull/command-help.ts +0 -56
  200. package/src/cli/commands/pull/command.ts +0 -491
  201. package/src/cli/commands/pull/handler.ts +0 -13
  202. package/src/cli/commands/pull/index.ts +0 -3
  203. package/src/cli/commands/push/command-help.ts +0 -39
  204. package/src/cli/commands/push/command.ts +0 -404
  205. package/src/cli/commands/push/handler.ts +0 -13
  206. package/src/cli/commands/push/index.ts +0 -3
  207. package/src/cli/commands/routes/command-help.ts +0 -15
  208. package/src/cli/commands/routes/command.ts +0 -88
  209. package/src/cli/commands/routes/handler.ts +0 -31
  210. package/src/cli/commands/schema/command-help.ts +0 -17
  211. package/src/cli/commands/schema/command.ts +0 -64
  212. package/src/cli/commands/schema/handler.ts +0 -36
  213. package/src/cli/commands/serve/command-help.ts +0 -25
  214. package/src/cli/commands/serve/command.ts +0 -120
  215. package/src/cli/commands/serve/handler.ts +0 -43
  216. package/src/cli/commands/serve/split-mode.ts +0 -193
  217. package/src/cli/commands/skills/command-help.ts +0 -23
  218. package/src/cli/commands/skills/command.ts +0 -23
  219. package/src/cli/commands/skills/create.ts +0 -87
  220. package/src/cli/commands/skills/handler.ts +0 -106
  221. package/src/cli/commands/skills/validate.ts +0 -110
  222. package/src/cli/commands/start/command-help.ts +0 -52
  223. package/src/cli/commands/start/command.ts +0 -258
  224. package/src/cli/commands/start/handler.ts +0 -35
  225. package/src/cli/commands/studio/command-help.ts +0 -27
  226. package/src/cli/commands/studio/command.ts +0 -96
  227. package/src/cli/commands/studio/handler.ts +0 -28
  228. package/src/cli/commands/studio/index.ts +0 -6
  229. package/src/cli/commands/styles/command-help.ts +0 -22
  230. package/src/cli/commands/styles/command.ts +0 -303
  231. package/src/cli/commands/styles/handler.ts +0 -28
  232. package/src/cli/commands/task/command-help.ts +0 -23
  233. package/src/cli/commands/task/command.ts +0 -112
  234. package/src/cli/commands/task/handler.ts +0 -28
  235. package/src/cli/commands/test/command-help.ts +0 -18
  236. package/src/cli/commands/test/command.ts +0 -90
  237. package/src/cli/commands/test/handler.ts +0 -74
  238. package/src/cli/commands/up/command-help.ts +0 -25
  239. package/src/cli/commands/up/command.ts +0 -218
  240. package/src/cli/commands/up/handler.ts +0 -11
  241. package/src/cli/commands/up/index.ts +0 -7
  242. package/src/cli/commands/uploads/command-help.ts +0 -46
  243. package/src/cli/commands/uploads/command.ts +0 -482
  244. package/src/cli/commands/uploads/handler.ts +0 -6
  245. package/src/cli/commands/uploads/index.ts +0 -23
  246. package/src/cli/commands/whoami/command-help.ts +0 -14
  247. package/src/cli/commands/worker/command-help.ts +0 -49
  248. package/src/cli/commands/worker/command.ts +0 -114
  249. package/src/cli/commands/worker/handler.ts +0 -36
  250. package/src/cli/commands/workflow/command-help.ts +0 -22
  251. package/src/cli/commands/workflow/command.ts +0 -157
  252. package/src/cli/commands/workflow/handler.ts +0 -30
  253. package/src/cli/help/command-definitions.ts +0 -96
  254. package/src/cli/help/command-help.ts +0 -73
  255. package/src/cli/help/formatters.ts +0 -102
  256. package/src/cli/help/index.ts +0 -6
  257. package/src/cli/help/logo.ts +0 -5
  258. package/src/cli/help/main-help.ts +0 -98
  259. package/src/cli/help/tips.ts +0 -54
  260. package/src/cli/help/types.ts +0 -25
  261. package/src/cli/main.ts +0 -74
  262. package/src/cli/mcp/advanced-tools.ts +0 -61
  263. package/src/cli/mcp/dev-server-client.ts +0 -82
  264. package/src/cli/mcp/index.ts +0 -2
  265. package/src/cli/mcp/jsonrpc.ts +0 -186
  266. package/src/cli/mcp/remote-file-tool-helpers.ts +0 -27
  267. package/src/cli/mcp/remote-file-tools.ts +0 -826
  268. package/src/cli/mcp/server.ts +0 -531
  269. package/src/cli/mcp/standalone.ts +0 -646
  270. package/src/cli/mcp/stdio.ts +0 -57
  271. package/src/cli/mcp/tools/bootstrap-tool.ts +0 -71
  272. package/src/cli/mcp/tools/build-tool.ts +0 -119
  273. package/src/cli/mcp/tools/catalog-tools.ts +0 -507
  274. package/src/cli/mcp/tools/cicd-tools.ts +0 -17
  275. package/src/cli/mcp/tools/context7-tools.ts +0 -114
  276. package/src/cli/mcp/tools/deploy-tool.ts +0 -136
  277. package/src/cli/mcp/tools/dev-tools.ts +0 -475
  278. package/src/cli/mcp/tools/helpers.ts +0 -141
  279. package/src/cli/mcp/tools/introspection-tools.ts +0 -53
  280. package/src/cli/mcp/tools/project-tools.ts +0 -412
  281. package/src/cli/mcp/tools/run-lint-tool.ts +0 -109
  282. package/src/cli/mcp/tools/run-tests-tool.ts +0 -117
  283. package/src/cli/mcp/tools/scaffold-tools.ts +0 -433
  284. package/src/cli/mcp/tools/skill-tools.ts +0 -194
  285. package/src/cli/mcp/tools.ts +0 -267
  286. package/src/cli/router.ts +0 -299
  287. package/src/cli/shared/animation.ts +0 -25
  288. package/src/cli/shared/args.ts +0 -269
  289. package/src/cli/shared/config.ts +0 -258
  290. package/src/cli/shared/constants.ts +0 -29
  291. package/src/cli/shared/ensure-content-processor.ts +0 -17
  292. package/src/cli/shared/handler-utils.ts +0 -17
  293. package/src/cli/shared/interactive.ts +0 -33
  294. package/src/cli/shared/json-output.ts +0 -96
  295. package/src/cli/shared/parsed-args.ts +0 -9
  296. package/src/cli/shared/project-source-context.ts +0 -96
  297. package/src/cli/shared/reserve-slug.ts +0 -114
  298. package/src/cli/shared/server-startup.ts +0 -119
  299. package/src/cli/shared/slug.ts +0 -12
  300. package/src/cli/shared/suggest.ts +0 -33
  301. package/src/cli/shared/types.ts +0 -36
  302. package/src/cli/shared/update-check.ts +0 -108
  303. package/src/cli/skills/core-skills.ts +0 -233
  304. package/src/cli/skills/loader.ts +0 -98
  305. package/src/cli/skills/types.ts +0 -44
  306. package/src/cli/sync/ignore.ts +0 -143
  307. package/src/cli/sync/index.ts +0 -21
  308. package/src/cli/sync/project-discovery.ts +0 -81
  309. package/src/cli/templates/feature-loader.ts +0 -201
  310. package/src/cli/templates/index.ts +0 -77
  311. package/src/cli/templates/integration-loader-helpers.ts +0 -49
  312. package/src/cli/templates/integration-loader.ts +0 -709
  313. package/src/cli/templates/loader.ts +0 -64
  314. package/src/cli/templates/manifest.js +0 -623
  315. package/src/cli/templates/types.ts +0 -78
  316. package/src/cli/ui/animated-text.ts +0 -89
  317. package/src/cli/ui/ansi.ts +0 -91
  318. package/src/cli/ui/box.ts +0 -1
  319. package/src/cli/ui/colors.ts +0 -240
  320. package/src/cli/ui/components/banner.ts +0 -170
  321. package/src/cli/ui/components/index.ts +0 -4
  322. package/src/cli/ui/components/multi-select.ts +0 -163
  323. package/src/cli/ui/components/shortcuts.ts +0 -30
  324. package/src/cli/ui/components/table.ts +0 -187
  325. package/src/cli/ui/constants.ts +0 -20
  326. package/src/cli/ui/dot-matrix.ts +0 -344
  327. package/src/cli/ui/index.ts +0 -7
  328. package/src/cli/ui/keyboard.ts +0 -138
  329. package/src/cli/ui/layout.ts +0 -142
  330. package/src/cli/ui/progress.ts +0 -246
  331. package/src/cli/ui/tui.ts +0 -311
  332. package/src/cli/utils/env-prompt.ts +0 -190
  333. package/src/cli/utils/fs.ts +0 -33
  334. package/src/cli/utils/git.ts +0 -58
  335. package/src/cli/utils/index.ts +0 -230
  336. package/src/cli/utils/package-manager.ts +0 -204
  337. package/src/cli/utils/project.ts +0 -16
  338. package/src/cli/utils/sanitize-job-output.ts +0 -23
  339. package/src/cli/utils/string.ts +0 -27
  340. package/src/cli/utils/terminal-select.ts +0 -371
  341. package/src/cli/utils/write-job-result.ts +0 -23
  342. package/src/deno.js +0 -429
  343. package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +0 -105
  344. package/src/deps/esm.sh/@types/react-dom@19.2.3/server.d.ts +0 -183
  345. package/src/deps/esm.sh/@types/react-dom@19.2.3/static.d.ts +0 -153
  346. package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +0 -166
  347. package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +0 -4370
  348. package/src/deps/esm.sh/@types/react@19.2.14/jsx-dev-runtime.d.ts +0 -45
  349. package/src/deps/esm.sh/@types/react@19.2.14/jsx-runtime.d.ts +0 -36
  350. package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
  351. package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
  352. package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +0 -30
  353. package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +0 -22569
  354. package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -105
  355. package/src/deps/esm.sh/react-dom@19.2.4/client.js +0 -5
  356. package/src/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -183
  357. package/src/deps/esm.sh/react-dom@19.2.4/server.js +0 -5
  358. package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -45
  359. package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
  360. package/src/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -36
  361. package/src/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
  362. package/src/deps/esm.sh/react@19.2.4.d.ts +0 -4370
  363. package/src/deps/esm.sh/react@19.2.4.js +0 -3
  364. package/src/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -30
  365. package/src/deps/esm.sh/scheduler@^0.27.0.js +0 -3
  366. package/src/deps/jsr.io/@std/assert/1.0.19/almost_equals.ts +0 -56
  367. package/src/deps/jsr.io/@std/assert/1.0.19/array_includes.ts +0 -76
  368. package/src/deps/jsr.io/@std/assert/1.0.19/assert.ts +0 -24
  369. package/src/deps/jsr.io/@std/assert/1.0.19/assertion_error.ts +0 -31
  370. package/src/deps/jsr.io/@std/assert/1.0.19/equal.ts +0 -226
  371. package/src/deps/jsr.io/@std/assert/1.0.19/equals.ts +0 -68
  372. package/src/deps/jsr.io/@std/assert/1.0.19/exists.ts +0 -31
  373. package/src/deps/jsr.io/@std/assert/1.0.19/fail.ts +0 -21
  374. package/src/deps/jsr.io/@std/assert/1.0.19/false.ts +0 -27
  375. package/src/deps/jsr.io/@std/assert/1.0.19/greater.ts +0 -30
  376. package/src/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.ts +0 -36
  377. package/src/deps/jsr.io/@std/assert/1.0.19/instance_of.ts +0 -64
  378. package/src/deps/jsr.io/@std/assert/1.0.19/is_error.ts +0 -65
  379. package/src/deps/jsr.io/@std/assert/1.0.19/less.ts +0 -29
  380. package/src/deps/jsr.io/@std/assert/1.0.19/less_or_equal.ts +0 -36
  381. package/src/deps/jsr.io/@std/assert/1.0.19/match.ts +0 -30
  382. package/src/deps/jsr.io/@std/assert/1.0.19/mod.ts +0 -47
  383. package/src/deps/jsr.io/@std/assert/1.0.19/not_equals.ts +0 -43
  384. package/src/deps/jsr.io/@std/assert/1.0.19/not_instance_of.ts +0 -33
  385. package/src/deps/jsr.io/@std/assert/1.0.19/not_match.ts +0 -30
  386. package/src/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.ts +0 -42
  387. package/src/deps/jsr.io/@std/assert/1.0.19/object_match.ts +0 -224
  388. package/src/deps/jsr.io/@std/assert/1.0.19/rejects.ts +0 -123
  389. package/src/deps/jsr.io/@std/assert/1.0.19/strict_equals.ts +0 -68
  390. package/src/deps/jsr.io/@std/assert/1.0.19/string_includes.ts +0 -30
  391. package/src/deps/jsr.io/@std/assert/1.0.19/throws.ts +0 -111
  392. package/src/deps/jsr.io/@std/assert/1.0.19/unimplemented.ts +0 -21
  393. package/src/deps/jsr.io/@std/assert/1.0.19/unreachable.ts +0 -21
  394. package/src/deps/jsr.io/@std/dotenv/0.225.6/mod.ts +0 -251
  395. package/src/deps/jsr.io/@std/dotenv/0.225.6/parse.ts +0 -110
  396. package/src/deps/jsr.io/@std/dotenv/0.225.6/stringify.ts +0 -48
  397. package/src/deps/jsr.io/@std/fmt/1.0.10/colors.ts +0 -1004
  398. package/src/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.ts +0 -47
  399. package/src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts +0 -25
  400. package/src/deps/jsr.io/@std/fs/1.0.23/_is_same_path.ts +0 -23
  401. package/src/deps/jsr.io/@std/fs/1.0.23/_is_subdir.ts +0 -34
  402. package/src/deps/jsr.io/@std/fs/1.0.23/_to_path_string.ts +0 -17
  403. package/src/deps/jsr.io/@std/fs/1.0.23/copy.ts +0 -411
  404. package/src/deps/jsr.io/@std/fs/1.0.23/empty_dir.ts +0 -91
  405. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts +0 -110
  406. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_file.ts +0 -100
  407. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_link.ts +0 -66
  408. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.ts +0 -181
  409. package/src/deps/jsr.io/@std/fs/1.0.23/eol.ts +0 -75
  410. package/src/deps/jsr.io/@std/fs/1.0.23/exists.ts +0 -316
  411. package/src/deps/jsr.io/@std/fs/1.0.23/expand_glob.ts +0 -564
  412. package/src/deps/jsr.io/@std/fs/1.0.23/mod.ts +0 -31
  413. package/src/deps/jsr.io/@std/fs/1.0.23/move.ts +0 -171
  414. package/src/deps/jsr.io/@std/fs/1.0.23/walk.ts +0 -956
  415. package/src/deps/jsr.io/@std/internal/1.0.13/_os.ts +0 -15
  416. package/src/deps/jsr.io/@std/internal/1.0.13/assertion_state.ts +0 -248
  417. package/src/deps/jsr.io/@std/internal/1.0.13/build_message.ts +0 -147
  418. package/src/deps/jsr.io/@std/internal/1.0.13/diff.ts +0 -317
  419. package/src/deps/jsr.io/@std/internal/1.0.13/diff_str.ts +0 -208
  420. package/src/deps/jsr.io/@std/internal/1.0.13/format.ts +0 -89
  421. package/src/deps/jsr.io/@std/internal/1.0.13/os.ts +0 -7
  422. package/src/deps/jsr.io/@std/internal/1.0.13/styles.ts +0 -233
  423. package/src/deps/jsr.io/@std/internal/1.0.13/types.ts +0 -30
  424. package/src/deps/jsr.io/@std/path/1.1.4/_common/assert_path.ts +0 -10
  425. package/src/deps/jsr.io/@std/path/1.1.4/_common/basename.ts +0 -53
  426. package/src/deps/jsr.io/@std/path/1.1.4/_common/common.ts +0 -26
  427. package/src/deps/jsr.io/@std/path/1.1.4/_common/constants.ts +0 -49
  428. package/src/deps/jsr.io/@std/path/1.1.4/_common/dirname.ts +0 -9
  429. package/src/deps/jsr.io/@std/path/1.1.4/_common/format.ts +0 -25
  430. package/src/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.ts +0 -12
  431. package/src/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.ts +0 -295
  432. package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize.ts +0 -9
  433. package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.ts +0 -74
  434. package/src/deps/jsr.io/@std/path/1.1.4/_common/relative.ts +0 -10
  435. package/src/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.ts +0 -25
  436. package/src/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.ts +0 -17
  437. package/src/deps/jsr.io/@std/path/1.1.4/basename.ts +0 -37
  438. package/src/deps/jsr.io/@std/path/1.1.4/common.ts +0 -35
  439. package/src/deps/jsr.io/@std/path/1.1.4/constants.ts +0 -18
  440. package/src/deps/jsr.io/@std/path/1.1.4/dirname.ts +0 -30
  441. package/src/deps/jsr.io/@std/path/1.1.4/extname.ts +0 -29
  442. package/src/deps/jsr.io/@std/path/1.1.4/format.ts +0 -30
  443. package/src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts +0 -30
  444. package/src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts +0 -94
  445. package/src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts +0 -30
  446. package/src/deps/jsr.io/@std/path/1.1.4/is_glob.ts +0 -49
  447. package/src/deps/jsr.io/@std/path/1.1.4/join.ts +0 -31
  448. package/src/deps/jsr.io/@std/path/1.1.4/join_globs.ts +0 -42
  449. package/src/deps/jsr.io/@std/path/1.1.4/mod.ts +0 -217
  450. package/src/deps/jsr.io/@std/path/1.1.4/normalize.ts +0 -33
  451. package/src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts +0 -45
  452. package/src/deps/jsr.io/@std/path/1.1.4/parse.ts +0 -44
  453. package/src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts +0 -10
  454. package/src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts +0 -62
  455. package/src/deps/jsr.io/@std/path/1.1.4/posix/common.ts +0 -26
  456. package/src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts +0 -15
  457. package/src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts +0 -72
  458. package/src/deps/jsr.io/@std/path/1.1.4/posix/extname.ts +0 -96
  459. package/src/deps/jsr.io/@std/path/1.1.4/posix/format.ts +0 -31
  460. package/src/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.ts +0 -25
  461. package/src/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.ts +0 -94
  462. package/src/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.ts +0 -25
  463. package/src/deps/jsr.io/@std/path/1.1.4/posix/is_glob.ts +0 -4
  464. package/src/deps/jsr.io/@std/path/1.1.4/posix/join.ts +0 -46
  465. package/src/deps/jsr.io/@std/path/1.1.4/posix/join_globs.ts +0 -45
  466. package/src/deps/jsr.io/@std/path/1.1.4/posix/mod.ts +0 -44
  467. package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize.ts +0 -63
  468. package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.ts +0 -43
  469. package/src/deps/jsr.io/@std/path/1.1.4/posix/parse.ts +0 -121
  470. package/src/deps/jsr.io/@std/path/1.1.4/posix/relative.ts +0 -103
  471. package/src/deps/jsr.io/@std/path/1.1.4/posix/resolve.ts +0 -71
  472. package/src/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.ts +0 -32
  473. package/src/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.ts +0 -21
  474. package/src/deps/jsr.io/@std/path/1.1.4/relative.ts +0 -32
  475. package/src/deps/jsr.io/@std/path/1.1.4/resolve.ts +0 -32
  476. package/src/deps/jsr.io/@std/path/1.1.4/to_file_url.ts +0 -30
  477. package/src/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.ts +0 -31
  478. package/src/deps/jsr.io/@std/path/1.1.4/types.ts +0 -40
  479. package/src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts +0 -28
  480. package/src/deps/jsr.io/@std/path/1.1.4/windows/basename.ts +0 -54
  481. package/src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts +0 -15
  482. package/src/deps/jsr.io/@std/path/1.1.4/windows/dirname.ts +0 -118
  483. package/src/deps/jsr.io/@std/path/1.1.4/windows/extname.ts +0 -90
  484. package/src/deps/jsr.io/@std/path/1.1.4/windows/format.ts +0 -31
  485. package/src/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.ts +0 -34
  486. package/src/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.ts +0 -92
  487. package/src/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.ts +0 -40
  488. package/src/deps/jsr.io/@std/path/1.1.4/windows/join.ts +0 -78
  489. package/src/deps/jsr.io/@std/path/1.1.4/windows/join_globs.ts +0 -46
  490. package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize.ts +0 -136
  491. package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.ts +0 -43
  492. package/src/deps/jsr.io/@std/path/1.1.4/windows/parse.ts +0 -184
  493. package/src/deps/jsr.io/@std/path/1.1.4/windows/relative.ts +0 -128
  494. package/src/deps/jsr.io/@std/path/1.1.4/windows/resolve.ts +0 -178
  495. package/src/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.ts +0 -38
  496. package/src/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.ts +0 -60
  497. package/src/deps/jsr.io/@std/testing/1.0.18/_test_suite.ts +0 -461
  498. package/src/deps/jsr.io/@std/testing/1.0.18/bdd.ts +0 -1294
  499. package/src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts +0 -55
  500. package/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts +0 -1845
  501. package/src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts +0 -183
  502. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts +0 -127
  503. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts +0 -37
  504. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts +0 -112
  505. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts +0 -174
  506. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts +0 -17
  507. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts +0 -13
  508. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts +0 -27
  509. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.ts +0 -30
  510. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.ts +0 -22
  511. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.ts +0 -33
  512. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.ts +0 -13
  513. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.ts +0 -17
  514. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.ts +0 -12
  515. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.ts +0 -101
  516. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.ts +0 -23
  517. package/src/deps/jsr.io/@std/yaml/1.1.0/_type.ts +0 -49
  518. package/src/deps/jsr.io/@std/yaml/1.1.0/_utils.ts +0 -16
  519. package/src/deps/jsr.io/@std/yaml/1.1.0/parse.ts +0 -125
  520. package/src/extensions/ext-auth-jwt/src/index.ts +0 -200
  521. package/src/extensions/ext-bundler-esbuild/src/binary.ts +0 -154
  522. package/src/extensions/ext-bundler-esbuild/src/es-module-lexer.ts +0 -34
  523. package/src/extensions/ext-bundler-esbuild/src/esbuild-bundler.ts +0 -122
  524. package/src/extensions/ext-bundler-esbuild/src/index.ts +0 -46
  525. package/src/extensions/ext-bundler-esbuild/src/plugin-adapter.ts +0 -66
  526. package/src/extensions/ext-bundler-esbuild/src/runtime.ts +0 -54
  527. package/src/extensions/ext-content-mdx/src/compiler/markdown-compile.ts +0 -127
  528. package/src/extensions/ext-content-mdx/src/compiler/mdx-compile.ts +0 -82
  529. package/src/extensions/ext-content-mdx/src/index.ts +0 -66
  530. package/src/extensions/ext-content-mdx/src/plugins/plugin-loader.ts +0 -21
  531. package/src/extensions/ext-content-mdx/src/plugins/rehype-node-positions.ts +0 -67
  532. package/src/extensions/ext-content-mdx/src/plugins/remark-headings.ts +0 -93
  533. package/src/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.ts +0 -246
  534. package/src/extensions/ext-css-tailwind/src/index.ts +0 -82
  535. package/src/extensions/ext-db-sqlite/src/index.ts +0 -47
  536. package/src/extensions/ext-document-kreuzberg/src/index.ts +0 -97
  537. package/src/extensions/ext-document-kreuzberg/src/kreuzberg.ts +0 -56
  538. package/src/extensions/ext-llm-anthropic/src/anthropic-provider.ts +0 -336
  539. package/src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts +0 -540
  540. package/src/extensions/ext-llm-anthropic/src/anthropic-stream.ts +0 -310
  541. package/src/extensions/ext-llm-anthropic/src/index.ts +0 -38
  542. package/src/extensions/ext-llm-google/src/google-provider.ts +0 -305
  543. package/src/extensions/ext-llm-google/src/google-request-builder.ts +0 -394
  544. package/src/extensions/ext-llm-google/src/google-stream.ts +0 -188
  545. package/src/extensions/ext-llm-google/src/index.ts +0 -35
  546. package/src/extensions/ext-llm-openai/src/index.ts +0 -37
  547. package/src/extensions/ext-llm-openai/src/openai-chat-request-builder.ts +0 -220
  548. package/src/extensions/ext-llm-openai/src/openai-chat-stream.ts +0 -251
  549. package/src/extensions/ext-llm-openai/src/openai-provider.ts +0 -577
  550. package/src/extensions/ext-llm-openai/src/openai-responses-request-builder.ts +0 -298
  551. package/src/extensions/ext-llm-openai/src/openai-responses-stream.ts +0 -226
  552. package/src/extensions/ext-observability-opentelemetry/src/index.ts +0 -291
  553. package/src/extensions/ext-parser-babel/src/index.ts +0 -111
  554. package/src/extensions/ext-parser-babel/src/inject-node-positions.ts +0 -184
  555. package/src/extensions/ext-sandbox-shell-tools/src/index.ts +0 -43
  556. package/src/extensions/ext-schema-zod/src/adapter.ts +0 -238
  557. package/src/extensions/ext-schema-zod/src/index.ts +0 -39
  558. package/src/extensions/ext-schema-zod/src/json-schema.ts +0 -311
  559. package/src/react/jsx-dev-runtime.ts +0 -1
  560. package/src/react/jsx-runtime.ts +0 -1
  561. package/src/react/react-dom-client.ts +0 -2
  562. package/src/react/react-dom-server.ts +0 -2
  563. package/src/react/react.ts +0 -274
  564. package/src/src/agent/ag-ui/browser-chunk-encoder.ts +0 -58
  565. package/src/src/agent/ag-ui/browser-encoder.ts +0 -538
  566. package/src/src/agent/ag-ui/browser-finalize-tracker.ts +0 -65
  567. package/src/src/agent/ag-ui/browser-response-stream.ts +0 -175
  568. package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +0 -172
  569. package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +0 -34
  570. package/src/src/agent/ag-ui/detached-start.ts +0 -425
  571. package/src/src/agent/ag-ui/forwarded-context.ts +0 -83
  572. package/src/src/agent/ag-ui/handler.ts +0 -388
  573. package/src/src/agent/ag-ui/host-support.ts +0 -244
  574. package/src/src/agent/ag-ui/request-shared.ts +0 -76
  575. package/src/src/agent/ag-ui/run-control.ts +0 -145
  576. package/src/src/agent/ag-ui/runtime-browser-response.ts +0 -41
  577. package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +0 -359
  578. package/src/src/agent/ag-ui/runtime-event-encoder.ts +0 -71
  579. package/src/src/agent/ag-ui/runtime-handler.ts +0 -510
  580. package/src/src/agent/ag-ui/runtime-support.ts +0 -64
  581. package/src/src/agent/ag-ui/sse-parser.ts +0 -306
  582. package/src/src/agent/ag-ui/tool-shared.ts +0 -80
  583. package/src/src/agent/ag-ui/tracked-browser-response.ts +0 -42
  584. package/src/src/agent/artifacts/default-research-artifact-policy.ts +0 -171
  585. package/src/src/agent/artifacts/default-research-artifact-support.ts +0 -374
  586. package/src/src/agent/artifacts/slash-command-artifact-policy.ts +0 -212
  587. package/src/src/agent/child-run/execution-cleanup.ts +0 -33
  588. package/src/src/agent/child-run/execution-snapshot.ts +0 -154
  589. package/src/src/agent/child-run/execution-support.ts +0 -29
  590. package/src/src/agent/child-run/final-step-support.ts +0 -51
  591. package/src/src/agent/child-run/invoke-agent-child-runs.ts +0 -198
  592. package/src/src/agent/child-run/result-summary.ts +0 -135
  593. package/src/src/agent/composition/composition.ts +0 -176
  594. package/src/src/agent/composition/index.ts +0 -19
  595. package/src/src/agent/conversation/bootstrap.ts +0 -335
  596. package/src/src/agent/conversation/delegation-policy.ts +0 -299
  597. package/src/src/agent/conversation/durable.ts +0 -1387
  598. package/src/src/agent/conversation/hosted-lifecycle.ts +0 -215
  599. package/src/src/agent/conversation/hosted-terminal.ts +0 -235
  600. package/src/src/agent/conversation/root-run-context.ts +0 -143
  601. package/src/src/agent/conversation/root-run-lifecycle.ts +0 -184
  602. package/src/src/agent/conversation/run-chunk-mirror.ts +0 -385
  603. package/src/src/agent/conversation/run-context.ts +0 -22
  604. package/src/src/agent/conversation/run-event-normalization.ts +0 -228
  605. package/src/src/agent/conversation/run-event-preparation.ts +0 -76
  606. package/src/src/agent/conversation/run-events.ts +0 -242
  607. package/src/src/agent/conversation/run-mirror.ts +0 -271
  608. package/src/src/agent/conversation/run-stream-mirror.ts +0 -63
  609. package/src/src/agent/factory.ts +0 -303
  610. package/src/src/agent/hosted/ag-ui-chat-request.ts +0 -199
  611. package/src/src/agent/hosted/agent-project-steering.ts +0 -141
  612. package/src/src/agent/hosted/agent-run-lifecycle.ts +0 -161
  613. package/src/src/agent/hosted/chat-execution-lifecycle-types.ts +0 -11
  614. package/src/src/agent/hosted/chat-execution-runtime.ts +0 -694
  615. package/src/src/agent/hosted/chat-preparation.ts +0 -357
  616. package/src/src/agent/hosted/chat-request-parser.ts +0 -209
  617. package/src/src/agent/hosted/chat-request.ts +0 -114
  618. package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +0 -88
  619. package/src/src/agent/hosted/chat-runtime-contract.ts +0 -101
  620. package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +0 -185
  621. package/src/src/agent/hosted/child-artifact-support.ts +0 -201
  622. package/src/src/agent/hosted/child-bootstrap.ts +0 -75
  623. package/src/src/agent/hosted/child-execution-logging.ts +0 -114
  624. package/src/src/agent/hosted/child-fork-execution-runner.ts +0 -396
  625. package/src/src/agent/hosted/child-fork-instructions.ts +0 -91
  626. package/src/src/agent/hosted/child-fork-run-context.ts +0 -309
  627. package/src/src/agent/hosted/child-fork-runtime-start.ts +0 -84
  628. package/src/src/agent/hosted/child-fork-step-message-preparation.ts +0 -96
  629. package/src/src/agent/hosted/child-fork-stream-execution.ts +0 -626
  630. package/src/src/agent/hosted/child-fork-tool-sources.ts +0 -231
  631. package/src/src/agent/hosted/child-invoke-tool.ts +0 -90
  632. package/src/src/agent/hosted/child-lifecycle.ts +0 -352
  633. package/src/src/agent/hosted/child-mirror.ts +0 -272
  634. package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +0 -191
  635. package/src/src/agent/hosted/child-requested-tools.ts +0 -411
  636. package/src/src/agent/hosted/child-status.ts +0 -167
  637. package/src/src/agent/hosted/child-steering-tools.ts +0 -92
  638. package/src/src/agent/hosted/child-stream-watchdog.ts +0 -146
  639. package/src/src/agent/hosted/child-tool-input.ts +0 -91
  640. package/src/src/agent/hosted/cloud-chat-execution-preparation.ts +0 -98
  641. package/src/src/agent/hosted/cloud-prepared-chat-execution-runtime.ts +0 -36
  642. package/src/src/agent/hosted/cloud-runtime-system-messages.ts +0 -79
  643. package/src/src/agent/hosted/default-chat-runtime.ts +0 -329
  644. package/src/src/agent/hosted/default-invoke-agent-tool.ts +0 -581
  645. package/src/src/agent/hosted/default-project-steering-refresh.ts +0 -227
  646. package/src/src/agent/hosted/durable-chat-run-start.ts +0 -246
  647. package/src/src/agent/hosted/durable-child-fork-execution.ts +0 -597
  648. package/src/src/agent/hosted/finalized-message.ts +0 -170
  649. package/src/src/agent/hosted/form-input-tool.ts +0 -128
  650. package/src/src/agent/hosted/lifecycle.ts +0 -159
  651. package/src/src/agent/hosted/prepared-chat-execution.ts +0 -188
  652. package/src/src/agent/hosted/project-remote-tool-source.ts +0 -324
  653. package/src/src/agent/hosted/project-steering-adapter.ts +0 -184
  654. package/src/src/agent/hosted/response-stream.ts +0 -87
  655. package/src/src/agent/hosted/runtime-request-config.ts +0 -112
  656. package/src/src/agent/hosted/runtime-state-resolver.ts +0 -141
  657. package/src/src/agent/hosted/stream-finalization.ts +0 -188
  658. package/src/src/agent/hosted/stream-terminal-error.ts +0 -81
  659. package/src/src/agent/hosted/trace-attributes.ts +0 -196
  660. package/src/src/agent/hosted/veryfront-api-tool-access.ts +0 -293
  661. package/src/src/agent/hosted/veryfront-cloud-agent-service.ts +0 -1050
  662. package/src/src/agent/index.ts +0 -1770
  663. package/src/src/agent/input/human-input.ts +0 -353
  664. package/src/src/agent/input/request-protocol.ts +0 -279
  665. package/src/src/agent/memory/index.ts +0 -21
  666. package/src/src/agent/memory/memory-interface.ts +0 -65
  667. package/src/src/agent/memory/memory.ts +0 -263
  668. package/src/src/agent/memory/redis.ts +0 -168
  669. package/src/src/agent/middleware/cache/cache.ts +0 -318
  670. package/src/src/agent/middleware/cache/index.ts +0 -7
  671. package/src/src/agent/middleware/chain.ts +0 -62
  672. package/src/src/agent/middleware/cost-tracking/index.ts +0 -13
  673. package/src/src/agent/middleware/cost-tracking/tracker.ts +0 -351
  674. package/src/src/agent/middleware/index.ts +0 -33
  675. package/src/src/agent/middleware/rate-limit/index.ts +0 -12
  676. package/src/src/agent/middleware/rate-limit/limiter.ts +0 -197
  677. package/src/src/agent/middleware/security/index.ts +0 -14
  678. package/src/src/agent/middleware/security/validator.ts +0 -288
  679. package/src/src/agent/project/agent-runtime.ts +0 -139
  680. package/src/src/agent/project/context.ts +0 -63
  681. package/src/src/agent/project/live-studio-mcp-tools.ts +0 -153
  682. package/src/src/agent/project/steering-mutation.ts +0 -126
  683. package/src/src/agent/react/index.ts +0 -39
  684. package/src/src/agent/react/use-agent.ts +0 -133
  685. package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +0 -89
  686. package/src/src/agent/react/use-chat/browser-inference/types.ts +0 -52
  687. package/src/src/agent/react/use-chat/browser-inference/worker-client.ts +0 -87
  688. package/src/src/agent/react/use-chat/browser-inference/worker-script.ts +0 -98
  689. package/src/src/agent/react/use-chat/index.ts +0 -27
  690. package/src/src/agent/react/use-chat/stream-protocol.ts +0 -1
  691. package/src/src/agent/react/use-chat/streaming/handler.ts +0 -429
  692. package/src/src/agent/react/use-chat/streaming/index.ts +0 -15
  693. package/src/src/agent/react/use-chat/streaming/parts-builder.ts +0 -91
  694. package/src/src/agent/react/use-chat/streaming/types.ts +0 -41
  695. package/src/src/agent/react/use-chat/types.ts +0 -115
  696. package/src/src/agent/react/use-chat/use-chat.ts +0 -576
  697. package/src/src/agent/react/use-chat/utils.ts +0 -13
  698. package/src/src/agent/react/use-completion.ts +0 -133
  699. package/src/src/agent/react/use-streaming.ts +0 -120
  700. package/src/src/agent/react/use-voice-input.ts +0 -249
  701. package/src/src/agent/runtime/ag-ui-contract.ts +0 -224
  702. package/src/src/agent/runtime/agent-definition-files.ts +0 -155
  703. package/src/src/agent/runtime/agent-definition.ts +0 -166
  704. package/src/src/agent/runtime/agent-invocation-contract.ts +0 -360
  705. package/src/src/agent/runtime/agent-markdown-adapter.ts +0 -31
  706. package/src/src/agent/runtime/builtin-skill-files.ts +0 -122
  707. package/src/src/agent/runtime/chat-stream-handler.ts +0 -577
  708. package/src/src/agent/runtime/client-profile.ts +0 -123
  709. package/src/src/agent/runtime/constants.ts +0 -29
  710. package/src/src/agent/runtime/default-provider-options.ts +0 -52
  711. package/src/src/agent/runtime/defaults.ts +0 -12
  712. package/src/src/agent/runtime/error-utils.ts +0 -32
  713. package/src/src/agent/runtime/index.ts +0 -1478
  714. package/src/src/agent/runtime/input-utils.ts +0 -48
  715. package/src/src/agent/runtime/load-skill-tool.ts +0 -239
  716. package/src/src/agent/runtime/message-adapter.ts +0 -480
  717. package/src/src/agent/runtime/message-file-url-refresh.ts +0 -120
  718. package/src/src/agent/runtime/message-preparation.ts +0 -58
  719. package/src/src/agent/runtime/model-resolution.ts +0 -113
  720. package/src/src/agent/runtime/model-tool-converter.ts +0 -97
  721. package/src/src/agent/runtime/project-files-client.ts +0 -256
  722. package/src/src/agent/runtime/project-skill-catalog.ts +0 -238
  723. package/src/src/agent/runtime/project-skill-loader.ts +0 -217
  724. package/src/src/agent/runtime/prompt-block.ts +0 -19
  725. package/src/src/agent/runtime/provider-native-tool-inventory.ts +0 -74
  726. package/src/src/agent/runtime/provider-native-tools.ts +0 -130
  727. package/src/src/agent/runtime/provider-tool-compat.ts +0 -304
  728. package/src/src/agent/runtime/repair-tool-call.ts +0 -50
  729. package/src/src/agent/runtime/resume-session.ts +0 -353
  730. package/src/src/agent/runtime/runtime-tool-builder.ts +0 -82
  731. package/src/src/agent/runtime/runtime-tool-errors.ts +0 -46
  732. package/src/src/agent/runtime/runtime-tool-types.ts +0 -121
  733. package/src/src/agent/runtime/skill-metadata.ts +0 -260
  734. package/src/src/agent/runtime/skill-prompt.ts +0 -61
  735. package/src/src/agent/runtime/sse-utils.ts +0 -51
  736. package/src/src/agent/runtime/text-generation-runtime-message-converter.ts +0 -269
  737. package/src/src/agent/runtime/text-generation-runtime-message-types.ts +0 -62
  738. package/src/src/agent/runtime/tool-helpers.ts +0 -428
  739. package/src/src/agent/runtime/tool-inventory.ts +0 -46
  740. package/src/src/agent/runtime/upload-url-client.ts +0 -95
  741. package/src/src/agent/schemas/agent.schema.ts +0 -181
  742. package/src/src/agent/schemas/index.ts +0 -38
  743. package/src/src/agent/schemas/tool.schema.ts +0 -11
  744. package/src/src/agent/service/abort-rejection-guard.ts +0 -162
  745. package/src/src/agent/service/auth.ts +0 -427
  746. package/src/src/agent/service/bootstrap.ts +0 -79
  747. package/src/src/agent/service/chat-handler.ts +0 -508
  748. package/src/src/agent/service/config.ts +0 -107
  749. package/src/src/agent/service/definition.ts +0 -386
  750. package/src/src/agent/service/detached-run-tracker.ts +0 -169
  751. package/src/src/agent/service/env-files.ts +0 -60
  752. package/src/src/agent/service/external-worker-client.ts +0 -401
  753. package/src/src/agent/service/mcp-server-config.ts +0 -112
  754. package/src/src/agent/service/node-runtime-infrastructure.ts +0 -71
  755. package/src/src/agent/service/node-telemetry.ts +0 -197
  756. package/src/src/agent/service/registration.ts +0 -395
  757. package/src/src/agent/service/request-auth-cache.ts +0 -36
  758. package/src/src/agent/service/response-like.ts +0 -28
  759. package/src/src/agent/service/routes.ts +0 -386
  760. package/src/src/agent/service/runtime.ts +0 -303
  761. package/src/src/agent/service/server.ts +0 -98
  762. package/src/src/agent/streaming/chat-ui-message-stream.ts +0 -596
  763. package/src/src/agent/streaming/data-stream.ts +0 -209
  764. package/src/src/agent/streaming/fork-runtime-stream.ts +0 -1187
  765. package/src/src/agent/streaming/mirrored-tool-chunk-state.ts +0 -276
  766. package/src/src/agent/streaming/tool-execution-data-event-bridge.ts +0 -79
  767. package/src/src/agent/testing/agent-tester.ts +0 -202
  768. package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +0 -117
  769. package/src/src/agent/testing/durable-run-canaries/environment.ts +0 -27
  770. package/src/src/agent/testing/durable-run-canaries/index.ts +0 -36
  771. package/src/src/agent/testing/durable-run-canaries/runner.ts +0 -585
  772. package/src/src/agent/testing/durable-run-canaries/validation.ts +0 -87
  773. package/src/src/agent/testing/index.ts +0 -128
  774. package/src/src/agent/testing/live-evals/api-client.ts +0 -568
  775. package/src/src/agent/testing/live-evals/cli-runner.ts +0 -234
  776. package/src/src/agent/testing/live-evals/environment.ts +0 -31
  777. package/src/src/agent/testing/live-evals/formatting.ts +0 -106
  778. package/src/src/agent/testing/live-evals/index.ts +0 -99
  779. package/src/src/agent/testing/live-evals/metadata.ts +0 -167
  780. package/src/src/agent/testing/live-evals/performance.ts +0 -52
  781. package/src/src/agent/testing/live-evals/preflight.ts +0 -42
  782. package/src/src/agent/testing/live-evals/report.ts +0 -155
  783. package/src/src/agent/testing/live-evals/request.ts +0 -78
  784. package/src/src/agent/testing/live-evals/result.ts +0 -109
  785. package/src/src/agent/testing/live-evals/runner.ts +0 -629
  786. package/src/src/agent/types.ts +0 -275
  787. package/src/src/build/asset-pipeline/css-optimizer/types/index.ts +0 -92
  788. package/src/src/build/asset-pipeline/tailwind-processor/css-utils.ts +0 -13
  789. package/src/src/build/binary-plugin-includes.ts +0 -17
  790. package/src/src/build/bundler/code-splitter/build-context.ts +0 -97
  791. package/src/src/build/bundler/code-splitter/entry-points.ts +0 -31
  792. package/src/src/build/bundler/code-splitter/esbuild-plugin.ts +0 -38
  793. package/src/src/build/bundler/code-splitter/index.ts +0 -80
  794. package/src/src/build/bundler/code-splitter/manifest-builder.ts +0 -140
  795. package/src/src/build/bundler/code-splitter/splitter.ts +0 -98
  796. package/src/src/build/bundler/code-splitter/types.ts +0 -46
  797. package/src/src/build/bundler/index.ts +0 -39
  798. package/src/src/build/compiler/index.ts +0 -17
  799. package/src/src/build/compiler/mdx-compiler/code-generator.ts +0 -16
  800. package/src/src/build/compiler/mdx-compiler/compiler.ts +0 -53
  801. package/src/src/build/compiler/mdx-compiler/directory-compiler.ts +0 -39
  802. package/src/src/build/compiler/mdx-compiler/file-writer.ts +0 -25
  803. package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +0 -94
  804. package/src/src/build/compiler/mdx-compiler/import-transformer.ts +0 -27
  805. package/src/src/build/compiler/mdx-compiler/index.ts +0 -10
  806. package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +0 -32
  807. package/src/src/build/compiler/mdx-compiler/transpiler.ts +0 -15
  808. package/src/src/build/compiler/mdx-compiler/types.ts +0 -21
  809. package/src/src/build/compiler/mdx-compiler/validator.ts +0 -52
  810. package/src/src/build/compiler/mdx-compiler/watcher.ts +0 -57
  811. package/src/src/build/compiler/mdx-to-js.ts +0 -143
  812. package/src/src/build/embedded/preset.ts +0 -326
  813. package/src/src/build/index.ts +0 -11
  814. package/src/src/build/production-build/asset-generation.ts +0 -178
  815. package/src/src/build/production-build/build/build-cleanup.ts +0 -31
  816. package/src/src/build/production-build/build/build-executor.ts +0 -50
  817. package/src/src/build/production-build/build/build-initializer.ts +0 -58
  818. package/src/src/build/production-build/build/build-orchestrator.ts +0 -140
  819. package/src/src/build/production-build/build/build-setup.ts +0 -47
  820. package/src/src/build/production-build/build/code-splitter-orchestrator.ts +0 -43
  821. package/src/src/build/production-build/build/index.ts +0 -58
  822. package/src/src/build/production-build/build/output-generator.ts +0 -142
  823. package/src/src/build/production-build/build/route-collector.ts +0 -46
  824. package/src/src/build/production-build/client-runtime.ts +0 -376
  825. package/src/src/build/production-build/index.ts +0 -51
  826. package/src/src/build/production-build/manifest.ts +0 -126
  827. package/src/src/build/production-build/static-generation.ts +0 -256
  828. package/src/src/build/production-build/templates.ts +0 -17
  829. package/src/src/build/renderer/types/bundler-types.ts +0 -12
  830. package/src/src/cache/backend.ts +0 -32
  831. package/src/src/cache/backends/api.ts +0 -226
  832. package/src/src/cache/backends/disk.ts +0 -150
  833. package/src/src/cache/backends/factory.ts +0 -209
  834. package/src/src/cache/backends/helpers.ts +0 -7
  835. package/src/src/cache/backends/index.ts +0 -30
  836. package/src/src/cache/backends/memory.ts +0 -180
  837. package/src/src/cache/backends/redis.ts +0 -134
  838. package/src/src/cache/cache-key-builder.ts +0 -125
  839. package/src/src/cache/config-hash.ts +0 -64
  840. package/src/src/cache/dependency-graph.ts +0 -208
  841. package/src/src/cache/distributed-cache-init.ts +0 -144
  842. package/src/src/cache/index.ts +0 -37
  843. package/src/src/cache/keys/builders/file.ts +0 -70
  844. package/src/src/cache/keys/builders/github.ts +0 -34
  845. package/src/src/cache/keys/builders/module.ts +0 -94
  846. package/src/src/cache/keys/builders/render.ts +0 -125
  847. package/src/src/cache/keys/index.ts +0 -94
  848. package/src/src/cache/keys/prefixes.ts +0 -127
  849. package/src/src/cache/keys/utils.ts +0 -236
  850. package/src/src/cache/keys.ts +0 -7
  851. package/src/src/cache/module-cache.ts +0 -242
  852. package/src/src/cache/paths.ts +0 -140
  853. package/src/src/cache/registry.ts +0 -587
  854. package/src/src/cache/request-cache-batcher.ts +0 -144
  855. package/src/src/cache/schemas/cache-backend.schema.ts +0 -22
  856. package/src/src/cache/schemas/cache-key.schema.ts +0 -17
  857. package/src/src/cache/schemas/index.ts +0 -14
  858. package/src/src/cache/tokenizing-gateway.ts +0 -278
  859. package/src/src/cache/types.ts +0 -67
  860. package/src/src/channels/control-plane.ts +0 -455
  861. package/src/src/channels/invoke.ts +0 -447
  862. package/src/src/chat/ag-ui-helpers.ts +0 -139
  863. package/src/src/chat/ag-ui.ts +0 -882
  864. package/src/src/chat/chat-ui-message-helpers.ts +0 -232
  865. package/src/src/chat/conversation.ts +0 -941
  866. package/src/src/chat/final-step-fallback.ts +0 -957
  867. package/src/src/chat/hosted-ui-chunk-mapping.ts +0 -303
  868. package/src/src/chat/index.ts +0 -275
  869. package/src/src/chat/message-prep.ts +0 -873
  870. package/src/src/chat/protocol.ts +0 -358
  871. package/src/src/chat/provider-errors.ts +0 -218
  872. package/src/src/chat/stream-watchdog.ts +0 -229
  873. package/src/src/chat/types.ts +0 -632
  874. package/src/src/config/defaults.ts +0 -73
  875. package/src/src/config/define-config.ts +0 -68
  876. package/src/src/config/env.ts +0 -197
  877. package/src/src/config/environment-config.ts +0 -274
  878. package/src/src/config/index.ts +0 -69
  879. package/src/src/config/loader.ts +0 -528
  880. package/src/src/config/network-defaults.ts +0 -55
  881. package/src/src/config/runtime-config.ts +0 -216
  882. package/src/src/config/schemas/config.schema.ts +0 -695
  883. package/src/src/config/schemas/index.ts +0 -27
  884. package/src/src/data/data-fetcher.ts +0 -80
  885. package/src/src/data/data-fetching-cache.ts +0 -57
  886. package/src/src/data/helpers.ts +0 -9
  887. package/src/src/data/index.ts +0 -17
  888. package/src/src/data/schemas/data.schema.ts +0 -70
  889. package/src/src/data/schemas/index.ts +0 -20
  890. package/src/src/data/server-data-fetcher.ts +0 -185
  891. package/src/src/data/static-data-fetcher.ts +0 -310
  892. package/src/src/data/static-paths-fetcher.ts +0 -35
  893. package/src/src/data/types.ts +0 -28
  894. package/src/src/discovery/discovery-engine.ts +0 -229
  895. package/src/src/discovery/discovery-utils.ts +0 -44
  896. package/src/src/discovery/file-discovery.ts +0 -109
  897. package/src/src/discovery/handlers/agent-handler.ts +0 -30
  898. package/src/src/discovery/handlers/index.ts +0 -13
  899. package/src/src/discovery/handlers/prompt-handler.ts +0 -21
  900. package/src/src/discovery/handlers/resource-handler.ts +0 -22
  901. package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +0 -78
  902. package/src/src/discovery/handlers/skill-handler.ts +0 -123
  903. package/src/src/discovery/handlers/task-handler.ts +0 -19
  904. package/src/src/discovery/handlers/tool-handler.ts +0 -32
  905. package/src/src/discovery/handlers/workflow-handler.ts +0 -23
  906. package/src/src/discovery/import-rewriter.ts +0 -209
  907. package/src/src/discovery/index.ts +0 -34
  908. package/src/src/discovery/module-import.ts +0 -36
  909. package/src/src/discovery/project-discovery-config.ts +0 -89
  910. package/src/src/discovery/provider-config-validator.ts +0 -33
  911. package/src/src/discovery/transpiler.ts +0 -244
  912. package/src/src/discovery/types.ts +0 -69
  913. package/src/src/embedding/chunk.ts +0 -66
  914. package/src/src/embedding/embedding.ts +0 -67
  915. package/src/src/embedding/index.ts +0 -50
  916. package/src/src/embedding/model-resolution.ts +0 -46
  917. package/src/src/embedding/rag-store.ts +0 -432
  918. package/src/src/embedding/react/use-uploads.ts +0 -102
  919. package/src/src/embedding/resolve.ts +0 -157
  920. package/src/src/embedding/types.ts +0 -115
  921. package/src/src/embedding/upload-handler.ts +0 -287
  922. package/src/src/embedding/upload-loader.ts +0 -85
  923. package/src/src/embedding/vector-store.ts +0 -283
  924. package/src/src/embedding/veryfront-cloud/provider.ts +0 -55
  925. package/src/src/embedding/veryfront-cloud/rag-store.ts +0 -600
  926. package/src/src/errors/catalog/build-errors.ts +0 -98
  927. package/src/src/errors/catalog/config-errors.ts +0 -105
  928. package/src/src/errors/catalog/deployment-errors.ts +0 -44
  929. package/src/src/errors/catalog/dev-errors.ts +0 -40
  930. package/src/src/errors/catalog/factory.ts +0 -24
  931. package/src/src/errors/catalog/general-errors.ts +0 -71
  932. package/src/src/errors/catalog/index.ts +0 -64
  933. package/src/src/errors/catalog/module-errors.ts +0 -106
  934. package/src/src/errors/catalog/route-errors.ts +0 -69
  935. package/src/src/errors/catalog/rsc-errors.ts +0 -82
  936. package/src/src/errors/catalog/runtime-errors.ts +0 -96
  937. package/src/src/errors/catalog/server-errors.ts +0 -95
  938. package/src/src/errors/catalog/types.ts +0 -15
  939. package/src/src/errors/error-context.ts +0 -172
  940. package/src/src/errors/error-handlers.ts +0 -85
  941. package/src/src/errors/error-registry-helpers.ts +0 -23
  942. package/src/src/errors/error-registry.ts +0 -824
  943. package/src/src/errors/http-error.ts +0 -157
  944. package/src/src/errors/index.ts +0 -197
  945. package/src/src/errors/logging.ts +0 -109
  946. package/src/src/errors/middleware/cli-error-boundary.ts +0 -248
  947. package/src/src/errors/middleware/http-error-boundary.ts +0 -133
  948. package/src/src/errors/middleware/index.ts +0 -13
  949. package/src/src/errors/middleware/wrap-unknown.ts +0 -117
  950. package/src/src/errors/tracing.ts +0 -90
  951. package/src/src/errors/types.ts +0 -147
  952. package/src/src/errors/user-friendly/error-catalog.ts +0 -126
  953. package/src/src/errors/user-friendly/error-formatter.ts +0 -93
  954. package/src/src/errors/user-friendly/error-identifier.ts +0 -41
  955. package/src/src/errors/user-friendly/error-wrapper.ts +0 -26
  956. package/src/src/errors/user-friendly/index.ts +0 -10
  957. package/src/src/errors/veryfront-error.ts +0 -148
  958. package/src/src/extensions/auth/auth-provider.ts +0 -96
  959. package/src/src/extensions/auth/index.ts +0 -15
  960. package/src/src/extensions/builtin-extensions.ts +0 -161
  961. package/src/src/extensions/bundler/bundler.ts +0 -289
  962. package/src/src/extensions/bundler/helper.ts +0 -58
  963. package/src/src/extensions/bundler/index.ts +0 -49
  964. package/src/src/extensions/bundler/module-lexer.ts +0 -46
  965. package/src/src/extensions/cache/cache-store.ts +0 -27
  966. package/src/src/extensions/cache/index.ts +0 -10
  967. package/src/src/extensions/cache/token-cache-store.ts +0 -58
  968. package/src/src/extensions/capabilities.ts +0 -93
  969. package/src/src/extensions/compat/index.ts +0 -15
  970. package/src/src/extensions/compat/native-services.ts +0 -83
  971. package/src/src/extensions/content/content-processor.ts +0 -98
  972. package/src/src/extensions/content/index.ts +0 -17
  973. package/src/src/extensions/contracts.ts +0 -42
  974. package/src/src/extensions/css/css-processor.ts +0 -61
  975. package/src/src/extensions/css/index.ts +0 -15
  976. package/src/src/extensions/database/database-client.ts +0 -35
  977. package/src/src/extensions/database/index.ts +0 -9
  978. package/src/src/extensions/discovery.ts +0 -250
  979. package/src/src/extensions/errors.ts +0 -39
  980. package/src/src/extensions/factory-loader.ts +0 -76
  981. package/src/src/extensions/index.ts +0 -91
  982. package/src/src/extensions/llm/embedding-provider.ts +0 -39
  983. package/src/src/extensions/llm/index.ts +0 -17
  984. package/src/src/extensions/llm/llm-provider-registry.ts +0 -50
  985. package/src/src/extensions/llm/llm-provider.ts +0 -54
  986. package/src/src/extensions/loader.ts +0 -282
  987. package/src/src/extensions/observability/index.ts +0 -17
  988. package/src/src/extensions/observability/node-telemetry-provider.ts +0 -45
  989. package/src/src/extensions/observability/tracing-exporter.ts +0 -77
  990. package/src/src/extensions/orchestrate.ts +0 -194
  991. package/src/src/extensions/parser/code-parser.ts +0 -96
  992. package/src/src/extensions/parser/index.ts +0 -18
  993. package/src/src/extensions/recommendations.ts +0 -30
  994. package/src/src/extensions/sandbox/index.ts +0 -18
  995. package/src/src/extensions/sandbox/shell-tools.ts +0 -42
  996. package/src/src/extensions/schema/index.ts +0 -28
  997. package/src/src/extensions/schema/json-schema.ts +0 -23
  998. package/src/src/extensions/schema/schema-validator.ts +0 -257
  999. package/src/src/extensions/types.ts +0 -68
  1000. package/src/src/extensions/validation.ts +0 -188
  1001. package/src/src/fs/index.ts +0 -51
  1002. package/src/src/html/dev-scripts.ts +0 -92
  1003. package/src/src/html/html-detection.ts +0 -8
  1004. package/src/src/html/html-escape.ts +0 -20
  1005. package/src/src/html/html-injection.ts +0 -174
  1006. package/src/src/html/html-shell-generator.ts +0 -427
  1007. package/src/src/html/hydration-script-builder/dev-client-renderer.ts +0 -18
  1008. package/src/src/html/hydration-script-builder/dev-component-manifest.ts +0 -15
  1009. package/src/src/html/hydration-script-builder/dev-error-logger.ts +0 -58
  1010. package/src/src/html/hydration-script-builder/dev-scripts.ts +0 -47
  1011. package/src/src/html/hydration-script-builder/hydration-data-generator.ts +0 -79
  1012. package/src/src/html/hydration-script-builder/index.ts +0 -21
  1013. package/src/src/html/hydration-script-builder/prod-hydration.ts +0 -41
  1014. package/src/src/html/hydration-script-builder/prod-scripts.ts +0 -25
  1015. package/src/src/html/hydration-script-builder/templates/index.ts +0 -10
  1016. package/src/src/html/hydration-script-builder/templates/loader.ts +0 -107
  1017. package/src/src/html/hydration-script-builder/templates/renderer.ts +0 -166
  1018. package/src/src/html/hydration-script-builder/templates/router.ts +0 -679
  1019. package/src/src/html/hydration-script-builder/templates/spa-renderer.ts +0 -103
  1020. package/src/src/html/hydration-script-builder/types.ts +0 -29
  1021. package/src/src/html/index.ts +0 -35
  1022. package/src/src/html/metadata-builder.ts +0 -46
  1023. package/src/src/html/metadata-extraction.ts +0 -54
  1024. package/src/src/html/nonce-injection.ts +0 -330
  1025. package/src/src/html/schemas/html.schema.ts +0 -88
  1026. package/src/src/html/schemas/index.ts +0 -15
  1027. package/src/src/html/styles-builder/candidate-extractor.ts +0 -71
  1028. package/src/src/html/styles-builder/content-version.ts +0 -20
  1029. package/src/src/html/styles-builder/css-hash-cache.ts +0 -393
  1030. package/src/src/html/styles-builder/css-pregeneration.ts +0 -331
  1031. package/src/src/html/styles-builder/dev-styles.ts +0 -23
  1032. package/src/src/html/styles-builder/index.ts +0 -21
  1033. package/src/src/html/styles-builder/plugin-loader.ts +0 -252
  1034. package/src/src/html/styles-builder/prepared-project-css-cache.ts +0 -228
  1035. package/src/src/html/styles-builder/project-css-cache.ts +0 -321
  1036. package/src/src/html/styles-builder/style-scope-profile.ts +0 -164
  1037. package/src/src/html/styles-builder/tailwind-compiler-cache.ts +0 -231
  1038. package/src/src/html/styles-builder/tailwind-compiler-utils.ts +0 -199
  1039. package/src/src/html/styles-builder/tailwind-compiler.ts +0 -276
  1040. package/src/src/html/styles-builder/tailwind-plugin-allowlist.ts +0 -51
  1041. package/src/src/html/tag-generators.ts +0 -120
  1042. package/src/src/html/types.ts +0 -5
  1043. package/src/src/html/utils.ts +0 -327
  1044. package/src/src/index.ts +0 -78
  1045. package/src/src/integrations/_data.ts +0 -82
  1046. package/src/src/integrations/index.ts +0 -72
  1047. package/src/src/integrations/remote-tools.ts +0 -243
  1048. package/src/src/integrations/schema.ts +0 -204
  1049. package/src/src/integrations/types.ts +0 -62
  1050. package/src/src/internal-agents/ag-ui-sse.ts +0 -141
  1051. package/src/src/internal-agents/control-plane-auth.ts +0 -92
  1052. package/src/src/internal-agents/request-body.ts +0 -43
  1053. package/src/src/internal-agents/run-stream.ts +0 -422
  1054. package/src/src/internal-agents/runtime-owner.ts +0 -189
  1055. package/src/src/internal-agents/schema.ts +0 -347
  1056. package/src/src/internal-agents/session-manager.ts +0 -206
  1057. package/src/src/issues/core.ts +0 -385
  1058. package/src/src/issues/index.ts +0 -46
  1059. package/src/src/issues/mcp.ts +0 -289
  1060. package/src/src/issues/schemas/index.ts +0 -45
  1061. package/src/src/issues/schemas/issue.schema.ts +0 -152
  1062. package/src/src/jobs/index.ts +0 -101
  1063. package/src/src/jobs/jobs-client.ts +0 -503
  1064. package/src/src/jobs/runtime-env.ts +0 -106
  1065. package/src/src/jobs/schemas.ts +0 -429
  1066. package/src/src/markdown/index.ts +0 -20
  1067. package/src/src/mcp/annotations.ts +0 -10
  1068. package/src/src/mcp/elicitation.ts +0 -42
  1069. package/src/src/mcp/http-transport.ts +0 -162
  1070. package/src/src/mcp/index.ts +0 -65
  1071. package/src/src/mcp/registry.ts +0 -41
  1072. package/src/src/mcp/schemas/index.ts +0 -16
  1073. package/src/src/mcp/schemas/mcp.schema.ts +0 -59
  1074. package/src/src/mcp/server.ts +0 -790
  1075. package/src/src/mcp/session.ts +0 -31
  1076. package/src/src/mcp/sse.ts +0 -19
  1077. package/src/src/mcp/task-store.ts +0 -137
  1078. package/src/src/mcp/types.ts +0 -39
  1079. package/src/src/mdx/index.ts +0 -23
  1080. package/src/src/middleware/builtin/logger.ts +0 -246
  1081. package/src/src/middleware/builtin/security/rate-limit.ts +0 -123
  1082. package/src/src/middleware/builtin/security/redis-rate-limit.ts +0 -109
  1083. package/src/src/middleware/builtin/security/types.ts +0 -34
  1084. package/src/src/middleware/builtin/timeout.ts +0 -104
  1085. package/src/src/middleware/builtin/types.ts +0 -38
  1086. package/src/src/middleware/core/context.ts +0 -60
  1087. package/src/src/middleware/core/index.ts +0 -16
  1088. package/src/src/middleware/core/pipeline/composer.ts +0 -36
  1089. package/src/src/middleware/core/pipeline/executor.ts +0 -67
  1090. package/src/src/middleware/core/pipeline/index.ts +0 -10
  1091. package/src/src/middleware/core/pipeline/pipeline.ts +0 -97
  1092. package/src/src/middleware/core/pipeline/types.ts +0 -1
  1093. package/src/src/middleware/core/types.ts +0 -27
  1094. package/src/src/middleware/index.ts +0 -67
  1095. package/src/src/modules/component-registry/index.ts +0 -8
  1096. package/src/src/modules/component-registry/registry.ts +0 -246
  1097. package/src/src/modules/import-map/default-import-map.ts +0 -62
  1098. package/src/src/modules/import-map/index.ts +0 -14
  1099. package/src/src/modules/import-map/loader.ts +0 -173
  1100. package/src/src/modules/import-map/merger.ts +0 -19
  1101. package/src/src/modules/import-map/preloader.ts +0 -47
  1102. package/src/src/modules/import-map/resolver.ts +0 -106
  1103. package/src/src/modules/import-map/transformer.ts +0 -49
  1104. package/src/src/modules/import-map/types.ts +0 -8
  1105. package/src/src/modules/index.ts +0 -43
  1106. package/src/src/modules/loader-shared/patterns.ts +0 -40
  1107. package/src/src/modules/manifest/route-module-manifest.ts +0 -241
  1108. package/src/src/modules/module-resolver.ts +0 -145
  1109. package/src/src/modules/react-loader/component-loader.ts +0 -90
  1110. package/src/src/modules/react-loader/css-import-collector.ts +0 -50
  1111. package/src/src/modules/react-loader/extract-component.ts +0 -33
  1112. package/src/src/modules/react-loader/index.ts +0 -14
  1113. package/src/src/modules/react-loader/path-resolver.ts +0 -27
  1114. package/src/src/modules/react-loader/ssr-module-loader/cache/index.ts +0 -27
  1115. package/src/src/modules/react-loader/ssr-module-loader/cache/memory.ts +0 -278
  1116. package/src/src/modules/react-loader/ssr-module-loader/cache/redis.ts +0 -65
  1117. package/src/src/modules/react-loader/ssr-module-loader/concurrency/index.ts +0 -7
  1118. package/src/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.ts +0 -67
  1119. package/src/src/modules/react-loader/ssr-module-loader/constants.ts +0 -64
  1120. package/src/src/modules/react-loader/ssr-module-loader/cross-project-import-loader.ts +0 -152
  1121. package/src/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.ts +0 -196
  1122. package/src/src/modules/react-loader/ssr-module-loader/import-rewriter.ts +0 -170
  1123. package/src/src/modules/react-loader/ssr-module-loader/index.ts +0 -48
  1124. package/src/src/modules/react-loader/ssr-module-loader/loader-helpers.ts +0 -37
  1125. package/src/src/modules/react-loader/ssr-module-loader/loader.ts +0 -685
  1126. package/src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts +0 -45
  1127. package/src/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.ts +0 -318
  1128. package/src/src/modules/react-loader/ssr-module-loader/ssr-circuit-breaker.ts +0 -75
  1129. package/src/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.ts +0 -172
  1130. package/src/src/modules/react-loader/ssr-module-loader/tmp-paths.ts +0 -44
  1131. package/src/src/modules/react-loader/ssr-module-loader/types.ts +0 -42
  1132. package/src/src/modules/react-loader/ssr-module-loader/vf-module-resolver.ts +0 -117
  1133. package/src/src/modules/react-loader/temp-directory.ts +0 -58
  1134. package/src/src/modules/react-loader/types.ts +0 -26
  1135. package/src/src/modules/react-loader/unified-loader.ts +0 -134
  1136. package/src/src/modules/server/api-server.ts +0 -57
  1137. package/src/src/modules/server/index.ts +0 -15
  1138. package/src/src/modules/server/module-batch-handler.ts +0 -450
  1139. package/src/src/modules/server/module-server.ts +0 -697
  1140. package/src/src/modules/server/rate-limiter.ts +0 -26
  1141. package/src/src/modules/server/ssr-import-rewriter.ts +0 -116
  1142. package/src/src/modules/server/websocket-handler.ts +0 -133
  1143. package/src/src/oauth/handlers/callback-handler.ts +0 -176
  1144. package/src/src/oauth/handlers/index.ts +0 -18
  1145. package/src/src/oauth/handlers/init-handler.ts +0 -237
  1146. package/src/src/oauth/index.ts +0 -83
  1147. package/src/src/oauth/providers/atlassian.ts +0 -67
  1148. package/src/src/oauth/providers/base.ts +0 -410
  1149. package/src/src/oauth/providers/common.ts +0 -361
  1150. package/src/src/oauth/providers/google.ts +0 -71
  1151. package/src/src/oauth/providers/index.ts +0 -66
  1152. package/src/src/oauth/providers/microsoft.ts +0 -85
  1153. package/src/src/oauth/schemas/index.ts +0 -22
  1154. package/src/src/oauth/schemas/oauth.schema.ts +0 -106
  1155. package/src/src/oauth/token-store/index.ts +0 -8
  1156. package/src/src/oauth/token-store/memory.ts +0 -92
  1157. package/src/src/oauth/types.ts +0 -49
  1158. package/src/src/observability/auto-instrument/configurator.ts +0 -12
  1159. package/src/src/observability/auto-instrument/http-instrumentation.ts +0 -208
  1160. package/src/src/observability/auto-instrument/index.ts +0 -19
  1161. package/src/src/observability/auto-instrument/orchestrator.ts +0 -60
  1162. package/src/src/observability/auto-instrument/react-instrumentation.ts +0 -78
  1163. package/src/src/observability/auto-instrument/types.ts +0 -46
  1164. package/src/src/observability/auto-instrument/wrappers.ts +0 -107
  1165. package/src/src/observability/error-collector.ts +0 -390
  1166. package/src/src/observability/file-log-subscriber.ts +0 -187
  1167. package/src/src/observability/index.ts +0 -130
  1168. package/src/src/observability/instruments/build-instruments.ts +0 -36
  1169. package/src/src/observability/instruments/cache-instruments.ts +0 -65
  1170. package/src/src/observability/instruments/data-instruments.ts +0 -32
  1171. package/src/src/observability/instruments/error-instruments.ts +0 -54
  1172. package/src/src/observability/instruments/http-instruments.ts +0 -34
  1173. package/src/src/observability/instruments/index.ts +0 -16
  1174. package/src/src/observability/instruments/instruments-factory.ts +0 -71
  1175. package/src/src/observability/instruments/memory-instruments.ts +0 -72
  1176. package/src/src/observability/instruments/render-instruments.ts +0 -32
  1177. package/src/src/observability/instruments/rsc-instruments.ts +0 -65
  1178. package/src/src/observability/log-buffer.ts +0 -217
  1179. package/src/src/observability/metrics/config.ts +0 -96
  1180. package/src/src/observability/metrics/index.ts +0 -142
  1181. package/src/src/observability/metrics/manager.ts +0 -134
  1182. package/src/src/observability/metrics/recorder.ts +0 -139
  1183. package/src/src/observability/metrics/types.ts +0 -81
  1184. package/src/src/observability/request-profiler.ts +0 -140
  1185. package/src/src/observability/simple-metrics/index.ts +0 -88
  1186. package/src/src/observability/simple-metrics/metrics-recorder.ts +0 -327
  1187. package/src/src/observability/simple-metrics/metrics-state.ts +0 -135
  1188. package/src/src/observability/simple-metrics/observability-loader.ts +0 -53
  1189. package/src/src/observability/simple-metrics/otel-instruments.ts +0 -93
  1190. package/src/src/observability/simple-metrics/types.ts +0 -81
  1191. package/src/src/observability/tracing/api-shim.ts +0 -409
  1192. package/src/src/observability/tracing/config.ts +0 -77
  1193. package/src/src/observability/tracing/context-propagation.ts +0 -88
  1194. package/src/src/observability/tracing/index.ts +0 -134
  1195. package/src/src/observability/tracing/manager.ts +0 -129
  1196. package/src/src/observability/tracing/otlp-setup.ts +0 -251
  1197. package/src/src/observability/tracing/service-tracer.ts +0 -267
  1198. package/src/src/observability/tracing/span-names.ts +0 -111
  1199. package/src/src/observability/tracing/span-operations.ts +0 -102
  1200. package/src/src/observability/tracing/types.ts +0 -47
  1201. package/src/src/platform/adapters/base.ts +0 -186
  1202. package/src/src/platform/adapters/bun.ts +0 -20
  1203. package/src/src/platform/adapters/deno.ts +0 -1
  1204. package/src/src/platform/adapters/detect.ts +0 -84
  1205. package/src/src/platform/adapters/fallback-wrapper.ts +0 -146
  1206. package/src/src/platform/adapters/fs/cache/file-cache.ts +0 -420
  1207. package/src/src/platform/adapters/fs/cache/size-estimator.ts +0 -7
  1208. package/src/src/platform/adapters/fs/cache/types.ts +0 -20
  1209. package/src/src/platform/adapters/fs/factory.ts +0 -70
  1210. package/src/src/platform/adapters/fs/github/adapter.ts +0 -152
  1211. package/src/src/platform/adapters/fs/github/directory-operations.ts +0 -61
  1212. package/src/src/platform/adapters/fs/github/github-api-client.ts +0 -230
  1213. package/src/src/platform/adapters/fs/github/index.ts +0 -34
  1214. package/src/src/platform/adapters/fs/github/path-utils.ts +0 -9
  1215. package/src/src/platform/adapters/fs/github/read-operations.ts +0 -175
  1216. package/src/src/platform/adapters/fs/github/schemas/github-api.schema.ts +0 -89
  1217. package/src/src/platform/adapters/fs/github/schemas/index.ts +0 -19
  1218. package/src/src/platform/adapters/fs/github/stat-operations.ts +0 -266
  1219. package/src/src/platform/adapters/fs/github/types.ts +0 -109
  1220. package/src/src/platform/adapters/fs/index.ts +0 -33
  1221. package/src/src/platform/adapters/fs/integration.ts +0 -99
  1222. package/src/src/platform/adapters/fs/shared-types.ts +0 -11
  1223. package/src/src/platform/adapters/fs/veryfront/adapter-content-context.ts +0 -149
  1224. package/src/src/platform/adapters/fs/veryfront/adapter-helpers.ts +0 -43
  1225. package/src/src/platform/adapters/fs/veryfront/adapter.ts +0 -774
  1226. package/src/src/platform/adapters/fs/veryfront/api-search-circuit-breaker.ts +0 -30
  1227. package/src/src/platform/adapters/fs/veryfront/base-operations.ts +0 -13
  1228. package/src/src/platform/adapters/fs/veryfront/cache-keys.ts +0 -41
  1229. package/src/src/platform/adapters/fs/veryfront/content-metrics.ts +0 -208
  1230. package/src/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.ts +0 -66
  1231. package/src/src/platform/adapters/fs/veryfront/directory-operations.ts +0 -162
  1232. package/src/src/platform/adapters/fs/veryfront/extension-priority.ts +0 -18
  1233. package/src/src/platform/adapters/fs/veryfront/file-list-access.ts +0 -109
  1234. package/src/src/platform/adapters/fs/veryfront/file-list-index.ts +0 -259
  1235. package/src/src/platform/adapters/fs/veryfront/in-flight-dedupe.ts +0 -63
  1236. package/src/src/platform/adapters/fs/veryfront/index.ts +0 -8
  1237. package/src/src/platform/adapters/fs/veryfront/invalidation-state.ts +0 -130
  1238. package/src/src/platform/adapters/fs/veryfront/multi-project-adapter.ts +0 -266
  1239. package/src/src/platform/adapters/fs/veryfront/path-normalizer.ts +0 -40
  1240. package/src/src/platform/adapters/fs/veryfront/proxy-manager.ts +0 -621
  1241. package/src/src/platform/adapters/fs/veryfront/read-operations-helpers.ts +0 -111
  1242. package/src/src/platform/adapters/fs/veryfront/read-operations.ts +0 -778
  1243. package/src/src/platform/adapters/fs/veryfront/request-context.ts +0 -100
  1244. package/src/src/platform/adapters/fs/veryfront/retry.ts +0 -62
  1245. package/src/src/platform/adapters/fs/veryfront/schemas/index.ts +0 -7
  1246. package/src/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.ts +0 -16
  1247. package/src/src/platform/adapters/fs/veryfront/stat-operations-helpers.ts +0 -74
  1248. package/src/src/platform/adapters/fs/veryfront/stat-operations.ts +0 -556
  1249. package/src/src/platform/adapters/fs/veryfront/types.ts +0 -142
  1250. package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +0 -94
  1251. package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +0 -893
  1252. package/src/src/platform/adapters/fs/wrapper.ts +0 -264
  1253. package/src/src/platform/adapters/mock.ts +0 -185
  1254. package/src/src/platform/adapters/node.ts +0 -18
  1255. package/src/src/platform/adapters/redis/deno.ts +0 -120
  1256. package/src/src/platform/adapters/redis/index.ts +0 -21
  1257. package/src/src/platform/adapters/redis/interface.ts +0 -42
  1258. package/src/src/platform/adapters/redis/modules.ts +0 -54
  1259. package/src/src/platform/adapters/redis/node.ts +0 -127
  1260. package/src/src/platform/adapters/redis/types.ts +0 -84
  1261. package/src/src/platform/adapters/redis/utils.ts +0 -14
  1262. package/src/src/platform/adapters/registry.ts +0 -202
  1263. package/src/src/platform/adapters/runtime/bun/adapter.ts +0 -42
  1264. package/src/src/platform/adapters/runtime/bun/environment-adapter.ts +0 -17
  1265. package/src/src/platform/adapters/runtime/bun/filesystem-adapter.ts +0 -203
  1266. package/src/src/platform/adapters/runtime/bun/http-server.ts +0 -45
  1267. package/src/src/platform/adapters/runtime/bun/index.ts +0 -20
  1268. package/src/src/platform/adapters/runtime/bun/types.ts +0 -45
  1269. package/src/src/platform/adapters/runtime/bun/websocket-adapter.ts +0 -47
  1270. package/src/src/platform/adapters/runtime/deno/adapter.ts +0 -458
  1271. package/src/src/platform/adapters/runtime/deno/index.ts +0 -7
  1272. package/src/src/platform/adapters/runtime/node/adapter.ts +0 -42
  1273. package/src/src/platform/adapters/runtime/node/environment-adapter.ts +0 -17
  1274. package/src/src/platform/adapters/runtime/node/filesystem-adapter.ts +0 -147
  1275. package/src/src/platform/adapters/runtime/node/http-server.ts +0 -196
  1276. package/src/src/platform/adapters/runtime/node/index.ts +0 -18
  1277. package/src/src/platform/adapters/runtime/node/types.ts +0 -42
  1278. package/src/src/platform/adapters/runtime/node/websocket-adapter.ts +0 -191
  1279. package/src/src/platform/adapters/runtime/shared/env-to-object.ts +0 -10
  1280. package/src/src/platform/adapters/runtime/shared/node-based-shell-adapter.ts +0 -32
  1281. package/src/src/platform/adapters/runtime/shared/server-lifecycle.ts +0 -31
  1282. package/src/src/platform/adapters/runtime/shared/shared-watcher.ts +0 -59
  1283. package/src/src/platform/adapters/runtime/shared/temp-dir.ts +0 -6
  1284. package/src/src/platform/adapters/runtime/shared/watcher-queue.ts +0 -63
  1285. package/src/src/platform/adapters/runtime-detection.ts +0 -10
  1286. package/src/src/platform/adapters/veryfront-api-client/client.ts +0 -512
  1287. package/src/src/platform/adapters/veryfront-api-client/index.ts +0 -50
  1288. package/src/src/platform/adapters/veryfront-api-client/operations.ts +0 -576
  1289. package/src/src/platform/adapters/veryfront-api-client/retry-handler.ts +0 -158
  1290. package/src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts +0 -320
  1291. package/src/src/platform/adapters/veryfront-api-client/schemas/index.ts +0 -41
  1292. package/src/src/platform/adapters/veryfront-api-client/types.ts +0 -33
  1293. package/src/src/platform/cloud/resolver.ts +0 -149
  1294. package/src/src/platform/compat/console/deno.ts +0 -51
  1295. package/src/src/platform/compat/console/index.ts +0 -90
  1296. package/src/src/platform/compat/console/node.ts +0 -61
  1297. package/src/src/platform/compat/console/types.ts +0 -18
  1298. package/src/src/platform/compat/constants.ts +0 -14
  1299. package/src/src/platform/compat/dynamic-import.ts +0 -15
  1300. package/src/src/platform/compat/esbuild-init.ts +0 -77
  1301. package/src/src/platform/compat/esbuild-shared.ts +0 -22
  1302. package/src/src/platform/compat/esbuild.ts +0 -53
  1303. package/src/src/platform/compat/framework-source-resolver.ts +0 -221
  1304. package/src/src/platform/compat/fs.ts +0 -354
  1305. package/src/src/platform/compat/http/deno-server.ts +0 -55
  1306. package/src/src/platform/compat/http/factory.ts +0 -12
  1307. package/src/src/platform/compat/http/index.ts +0 -45
  1308. package/src/src/platform/compat/http/node-server.ts +0 -103
  1309. package/src/src/platform/compat/http/node-types.ts +0 -34
  1310. package/src/src/platform/compat/http/request-adapter.ts +0 -16
  1311. package/src/src/platform/compat/http/responses.ts +0 -227
  1312. package/src/src/platform/compat/http/types.ts +0 -23
  1313. package/src/src/platform/compat/http/websocket.ts +0 -34
  1314. package/src/src/platform/compat/kv/factory.ts +0 -60
  1315. package/src/src/platform/compat/kv/index.ts +0 -10
  1316. package/src/src/platform/compat/kv/memory-adapter.ts +0 -68
  1317. package/src/src/platform/compat/kv/sqlite-adapter.ts +0 -113
  1318. package/src/src/platform/compat/kv/types.ts +0 -31
  1319. package/src/src/platform/compat/media-types.ts +0 -27
  1320. package/src/src/platform/compat/opaque-deps.ts +0 -70
  1321. package/src/src/platform/compat/path/basic-operations.ts +0 -59
  1322. package/src/src/platform/compat/path/index.ts +0 -15
  1323. package/src/src/platform/compat/path/parse-format.ts +0 -33
  1324. package/src/src/platform/compat/path/resolution.ts +0 -136
  1325. package/src/src/platform/compat/path/runtime.ts +0 -26
  1326. package/src/src/platform/compat/path/security.ts +0 -29
  1327. package/src/src/platform/compat/path/types.ts +0 -22
  1328. package/src/src/platform/compat/path/url-conversion.ts +0 -58
  1329. package/src/src/platform/compat/process/command.ts +0 -297
  1330. package/src/src/platform/compat/process/env.ts +0 -227
  1331. package/src/src/platform/compat/process/lifecycle.ts +0 -330
  1332. package/src/src/platform/compat/process/runtime-process.ts +0 -27
  1333. package/src/src/platform/compat/process.ts +0 -37
  1334. package/src/src/platform/compat/react-paths.ts +0 -84
  1335. package/src/src/platform/compat/runtime.ts +0 -112
  1336. package/src/src/platform/compat/std/dotenv.ts +0 -87
  1337. package/src/src/platform/compat/std/front-matter-yaml.ts +0 -39
  1338. package/src/src/platform/compat/stdin.ts +0 -271
  1339. package/src/src/platform/compat/transform.ts +0 -44
  1340. package/src/src/platform/compat/vfs-paths.ts +0 -59
  1341. package/src/src/platform/core-platform.ts +0 -199
  1342. package/src/src/platform/environment.ts +0 -35
  1343. package/src/src/platform/index.ts +0 -73
  1344. package/src/src/prompt/factory.ts +0 -59
  1345. package/src/src/prompt/index.ts +0 -22
  1346. package/src/src/prompt/registry.ts +0 -29
  1347. package/src/src/prompt/schemas/prompt.schema.ts +0 -15
  1348. package/src/src/prompt/types.ts +0 -9
  1349. package/src/src/provider/index.ts +0 -55
  1350. package/src/src/provider/local/embedding-runtime-adapter.ts +0 -37
  1351. package/src/src/provider/local/env.ts +0 -37
  1352. package/src/src/provider/local/local-embedding-engine.ts +0 -93
  1353. package/src/src/provider/local/local-engine.ts +0 -317
  1354. package/src/src/provider/local/model-catalog.ts +0 -139
  1355. package/src/src/provider/local/model-runtime-adapter.ts +0 -202
  1356. package/src/src/provider/model-registry.ts +0 -369
  1357. package/src/src/provider/runtime-inspection.ts +0 -25
  1358. package/src/src/provider/runtime-loader/provider-embedding-responses.ts +0 -61
  1359. package/src/src/provider/runtime-loader/provider-endpoints.ts +0 -50
  1360. package/src/src/provider/runtime-loader/provider-http.ts +0 -207
  1361. package/src/src/provider/runtime-loader/provider-records.ts +0 -7
  1362. package/src/src/provider/runtime-loader/provider-request-init.ts +0 -101
  1363. package/src/src/provider/runtime-loader/provider-sse.ts +0 -29
  1364. package/src/src/provider/runtime-loader/provider-usage.ts +0 -135
  1365. package/src/src/provider/runtime-loader/tool-input-status.ts +0 -242
  1366. package/src/src/provider/runtime-loader.ts +0 -517
  1367. package/src/src/provider/shared/index.ts +0 -70
  1368. package/src/src/provider/types.ts +0 -40
  1369. package/src/src/provider/veryfront-cloud/context.ts +0 -28
  1370. package/src/src/provider/veryfront-cloud/model-catalog.ts +0 -224
  1371. package/src/src/provider/veryfront-cloud/openai.ts +0 -34
  1372. package/src/src/provider/veryfront-cloud/provider.ts +0 -82
  1373. package/src/src/provider/veryfront-cloud/shared.ts +0 -139
  1374. package/src/src/proxy/cache/index.ts +0 -78
  1375. package/src/src/proxy/cache/memory-cache.ts +0 -136
  1376. package/src/src/proxy/cache/resilient-cache.ts +0 -204
  1377. package/src/src/proxy/cache/tracing-cache.ts +0 -77
  1378. package/src/src/proxy/cache/types.ts +0 -48
  1379. package/src/src/proxy/env.ts +0 -11
  1380. package/src/src/proxy/error-response.ts +0 -32
  1381. package/src/src/proxy/handler.ts +0 -905
  1382. package/src/src/proxy/log-noise.ts +0 -42
  1383. package/src/src/proxy/logger.ts +0 -406
  1384. package/src/src/proxy/main.ts +0 -624
  1385. package/src/src/proxy/oauth-client.ts +0 -93
  1386. package/src/src/proxy/renderer-router.ts +0 -126
  1387. package/src/src/proxy/retry.ts +0 -19
  1388. package/src/src/proxy/server-resolver.ts +0 -151
  1389. package/src/src/proxy/token-manager.ts +0 -193
  1390. package/src/src/proxy/tracing.ts +0 -203
  1391. package/src/src/proxy/version.ts +0 -21
  1392. package/src/src/react/compat/config-generator.ts +0 -161
  1393. package/src/src/react/compat/hooks-adapter.ts +0 -241
  1394. package/src/src/react/compat/index.ts +0 -50
  1395. package/src/src/react/compat/ssr-adapter/html-wrapper.ts +0 -40
  1396. package/src/src/react/compat/ssr-adapter/index.ts +0 -13
  1397. package/src/src/react/compat/ssr-adapter/response-builder.ts +0 -44
  1398. package/src/src/react/compat/ssr-adapter/server-loader.ts +0 -98
  1399. package/src/src/react/compat/ssr-adapter/stream-renderer.ts +0 -248
  1400. package/src/src/react/compat/ssr-adapter/string-renderer.ts +0 -75
  1401. package/src/src/react/compat/ssr-adapter/types.ts +0 -36
  1402. package/src/src/react/compat/version-detector/compatibility-checker.ts +0 -55
  1403. package/src/src/react/compat/version-detector/feature-detector.ts +0 -92
  1404. package/src/src/react/compat/version-detector/index.ts +0 -22
  1405. package/src/src/react/compat/version-detector/types.ts +0 -42
  1406. package/src/src/react/compat/version-detector/version-cache.ts +0 -36
  1407. package/src/src/react/compat/version-detector/version-parser.ts +0 -33
  1408. package/src/src/react/components/AppWrapper.tsx +0 -44
  1409. package/src/src/react/components/Head.tsx +0 -12
  1410. package/src/src/react/components/LayoutComponent.tsx +0 -62
  1411. package/src/src/react/components/MDXProvider.tsx +0 -21
  1412. package/src/src/react/components/ProviderComponent.tsx +0 -58
  1413. package/src/src/react/components/chat/agent-card.tsx +0 -162
  1414. package/src/src/react/components/chat/chat/components/animations.tsx +0 -62
  1415. package/src/src/react/components/chat/chat/components/attachment-pill.tsx +0 -110
  1416. package/src/src/react/components/chat/chat/components/branch-picker.tsx +0 -70
  1417. package/src/src/react/components/chat/chat/components/code-block.tsx +0 -83
  1418. package/src/src/react/components/chat/chat/components/drop-zone.tsx +0 -49
  1419. package/src/src/react/components/chat/chat/components/empty-state.tsx +0 -121
  1420. package/src/src/react/components/chat/chat/components/inference-badge.tsx +0 -48
  1421. package/src/src/react/components/chat/chat/components/inline-citation.tsx +0 -150
  1422. package/src/src/react/components/chat/chat/components/message-actions.tsx +0 -88
  1423. package/src/src/react/components/chat/chat/components/message-edit-form.tsx +0 -95
  1424. package/src/src/react/components/chat/chat/components/message-feedback.tsx +0 -72
  1425. package/src/src/react/components/chat/chat/components/quick-actions.tsx +0 -38
  1426. package/src/src/react/components/chat/chat/components/reasoning.tsx +0 -56
  1427. package/src/src/react/components/chat/chat/components/sidebar.tsx +0 -204
  1428. package/src/src/react/components/chat/chat/components/skill-badge.tsx +0 -51
  1429. package/src/src/react/components/chat/chat/components/sources.tsx +0 -99
  1430. package/src/src/react/components/chat/chat/components/step-indicator.tsx +0 -33
  1431. package/src/src/react/components/chat/chat/components/tab-switcher.tsx +0 -69
  1432. package/src/src/react/components/chat/chat/components/tool-ui.tsx +0 -204
  1433. package/src/src/react/components/chat/chat/components/upgrade-cta.tsx +0 -56
  1434. package/src/src/react/components/chat/chat/components/uploads-panel.tsx +0 -143
  1435. package/src/src/react/components/chat/chat/composition/api.tsx +0 -17
  1436. package/src/src/react/components/chat/chat/composition/chat-composer.tsx +0 -205
  1437. package/src/src/react/components/chat/chat/composition/chat-empty.tsx +0 -77
  1438. package/src/src/react/components/chat/chat/composition/chat-if.tsx +0 -25
  1439. package/src/src/react/components/chat/chat/composition/chat-message-list.tsx +0 -356
  1440. package/src/src/react/components/chat/chat/composition/chat-root.tsx +0 -183
  1441. package/src/src/react/components/chat/chat/composition/error-banner.tsx +0 -38
  1442. package/src/src/react/components/chat/chat/composition/message.tsx +0 -343
  1443. package/src/src/react/components/chat/chat/composition/model-avatar.tsx +0 -103
  1444. package/src/src/react/components/chat/chat/contexts/chat-context.tsx +0 -81
  1445. package/src/src/react/components/chat/chat/contexts/composer-context.tsx +0 -62
  1446. package/src/src/react/components/chat/chat/contexts/index.ts +0 -36
  1447. package/src/src/react/components/chat/chat/contexts/message-context.tsx +0 -52
  1448. package/src/src/react/components/chat/chat/contexts/thread-list-context.tsx +0 -43
  1449. package/src/src/react/components/chat/chat/hooks/use-threads.ts +0 -208
  1450. package/src/src/react/components/chat/chat/index.tsx +0 -529
  1451. package/src/src/react/components/chat/chat/utils/export.ts +0 -75
  1452. package/src/src/react/components/chat/chat/utils/message-parts.ts +0 -151
  1453. package/src/src/react/components/chat/chat-with-sidebar.tsx +0 -373
  1454. package/src/src/react/components/chat/chat.tsx +0 -146
  1455. package/src/src/react/components/chat/csp-nonce.ts +0 -13
  1456. package/src/src/react/components/chat/error-boundary.tsx +0 -108
  1457. package/src/src/react/components/chat/icons/index.ts +0 -328
  1458. package/src/src/react/components/chat/markdown.tsx +0 -284
  1459. package/src/src/react/components/chat/message.tsx +0 -166
  1460. package/src/src/react/components/chat/model-selector.tsx +0 -262
  1461. package/src/src/react/components/chat/theme.ts +0 -325
  1462. package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +0 -40
  1463. package/src/src/react/components/optimized-image/OptimizedImage.tsx +0 -81
  1464. package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +0 -43
  1465. package/src/src/react/components/optimized-image/helpers.ts +0 -29
  1466. package/src/src/react/components/optimized-image/index.ts +0 -12
  1467. package/src/src/react/components/optimized-image/useOptimizedImage.ts +0 -32
  1468. package/src/src/react/components/optimized-image/utils.tsx +0 -53
  1469. package/src/src/react/context/index.tsx +0 -13
  1470. package/src/src/react/fonts/index.ts +0 -103
  1471. package/src/src/react/head-collector.ts +0 -143
  1472. package/src/src/react/index.ts +0 -99
  1473. package/src/src/react/primitives/agent-primitives.tsx +0 -87
  1474. package/src/src/react/primitives/chat-container.tsx +0 -17
  1475. package/src/src/react/primitives/index.ts +0 -41
  1476. package/src/src/react/primitives/input-box.tsx +0 -226
  1477. package/src/src/react/primitives/message-list.tsx +0 -83
  1478. package/src/src/react/primitives/tool-primitives.tsx +0 -120
  1479. package/src/src/react/router/index.tsx +0 -13
  1480. package/src/src/react/runtime/core.ts +0 -303
  1481. package/src/src/registry/project-scoped-registry-manager.ts +0 -211
  1482. package/src/src/registry/scoped-registry-facade.ts +0 -51
  1483. package/src/src/rendering/app-reserved.ts +0 -109
  1484. package/src/src/rendering/app-route-resolver.ts +0 -170
  1485. package/src/src/rendering/cache/cache-coordinator.ts +0 -195
  1486. package/src/src/rendering/cache/index.ts +0 -24
  1487. package/src/src/rendering/cache/stores/api-store.ts +0 -222
  1488. package/src/src/rendering/cache/stores/filesystem-store.ts +0 -114
  1489. package/src/src/rendering/cache/stores/index.ts +0 -11
  1490. package/src/src/rendering/cache/stores/kv-store.ts +0 -103
  1491. package/src/src/rendering/cache/stores/memory-store.ts +0 -97
  1492. package/src/src/rendering/cache/stores/redis-store.ts +0 -267
  1493. package/src/src/rendering/cache/types.ts +0 -21
  1494. package/src/src/rendering/chunk-optimizer.ts +0 -273
  1495. package/src/src/rendering/cleanup.ts +0 -27
  1496. package/src/src/rendering/component-handling.ts +0 -172
  1497. package/src/src/rendering/context/render-context.ts +0 -143
  1498. package/src/src/rendering/element-validator/element-inspector.ts +0 -190
  1499. package/src/src/rendering/element-validator/element-normalizer.ts +0 -73
  1500. package/src/src/rendering/element-validator/index.ts +0 -18
  1501. package/src/src/rendering/element-validator/primitive-checks.ts +0 -124
  1502. package/src/src/rendering/element-validator/types.ts +0 -15
  1503. package/src/src/rendering/element-validator/validator-core.ts +0 -46
  1504. package/src/src/rendering/factories/service-factories.ts +0 -112
  1505. package/src/src/rendering/index.ts +0 -49
  1506. package/src/src/rendering/layouts/index.ts +0 -26
  1507. package/src/src/rendering/layouts/layout-applicator.ts +0 -468
  1508. package/src/src/rendering/layouts/layout-collector.ts +0 -401
  1509. package/src/src/rendering/layouts/layout-compiler.ts +0 -75
  1510. package/src/src/rendering/layouts/types.ts +0 -16
  1511. package/src/src/rendering/layouts/utils/app-resolver.ts +0 -71
  1512. package/src/src/rendering/layouts/utils/applicator.ts +0 -228
  1513. package/src/src/rendering/layouts/utils/compiler.ts +0 -30
  1514. package/src/src/rendering/layouts/utils/component-loader.ts +0 -273
  1515. package/src/src/rendering/layouts/utils/discovery.ts +0 -243
  1516. package/src/src/rendering/layouts/utils/ensure-valid-child.ts +0 -51
  1517. package/src/src/rendering/layouts/utils/hash-calculator.ts +0 -51
  1518. package/src/src/rendering/orchestrator/compiler-service.ts +0 -37
  1519. package/src/src/rendering/orchestrator/config.ts +0 -120
  1520. package/src/src/rendering/orchestrator/css-cache.ts +0 -81
  1521. package/src/src/rendering/orchestrator/css-candidate-manifest.ts +0 -224
  1522. package/src/src/rendering/orchestrator/file-resolver/candidates.ts +0 -25
  1523. package/src/src/rendering/orchestrator/file-resolver/index.ts +0 -84
  1524. package/src/src/rendering/orchestrator/html-head.ts +0 -74
  1525. package/src/src/rendering/orchestrator/html-imported-css.ts +0 -81
  1526. package/src/src/rendering/orchestrator/html-project-css.ts +0 -203
  1527. package/src/src/rendering/orchestrator/html-types.ts +0 -27
  1528. package/src/src/rendering/orchestrator/html.ts +0 -487
  1529. package/src/src/rendering/orchestrator/layout.ts +0 -321
  1530. package/src/src/rendering/orchestrator/lifecycle.ts +0 -297
  1531. package/src/src/rendering/orchestrator/mdx.ts +0 -78
  1532. package/src/src/rendering/orchestrator/module-collection.ts +0 -73
  1533. package/src/src/rendering/orchestrator/module-loader/cache.ts +0 -29
  1534. package/src/src/rendering/orchestrator/module-loader/esm-rewriter.ts +0 -102
  1535. package/src/src/rendering/orchestrator/module-loader/index.ts +0 -569
  1536. package/src/src/rendering/orchestrator/path-helpers.ts +0 -26
  1537. package/src/src/rendering/orchestrator/pipeline-helpers.ts +0 -35
  1538. package/src/src/rendering/orchestrator/pipeline.ts +0 -889
  1539. package/src/src/rendering/orchestrator/ssr-orchestrator.ts +0 -278
  1540. package/src/src/rendering/orchestrator/ssr.ts +0 -228
  1541. package/src/src/rendering/orchestrator/types.ts +0 -92
  1542. package/src/src/rendering/page-renderer.ts +0 -252
  1543. package/src/src/rendering/page-rendering.ts +0 -182
  1544. package/src/src/rendering/page-resolution/index.ts +0 -21
  1545. package/src/src/rendering/page-resolution/page-resolver.ts +0 -238
  1546. package/src/src/rendering/renderer-concurrency.ts +0 -195
  1547. package/src/src/rendering/renderer.ts +0 -593
  1548. package/src/src/rendering/router-detection.ts +0 -247
  1549. package/src/src/rendering/rsc/client-module-strategy.ts +0 -100
  1550. package/src/src/rendering/rsc/component-analyzer.ts +0 -148
  1551. package/src/src/rendering/rsc/constants.ts +0 -6
  1552. package/src/src/rendering/rsc/export-extractor.ts +0 -44
  1553. package/src/src/rendering/rsc/production-optimizer.ts +0 -128
  1554. package/src/src/rendering/rsc/server-action-guard.ts +0 -5
  1555. package/src/src/rendering/rsc/server-renderer/component-detector.ts +0 -47
  1556. package/src/src/rendering/rsc/server-renderer/html-generator.ts +0 -50
  1557. package/src/src/rendering/rsc/server-renderer/index.ts +0 -18
  1558. package/src/src/rendering/rsc/server-renderer/prop-serializer.ts +0 -69
  1559. package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +0 -47
  1560. package/src/src/rendering/rsc/server-renderer/tree-processor.ts +0 -126
  1561. package/src/src/rendering/rsc/types.ts +0 -8
  1562. package/src/src/rendering/script-page-handling.ts +0 -392
  1563. package/src/src/rendering/shared/context-aware-cache.ts +0 -281
  1564. package/src/src/rendering/shared/shared-services.ts +0 -112
  1565. package/src/src/rendering/snippet-renderer.ts +0 -386
  1566. package/src/src/rendering/ssr/component-registry.ts +0 -326
  1567. package/src/src/rendering/ssr/index.ts +0 -10
  1568. package/src/src/rendering/ssr/mdx-module-loader.ts +0 -185
  1569. package/src/src/rendering/ssr/mdx-renderer.ts +0 -66
  1570. package/src/src/rendering/ssr/types.ts +0 -14
  1571. package/src/src/rendering/ssr-globals/context.ts +0 -70
  1572. package/src/src/rendering/ssr-globals/dom-stubs.ts +0 -435
  1573. package/src/src/rendering/ssr-globals/fetch-interceptor.ts +0 -123
  1574. package/src/src/rendering/ssr-globals/index.ts +0 -79
  1575. package/src/src/rendering/ssr-globals.ts +0 -13
  1576. package/src/src/rendering/ssr-renderer.ts +0 -258
  1577. package/src/src/rendering/styles.ts +0 -15
  1578. package/src/src/rendering/utils/index.ts +0 -22
  1579. package/src/src/rendering/utils/react-helpers.ts +0 -31
  1580. package/src/src/rendering/utils/stream-utils.ts +0 -129
  1581. package/src/src/rendering/virtual-module-system.ts +0 -106
  1582. package/src/src/repositories/schemas/index.ts +0 -14
  1583. package/src/src/repositories/schemas/repository.schema.ts +0 -41
  1584. package/src/src/repositories/types.ts +0 -26
  1585. package/src/src/resource/factory.ts +0 -64
  1586. package/src/src/resource/index.ts +0 -30
  1587. package/src/src/resource/registry.ts +0 -41
  1588. package/src/src/resource/schemas/index.ts +0 -14
  1589. package/src/src/resource/schemas/resource.schema.ts +0 -21
  1590. package/src/src/resource/types.ts +0 -36
  1591. package/src/src/routing/api/api-route-matcher.ts +0 -196
  1592. package/src/src/routing/api/context-builder.ts +0 -69
  1593. package/src/src/routing/api/handler.ts +0 -341
  1594. package/src/src/routing/api/index.ts +0 -26
  1595. package/src/src/routing/api/method-validator.ts +0 -26
  1596. package/src/src/routing/api/module-loader/esbuild-plugin.ts +0 -192
  1597. package/src/src/routing/api/module-loader/external-import-rewriter.ts +0 -461
  1598. package/src/src/routing/api/module-loader/http-validator.ts +0 -38
  1599. package/src/src/routing/api/module-loader/loader-helpers.ts +0 -68
  1600. package/src/src/routing/api/module-loader/loader.ts +0 -672
  1601. package/src/src/routing/api/module-loader/security-config.ts +0 -28
  1602. package/src/src/routing/api/module-loader/types.ts +0 -36
  1603. package/src/src/routing/api/openapi/path-utils.ts +0 -132
  1604. package/src/src/routing/api/openapi/spec-generator.ts +0 -265
  1605. package/src/src/routing/api/openapi/types.ts +0 -135
  1606. package/src/src/routing/api/route-discovery.ts +0 -70
  1607. package/src/src/routing/api/route-executor.ts +0 -450
  1608. package/src/src/routing/client/dom-utils.ts +0 -174
  1609. package/src/src/routing/client/index.ts +0 -33
  1610. package/src/src/routing/client/navigation-handlers.ts +0 -127
  1611. package/src/src/routing/client/page-loader.ts +0 -215
  1612. package/src/src/routing/client/page-transition.ts +0 -99
  1613. package/src/src/routing/client/types.ts +0 -39
  1614. package/src/src/routing/client/viewport-prefetch.ts +0 -81
  1615. package/src/src/routing/index.ts +0 -54
  1616. package/src/src/routing/matchers/index.ts +0 -11
  1617. package/src/src/routing/matchers/pattern-route-matcher.ts +0 -46
  1618. package/src/src/routing/matchers/route-matcher.ts +0 -41
  1619. package/src/src/routing/matchers/route-parser.ts +0 -69
  1620. package/src/src/routing/matchers/types.ts +0 -13
  1621. package/src/src/routing/registry/index.ts +0 -7
  1622. package/src/src/routing/registry/registry.ts +0 -161
  1623. package/src/src/routing/registry/types.ts +0 -7
  1624. package/src/src/routing/slug-mapper/dynamic-route-matcher.ts +0 -54
  1625. package/src/src/routing/slug-mapper/index.ts +0 -11
  1626. package/src/src/routing/slug-mapper/path-candidate-generator.ts +0 -58
  1627. package/src/src/routing/slug-mapper/slug-normalizer.ts +0 -25
  1628. package/src/src/routing/slug-mapper/types.ts +0 -8
  1629. package/src/src/runtime/runtime-bridge.ts +0 -614
  1630. package/src/src/sandbox/agent-service-tools.ts +0 -184
  1631. package/src/src/sandbox/config.ts +0 -20
  1632. package/src/src/sandbox/index.ts +0 -68
  1633. package/src/src/sandbox/lazy-sandbox.ts +0 -736
  1634. package/src/src/sandbox/sandbox.ts +0 -454
  1635. package/src/src/sandbox/shell-tools.ts +0 -217
  1636. package/src/src/sandbox/types.ts +0 -95
  1637. package/src/src/schemas/common.ts +0 -99
  1638. package/src/src/schemas/define.ts +0 -45
  1639. package/src/src/schemas/index.ts +0 -65
  1640. package/src/src/schemas/json-schema.ts +0 -33
  1641. package/src/src/schemas/lazy.ts +0 -65
  1642. package/src/src/schemas/primitives.ts +0 -84
  1643. package/src/src/security/client/html-sanitizer.ts +0 -120
  1644. package/src/src/security/csrf/helpers.ts +0 -144
  1645. package/src/src/security/csrf/index.ts +0 -8
  1646. package/src/src/security/deno-permissions.ts +0 -55
  1647. package/src/src/security/http/auth.ts +0 -129
  1648. package/src/src/security/http/base-handler.ts +0 -183
  1649. package/src/src/security/http/client-hints.ts +0 -41
  1650. package/src/src/security/http/config.ts +0 -96
  1651. package/src/src/security/http/cors/constants.ts +0 -6
  1652. package/src/src/security/http/cors/headers.ts +0 -80
  1653. package/src/src/security/http/cors/index.ts +0 -36
  1654. package/src/src/security/http/cors/middleware.ts +0 -42
  1655. package/src/src/security/http/cors/preflight.ts +0 -86
  1656. package/src/src/security/http/cors/types.ts +0 -30
  1657. package/src/src/security/http/cors/validators.ts +0 -191
  1658. package/src/src/security/http/csrf/csrf-handler.ts +0 -101
  1659. package/src/src/security/http/csrf/index.ts +0 -7
  1660. package/src/src/security/http/middleware/config-loader.ts +0 -61
  1661. package/src/src/security/http/middleware/cors-handler.ts +0 -21
  1662. package/src/src/security/http/middleware/index.ts +0 -16
  1663. package/src/src/security/http/middleware/types.ts +0 -29
  1664. package/src/src/security/http/response/builder.ts +0 -62
  1665. package/src/src/security/http/response/cache-handler.ts +0 -34
  1666. package/src/src/security/http/response/constants.ts +0 -15
  1667. package/src/src/security/http/response/fluent-methods.ts +0 -137
  1668. package/src/src/security/http/response/index.ts +0 -11
  1669. package/src/src/security/http/response/response-methods.ts +0 -85
  1670. package/src/src/security/http/response/security-handler.ts +0 -225
  1671. package/src/src/security/http/response/static-helpers.ts +0 -150
  1672. package/src/src/security/http/response/types.ts +0 -33
  1673. package/src/src/security/index.ts +0 -100
  1674. package/src/src/security/input-validation/errors.ts +0 -17
  1675. package/src/src/security/input-validation/handler.ts +0 -47
  1676. package/src/src/security/input-validation/index.ts +0 -18
  1677. package/src/src/security/input-validation/limits.ts +0 -110
  1678. package/src/src/security/input-validation/parsers.ts +0 -104
  1679. package/src/src/security/input-validation/sanitizers.ts +0 -48
  1680. package/src/src/security/input-validation/types.ts +0 -34
  1681. package/src/src/security/path-validation/canonical.ts +0 -63
  1682. package/src/src/security/path-validation/index.ts +0 -156
  1683. package/src/src/security/path-validation/normalization.ts +0 -62
  1684. package/src/src/security/path-validation/presets.ts +0 -73
  1685. package/src/src/security/path-validation/rules.ts +0 -67
  1686. package/src/src/security/path-validation/types.ts +0 -38
  1687. package/src/src/security/path-validation.ts +0 -19
  1688. package/src/src/security/sandbox/project-worker.ts +0 -421
  1689. package/src/src/security/sandbox/worker-permissions.ts +0 -77
  1690. package/src/src/security/sandbox/worker-pool.ts +0 -466
  1691. package/src/src/security/sandbox/worker-types.ts +0 -212
  1692. package/src/src/security/secure-fs.ts +0 -322
  1693. package/src/src/security/utils/constant-time.ts +0 -15
  1694. package/src/src/server/bootstrap.ts +0 -530
  1695. package/src/src/server/build-app-route-renderer.ts +0 -148
  1696. package/src/src/server/build-routes.ts +0 -137
  1697. package/src/src/server/build-service-worker.ts +0 -170
  1698. package/src/src/server/build-types.ts +0 -48
  1699. package/src/src/server/context/cache-invalidation.ts +0 -153
  1700. package/src/src/server/context/enriched-context-types.ts +0 -65
  1701. package/src/src/server/context/enriched-context.ts +0 -58
  1702. package/src/src/server/context/request-context.ts +0 -54
  1703. package/src/src/server/dev-server/error-overlay/error-formatter.ts +0 -82
  1704. package/src/src/server/dev-server/error-overlay/html-template.ts +0 -479
  1705. package/src/src/server/dev-server/error-overlay/index.ts +0 -21
  1706. package/src/src/server/dev-server/error-overlay/overlay-renderer.ts +0 -15
  1707. package/src/src/server/dev-server/error-overlay/stack-parser.ts +0 -25
  1708. package/src/src/server/dev-server/file-watch-setup.ts +0 -276
  1709. package/src/src/server/dev-server/file-watcher.ts +0 -100
  1710. package/src/src/server/dev-server/hmr-types.ts +0 -11
  1711. package/src/src/server/dev-server/index.ts +0 -19
  1712. package/src/src/server/dev-server/middleware.ts +0 -244
  1713. package/src/src/server/dev-server/request-handler.ts +0 -186
  1714. package/src/src/server/dev-server/route-discovery.ts +0 -241
  1715. package/src/src/server/dev-server/server.ts +0 -487
  1716. package/src/src/server/dev-server/types.ts +0 -36
  1717. package/src/src/server/dev-server.ts +0 -8
  1718. package/src/src/server/dev-ui/manifest.js +0 -31
  1719. package/src/src/server/handlers/dev/dashboard/api.ts +0 -690
  1720. package/src/src/server/handlers/dev/dashboard/html-shell.ts +0 -43
  1721. package/src/src/server/handlers/dev/dashboard/index.ts +0 -59
  1722. package/src/src/server/handlers/dev/dashboard/ui-handler.ts +0 -104
  1723. package/src/src/server/handlers/dev/debug-context.handler.ts +0 -106
  1724. package/src/src/server/handlers/dev/endpoints.handler.ts +0 -58
  1725. package/src/src/server/handlers/dev/files/dev-file.handler.ts +0 -93
  1726. package/src/src/server/handlers/dev/files/esbuild-bundler.ts +0 -11
  1727. package/src/src/server/handlers/dev/files/esbuild-plugins.ts +0 -282
  1728. package/src/src/server/handlers/dev/files/index.ts +0 -12
  1729. package/src/src/server/handlers/dev/files/path-validator.ts +0 -60
  1730. package/src/src/server/handlers/dev/framework-candidates.generated.ts +0 -5458
  1731. package/src/src/server/handlers/dev/projects/api.ts +0 -34
  1732. package/src/src/server/handlers/dev/projects/html-shell.ts +0 -58
  1733. package/src/src/server/handlers/dev/projects/index.ts +0 -74
  1734. package/src/src/server/handlers/dev/projects/ui-handler.ts +0 -129
  1735. package/src/src/server/handlers/dev/scripts/error-overlay.ts +0 -100
  1736. package/src/src/server/handlers/dev/scripts/hmr-scripts.ts +0 -435
  1737. package/src/src/server/handlers/dev/shared/not-found-response.ts +0 -9
  1738. package/src/src/server/handlers/dev/shared/ui-module-transform.ts +0 -56
  1739. package/src/src/server/handlers/dev/styles-candidate-scanner.ts +0 -152
  1740. package/src/src/server/handlers/dev/styles-css.handler.ts +0 -465
  1741. package/src/src/server/handlers/monitoring/client-log.handler.ts +0 -127
  1742. package/src/src/server/handlers/monitoring/health.handler.ts +0 -96
  1743. package/src/src/server/handlers/monitoring/memory.handler.ts +0 -178
  1744. package/src/src/server/handlers/monitoring/metrics.handler.ts +0 -67
  1745. package/src/src/server/handlers/preview/hmr-client-manager.ts +0 -91
  1746. package/src/src/server/handlers/preview/hmr-client-message.ts +0 -63
  1747. package/src/src/server/handlers/preview/hmr-message-router.ts +0 -92
  1748. package/src/src/server/handlers/preview/hmr-ping-keepalive.ts +0 -49
  1749. package/src/src/server/handlers/preview/hmr.handler.ts +0 -306
  1750. package/src/src/server/handlers/preview/markdown-html-generator.ts +0 -187
  1751. package/src/src/server/handlers/preview/markdown-preview.handler.ts +0 -186
  1752. package/src/src/server/handlers/request/agent-run-cancel.handler.ts +0 -88
  1753. package/src/src/server/handlers/request/agent-run-resume.handler.ts +0 -110
  1754. package/src/src/server/handlers/request/agent-stream.handler.ts +0 -284
  1755. package/src/src/server/handlers/request/api/api-handler-wrapper.ts +0 -159
  1756. package/src/src/server/handlers/request/api/app-router-handler.ts +0 -68
  1757. package/src/src/server/handlers/request/api/app-router-resolver.ts +0 -166
  1758. package/src/src/server/handlers/request/api/index.ts +0 -12
  1759. package/src/src/server/handlers/request/api/pages-api-handler.ts +0 -111
  1760. package/src/src/server/handlers/request/api/project-discovery.ts +0 -133
  1761. package/src/src/server/handlers/request/api/security-headers.ts +0 -54
  1762. package/src/src/server/handlers/request/api/types.ts +0 -12
  1763. package/src/src/server/handlers/request/channel-dispatch-request.ts +0 -113
  1764. package/src/src/server/handlers/request/channel-invoke.handler.ts +0 -49
  1765. package/src/src/server/handlers/request/css.handler.ts +0 -106
  1766. package/src/src/server/handlers/request/internal-agents-list.handler.ts +0 -101
  1767. package/src/src/server/handlers/request/lib-modules.handler.ts +0 -124
  1768. package/src/src/server/handlers/request/module/batch-module-handler.ts +0 -37
  1769. package/src/src/server/handlers/request/module/data-endpoint-handler.ts +0 -79
  1770. package/src/src/server/handlers/request/module/index.ts +0 -14
  1771. package/src/src/server/handlers/request/module/module-server-handler.ts +0 -70
  1772. package/src/src/server/handlers/request/module/module.handler.ts +0 -94
  1773. package/src/src/server/handlers/request/module/page-data-endpoint-handler.ts +0 -108
  1774. package/src/src/server/handlers/request/module/page-module-handler.ts +0 -83
  1775. package/src/src/server/handlers/request/module/virtual-module-handler.ts +0 -58
  1776. package/src/src/server/handlers/request/openapi-docs.handler.ts +0 -91
  1777. package/src/src/server/handlers/request/openapi.handler.ts +0 -169
  1778. package/src/src/server/handlers/request/prod-hydration-module.handler.ts +0 -60
  1779. package/src/src/server/handlers/request/rsc/index.ts +0 -82
  1780. package/src/src/server/handlers/request/snippet.handler.ts +0 -137
  1781. package/src/src/server/handlers/request/ssr/error-page-fallback.ts +0 -285
  1782. package/src/src/server/handlers/request/ssr/etag-handler.ts +0 -18
  1783. package/src/src/server/handlers/request/ssr/index.ts +0 -10
  1784. package/src/src/server/handlers/request/ssr/not-found-fallback.ts +0 -105
  1785. package/src/src/server/handlers/request/ssr/ssr-response-builder.ts +0 -88
  1786. package/src/src/server/handlers/request/ssr/ssr.handler.ts +0 -303
  1787. package/src/src/server/handlers/request/static.handler.ts +0 -125
  1788. package/src/src/server/handlers/response/base.ts +0 -1
  1789. package/src/src/server/handlers/response/cors.ts +0 -67
  1790. package/src/src/server/handlers/response/not-found.ts +0 -156
  1791. package/src/src/server/handlers/studio/bridge-modules.handler.ts +0 -131
  1792. package/src/src/server/handlers/types.ts +0 -22
  1793. package/src/src/server/handlers/utils/content-types.ts +0 -107
  1794. package/src/src/server/handlers/utils/etag.ts +0 -44
  1795. package/src/src/server/index.ts +0 -386
  1796. package/src/src/server/node-handler.ts +0 -42
  1797. package/src/src/server/production-server.ts +0 -466
  1798. package/src/src/server/project-env/cache.ts +0 -101
  1799. package/src/src/server/project-env/fetcher.ts +0 -80
  1800. package/src/src/server/project-env/index.ts +0 -9
  1801. package/src/src/server/project-env/storage.ts +0 -54
  1802. package/src/src/server/reload-notifier.ts +0 -165
  1803. package/src/src/server/runtime-handler/adapter-factory.ts +0 -216
  1804. package/src/src/server/runtime-handler/environment-resolution.ts +0 -139
  1805. package/src/src/server/runtime-handler/handler-context-builder.ts +0 -138
  1806. package/src/src/server/runtime-handler/index.ts +0 -716
  1807. package/src/src/server/runtime-handler/isolation.ts +0 -119
  1808. package/src/src/server/runtime-handler/local-project-discovery.ts +0 -168
  1809. package/src/src/server/runtime-handler/project-isolation.ts +0 -256
  1810. package/src/src/server/runtime-handler/project-resolution.ts +0 -278
  1811. package/src/src/server/runtime-handler/projects-handler.ts +0 -133
  1812. package/src/src/server/runtime-handler/proxy-environment.ts +0 -15
  1813. package/src/src/server/runtime-handler/request-lifecycle.ts +0 -129
  1814. package/src/src/server/runtime-handler/request-tracker.ts +0 -259
  1815. package/src/src/server/runtime-handler/request-utils.ts +0 -88
  1816. package/src/src/server/runtime-handler/timeout-manager.ts +0 -83
  1817. package/src/src/server/runtime-handler/tracing.ts +0 -93
  1818. package/src/src/server/schemas/action.schema.ts +0 -15
  1819. package/src/src/server/schemas/index.ts +0 -7
  1820. package/src/src/server/service-server.ts +0 -598
  1821. package/src/src/server/services/rendering/ssr.service.ts +0 -375
  1822. package/src/src/server/services/rsc/endpoints/action-handler.ts +0 -63
  1823. package/src/src/server/services/rsc/endpoints/action-parser.ts +0 -44
  1824. package/src/src/server/services/rsc/endpoints/endpoint-router.ts +0 -315
  1825. package/src/src/server/services/rsc/endpoints/handler-registry.ts +0 -85
  1826. package/src/src/server/services/rsc/endpoints/index.ts +0 -12
  1827. package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +0 -13
  1828. package/src/src/server/services/rsc/endpoints/script-handlers.ts +0 -122
  1829. package/src/src/server/services/rsc/endpoints/types.ts +0 -23
  1830. package/src/src/server/services/rsc/orchestrators/component-resolver.ts +0 -76
  1831. package/src/src/server/services/rsc/orchestrators/handler.ts +0 -58
  1832. package/src/src/server/services/rsc/orchestrators/index.ts +0 -16
  1833. package/src/src/server/services/rsc/orchestrators/manifest-handler.ts +0 -96
  1834. package/src/src/server/services/rsc/orchestrators/page-handler.ts +0 -103
  1835. package/src/src/server/services/rsc/orchestrators/render-handler.ts +0 -161
  1836. package/src/src/server/services/rsc/orchestrators/stream-handler.ts +0 -94
  1837. package/src/src/server/services/rsc/orchestrators/types.ts +0 -36
  1838. package/src/src/server/services/static/index.ts +0 -10
  1839. package/src/src/server/services/static/static-file.service.ts +0 -333
  1840. package/src/src/server/shared/browser-module-bundler.ts +0 -65
  1841. package/src/src/server/shared/index.ts +0 -12
  1842. package/src/src/server/shared/renderer/adapter.ts +0 -410
  1843. package/src/src/server/shared/renderer/index.ts +0 -14
  1844. package/src/src/server/shared/renderer/memory/pressure.ts +0 -69
  1845. package/src/src/server/shared/renderer-factory.ts +0 -14
  1846. package/src/src/server/utils/chunk-utils.ts +0 -17
  1847. package/src/src/server/utils/domain-lookup.ts +0 -265
  1848. package/src/src/server/utils/domain-parser.ts +0 -238
  1849. package/src/src/server/utils/error-html.ts +0 -163
  1850. package/src/src/server/utils/proxy-trust.ts +0 -56
  1851. package/src/src/server/utils/request-host.ts +0 -12
  1852. package/src/src/skill/allowed-tools.ts +0 -100
  1853. package/src/src/skill/executor.ts +0 -213
  1854. package/src/src/skill/index.ts +0 -60
  1855. package/src/src/skill/parser.ts +0 -207
  1856. package/src/src/skill/path-safety.ts +0 -212
  1857. package/src/src/skill/prompt-augmentation.ts +0 -48
  1858. package/src/src/skill/registry.ts +0 -51
  1859. package/src/src/skill/tools.ts +0 -221
  1860. package/src/src/skill/types.ts +0 -107
  1861. package/src/src/studio/bridge/bridge-bundle.generated.ts +0 -9
  1862. package/src/src/studio/element-selector-injector.ts +0 -96
  1863. package/src/src/studio/hash-utils.ts +0 -1
  1864. package/src/src/task/discovery.ts +0 -294
  1865. package/src/src/task/runner.ts +0 -90
  1866. package/src/src/task/types.ts +0 -46
  1867. package/src/src/testing/assert.ts +0 -352
  1868. package/src/src/testing/bdd.ts +0 -619
  1869. package/src/src/testing/deno-compat.ts +0 -206
  1870. package/src/src/testing/index.ts +0 -92
  1871. package/src/src/testing/init.ts +0 -30
  1872. package/src/src/testing/isolation.ts +0 -177
  1873. package/src/src/testing/timing.ts +0 -27
  1874. package/src/src/testing/utils.ts +0 -44
  1875. package/src/src/tool/context7.ts +0 -34
  1876. package/src/src/tool/executor.ts +0 -22
  1877. package/src/src/tool/factory.ts +0 -234
  1878. package/src/src/tool/host-tools.ts +0 -127
  1879. package/src/src/tool/index.ts +0 -118
  1880. package/src/src/tool/project-scoped-remote-tools.ts +0 -292
  1881. package/src/src/tool/registry.ts +0 -32
  1882. package/src/src/tool/remote-mcp.ts +0 -346
  1883. package/src/src/tool/remote-source-tools.ts +0 -62
  1884. package/src/src/tool/result.ts +0 -23
  1885. package/src/src/tool/schema/index.ts +0 -8
  1886. package/src/src/tool/schema/json-schema.ts +0 -9
  1887. package/src/src/tool/schema/zod-json-schema.ts +0 -87
  1888. package/src/src/tool/sleep.ts +0 -102
  1889. package/src/src/tool/tracing.ts +0 -70
  1890. package/src/src/tool/types.ts +0 -173
  1891. package/src/src/transforms/css-modules/naming.ts +0 -152
  1892. package/src/src/transforms/esm/bundle-deps-validator.ts +0 -187
  1893. package/src/src/transforms/esm/bundle-manifest-ttl.ts +0 -58
  1894. package/src/src/transforms/esm/bundle-manifest-types.ts +0 -14
  1895. package/src/src/transforms/esm/bundle-manifest.ts +0 -182
  1896. package/src/src/transforms/esm/bundle-recovery.ts +0 -356
  1897. package/src/src/transforms/esm/cached-bundle-validation.ts +0 -44
  1898. package/src/src/transforms/esm/html-content.ts +0 -13
  1899. package/src/src/transforms/esm/http-bundler.ts +0 -300
  1900. package/src/src/transforms/esm/http-cache-helpers.ts +0 -188
  1901. package/src/src/transforms/esm/http-cache-invariants.ts +0 -128
  1902. package/src/src/transforms/esm/http-cache-state.ts +0 -72
  1903. package/src/src/transforms/esm/http-cache-types.ts +0 -66
  1904. package/src/src/transforms/esm/http-cache-wrapper.ts +0 -442
  1905. package/src/src/transforms/esm/http-cache.ts +0 -439
  1906. package/src/src/transforms/esm/import-parser.ts +0 -254
  1907. package/src/src/transforms/esm/import-rewriter.ts +0 -194
  1908. package/src/src/transforms/esm/in-flight-manager.ts +0 -145
  1909. package/src/src/transforms/esm/index.ts +0 -23
  1910. package/src/src/transforms/esm/lexer.ts +0 -178
  1911. package/src/src/transforms/esm/package-registry.ts +0 -176
  1912. package/src/src/transforms/esm/path-resolver.ts +0 -114
  1913. package/src/src/transforms/esm/react-imports.ts +0 -55
  1914. package/src/src/transforms/esm/source-url-embed.ts +0 -31
  1915. package/src/src/transforms/esm/specifier-resolver.ts +0 -118
  1916. package/src/src/transforms/esm/transform-cache.ts +0 -317
  1917. package/src/src/transforms/esm/transform-utils.ts +0 -30
  1918. package/src/src/transforms/esm/types.ts +0 -22
  1919. package/src/src/transforms/esm-transform.ts +0 -13
  1920. package/src/src/transforms/import-rewriter/index.ts +0 -82
  1921. package/src/src/transforms/import-rewriter/parse-cache.ts +0 -195
  1922. package/src/src/transforms/import-rewriter/strategies/alias-strategy.ts +0 -79
  1923. package/src/src/transforms/import-rewriter/strategies/bare-strategy.ts +0 -96
  1924. package/src/src/transforms/import-rewriter/strategies/cross-project-strategy.ts +0 -54
  1925. package/src/src/transforms/import-rewriter/strategies/import-map-strategy.ts +0 -137
  1926. package/src/src/transforms/import-rewriter/strategies/index.ts +0 -25
  1927. package/src/src/transforms/import-rewriter/strategies/node-builtin-strategy.ts +0 -56
  1928. package/src/src/transforms/import-rewriter/strategies/react-strategy.ts +0 -48
  1929. package/src/src/transforms/import-rewriter/strategies/relative-strategy.ts +0 -71
  1930. package/src/src/transforms/import-rewriter/strategies/url-strategy.ts +0 -23
  1931. package/src/src/transforms/import-rewriter/strategies/vendor-strategy.ts +0 -47
  1932. package/src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts +0 -97
  1933. package/src/src/transforms/import-rewriter/types.ts +0 -182
  1934. package/src/src/transforms/import-rewriter/unified-rewriter.ts +0 -136
  1935. package/src/src/transforms/import-rewriter/url-builder.ts +0 -145
  1936. package/src/src/transforms/md/compiler/index.ts +0 -7
  1937. package/src/src/transforms/md/compiler/md-compiler.ts +0 -61
  1938. package/src/src/transforms/md/utils.ts +0 -20
  1939. package/src/src/transforms/mdx/compiler/frontmatter-extractor.ts +0 -66
  1940. package/src/src/transforms/mdx/compiler/import-rewriter.ts +0 -125
  1941. package/src/src/transforms/mdx/compiler/index.ts +0 -63
  1942. package/src/src/transforms/mdx/compiler/mdx-compiler.ts +0 -62
  1943. package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +0 -466
  1944. package/src/src/transforms/mdx/esm-module-loader/cache/local-fs.ts +0 -10
  1945. package/src/src/transforms/mdx/esm-module-loader/cache-format.ts +0 -204
  1946. package/src/src/transforms/mdx/esm-module-loader/components/resolver.ts +0 -75
  1947. package/src/src/transforms/mdx/esm-module-loader/constants.ts +0 -28
  1948. package/src/src/transforms/mdx/esm-module-loader/import-transformer.ts +0 -215
  1949. package/src/src/transforms/mdx/esm-module-loader/index.ts +0 -31
  1950. package/src/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.ts +0 -17
  1951. package/src/src/transforms/mdx/esm-module-loader/jsx-cache.ts +0 -45
  1952. package/src/src/transforms/mdx/esm-module-loader/loader-helpers.ts +0 -224
  1953. package/src/src/transforms/mdx/esm-module-loader/loader.ts +0 -30
  1954. package/src/src/transforms/mdx/esm-module-loader/metadata/extractor.ts +0 -105
  1955. package/src/src/transforms/mdx/esm-module-loader/metadata/index.ts +0 -8
  1956. package/src/src/transforms/mdx/esm-module-loader/metadata/string-parser.ts +0 -69
  1957. package/src/src/transforms/mdx/esm-module-loader/missing-module.ts +0 -57
  1958. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.ts +0 -34
  1959. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.ts +0 -173
  1960. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.ts +0 -260
  1961. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/framework-validator.ts +0 -294
  1962. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.ts +0 -85
  1963. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.ts +0 -108
  1964. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +0 -499
  1965. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.ts +0 -88
  1966. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.ts +0 -95
  1967. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/render-sessions.ts +0 -100
  1968. package/src/src/transforms/mdx/esm-module-loader/module-writer.ts +0 -425
  1969. package/src/src/transforms/mdx/esm-module-loader/resolution/file-finder.ts +0 -186
  1970. package/src/src/transforms/mdx/esm-module-loader/types.ts +0 -83
  1971. package/src/src/transforms/mdx/esm-module-loader/utils/hash.ts +0 -1
  1972. package/src/src/transforms/mdx/esm-module-loader/utils/stub-module.ts +0 -111
  1973. package/src/src/transforms/mdx/index.ts +0 -116
  1974. package/src/src/transforms/mdx/mdx-cache-adapter.ts +0 -213
  1975. package/src/src/transforms/mdx/module-loader/types.ts +0 -55
  1976. package/src/src/transforms/mdx/types.ts +0 -83
  1977. package/src/src/transforms/npm-import-rewrites.ts +0 -105
  1978. package/src/src/transforms/pipeline/context.ts +0 -124
  1979. package/src/src/transforms/pipeline/index.ts +0 -372
  1980. package/src/src/transforms/pipeline/stages/compile.ts +0 -70
  1981. package/src/src/transforms/pipeline/stages/finalize.ts +0 -20
  1982. package/src/src/transforms/pipeline/stages/index.ts +0 -14
  1983. package/src/src/transforms/pipeline/stages/parse.ts +0 -29
  1984. package/src/src/transforms/pipeline/stages/resolve-imports.ts +0 -48
  1985. package/src/src/transforms/pipeline/stages/ssr-css-strip.ts +0 -201
  1986. package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -49
  1987. package/src/src/transforms/pipeline/stages/ssr-http-stub.ts +0 -96
  1988. package/src/src/transforms/pipeline/stages/ssr-vf-modules/constants.ts +0 -62
  1989. package/src/src/transforms/pipeline/stages/ssr-vf-modules/import-finder.ts +0 -46
  1990. package/src/src/transforms/pipeline/stages/ssr-vf-modules/index.ts +0 -174
  1991. package/src/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.ts +0 -219
  1992. package/src/src/transforms/pipeline/stages/ssr-vf-modules/transform.ts +0 -434
  1993. package/src/src/transforms/pipeline/stages/ssr-vf-modules.ts +0 -5
  1994. package/src/src/transforms/pipeline/types.ts +0 -143
  1995. package/src/src/transforms/plugins/babel-node-positions.ts +0 -22
  1996. package/src/src/transforms/shared/cross-project-import.ts +0 -27
  1997. package/src/src/transforms/shared/framework-bundle-paths.ts +0 -12
  1998. package/src/src/transforms/shared/package-specifier.ts +0 -29
  1999. package/src/src/transforms/shared/vendor-export-name.ts +0 -7
  2000. package/src/src/transforms/veryfront-module-urls.ts +0 -131
  2001. package/src/src/types/app.ts +0 -6
  2002. package/src/src/types/branded.ts +0 -28
  2003. package/src/src/types/bundler.ts +0 -51
  2004. package/src/src/types/entities/getEntityInfo.ts +0 -448
  2005. package/src/src/types/entities.ts +0 -99
  2006. package/src/src/types/global-guards.ts +0 -21
  2007. package/src/src/types/hmr.ts +0 -20
  2008. package/src/src/types/index.ts +0 -207
  2009. package/src/src/types/rsc.ts +0 -40
  2010. package/src/src/types/server.ts +0 -153
  2011. package/src/src/utils/base64url.ts +0 -15
  2012. package/src/src/utils/box.ts +0 -300
  2013. package/src/src/utils/bundle-manifest-init.ts +0 -119
  2014. package/src/src/utils/bundle-manifest-kv.ts +0 -58
  2015. package/src/src/utils/bundle-manifest-redis.ts +0 -55
  2016. package/src/src/utils/bundle-manifest.ts +0 -161
  2017. package/src/src/utils/cache/eviction/eviction-manager.ts +0 -168
  2018. package/src/src/utils/cache/keys/namespace.ts +0 -25
  2019. package/src/src/utils/cache/stores/memory/entry-manager.ts +0 -98
  2020. package/src/src/utils/cache/stores/memory/lru-cache-adapter.ts +0 -220
  2021. package/src/src/utils/cache/stores/memory/lru-list-manager.ts +0 -58
  2022. package/src/src/utils/cache/stores/memory/lru-node.ts +0 -20
  2023. package/src/src/utils/cache/stores/memory/types.ts +0 -32
  2024. package/src/src/utils/cache-dir.ts +0 -80
  2025. package/src/src/utils/cache-file-ops.ts +0 -110
  2026. package/src/src/utils/cache-namespace.ts +0 -42
  2027. package/src/src/utils/case-utils.ts +0 -10
  2028. package/src/src/utils/circuit-breaker.ts +0 -216
  2029. package/src/src/utils/clsx.ts +0 -38
  2030. package/src/src/utils/constants/buffers.ts +0 -30
  2031. package/src/src/utils/constants/build.ts +0 -6
  2032. package/src/src/utils/constants/cache.ts +0 -208
  2033. package/src/src/utils/constants/cdn.ts +0 -88
  2034. package/src/src/utils/constants/crypto.ts +0 -12
  2035. package/src/src/utils/constants/env.ts +0 -26
  2036. package/src/src/utils/constants/hash.ts +0 -2
  2037. package/src/src/utils/constants/hmr.ts +0 -24
  2038. package/src/src/utils/constants/html.ts +0 -7
  2039. package/src/src/utils/constants/http.ts +0 -66
  2040. package/src/src/utils/constants/index.ts +0 -305
  2041. package/src/src/utils/constants/limits.ts +0 -31
  2042. package/src/src/utils/constants/metrics.ts +0 -39
  2043. package/src/src/utils/constants/network.ts +0 -31
  2044. package/src/src/utils/constants/priorities.ts +0 -31
  2045. package/src/src/utils/constants/retry.ts +0 -16
  2046. package/src/src/utils/constants/security.ts +0 -14
  2047. package/src/src/utils/constants/server.ts +0 -137
  2048. package/src/src/utils/cookie-utils.ts +0 -25
  2049. package/src/src/utils/env-loader.ts +0 -170
  2050. package/src/src/utils/feature-flags.ts +0 -10
  2051. package/src/src/utils/file-discovery.ts +0 -250
  2052. package/src/src/utils/hash-utils.ts +0 -56
  2053. package/src/src/utils/html-escape.ts +0 -8
  2054. package/src/src/utils/id.ts +0 -36
  2055. package/src/src/utils/import-lockfile.ts +0 -274
  2056. package/src/src/utils/import-map.ts +0 -53
  2057. package/src/src/utils/index.ts +0 -129
  2058. package/src/src/utils/logger/components.ts +0 -93
  2059. package/src/src/utils/logger/core.ts +0 -165
  2060. package/src/src/utils/logger/index.ts +0 -56
  2061. package/src/src/utils/logger/logger.ts +0 -612
  2062. package/src/src/utils/logger/request-context.ts +0 -47
  2063. package/src/src/utils/lru-wrapper.ts +0 -114
  2064. package/src/src/utils/memoize.ts +0 -100
  2065. package/src/src/utils/memory/index.ts +0 -23
  2066. package/src/src/utils/memory/profiler.ts +0 -250
  2067. package/src/src/utils/mime-types.ts +0 -153
  2068. package/src/src/utils/parallel.ts +0 -153
  2069. package/src/src/utils/path-utils.ts +0 -151
  2070. package/src/src/utils/perf-timer.ts +0 -140
  2071. package/src/src/utils/platform.ts +0 -21
  2072. package/src/src/utils/redis-client.ts +0 -133
  2073. package/src/src/utils/request-id.ts +0 -18
  2074. package/src/src/utils/route-path-utils.ts +0 -210
  2075. package/src/src/utils/runtime-guards.ts +0 -42
  2076. package/src/src/utils/semaphore.ts +0 -107
  2077. package/src/src/utils/singleflight.ts +0 -25
  2078. package/src/src/utils/version-constant.ts +0 -3
  2079. package/src/src/utils/version.ts +0 -51
  2080. package/src/src/workflow/api/index.ts +0 -8
  2081. package/src/src/workflow/api/workflow-client.ts +0 -181
  2082. package/src/src/workflow/api.ts +0 -195
  2083. package/src/src/workflow/backends/memory.ts +0 -451
  2084. package/src/src/workflow/backends/redis/index.ts +0 -657
  2085. package/src/src/workflow/backends/redis/types.ts +0 -57
  2086. package/src/src/workflow/backends/redis.ts +0 -10
  2087. package/src/src/workflow/backends/shared/requeue-run.ts +0 -18
  2088. package/src/src/workflow/backends/types.ts +0 -142
  2089. package/src/src/workflow/blob/types.ts +0 -36
  2090. package/src/src/workflow/blob/veryfront-cloud-storage.ts +0 -534
  2091. package/src/src/workflow/claude-code/agent.ts +0 -264
  2092. package/src/src/workflow/claude-code/event-publisher.ts +0 -340
  2093. package/src/src/workflow/claude-code/index.ts +0 -113
  2094. package/src/src/workflow/claude-code/react/index.ts +0 -23
  2095. package/src/src/workflow/claude-code/react/use-claude-code-stream.ts +0 -377
  2096. package/src/src/workflow/claude-code/react/use-claude-code-websocket.ts +0 -534
  2097. package/src/src/workflow/claude-code/tool.ts +0 -209
  2098. package/src/src/workflow/claude-code/types.ts +0 -425
  2099. package/src/src/workflow/claude-code/websocket-publisher.ts +0 -501
  2100. package/src/src/workflow/claude-code/workspace-sync.ts +0 -647
  2101. package/src/src/workflow/discovery/index.ts +0 -16
  2102. package/src/src/workflow/discovery/workflow-discovery.ts +0 -238
  2103. package/src/src/workflow/dsl/branch.ts +0 -74
  2104. package/src/src/workflow/dsl/index.ts +0 -29
  2105. package/src/src/workflow/dsl/loop.ts +0 -129
  2106. package/src/src/workflow/dsl/map.ts +0 -46
  2107. package/src/src/workflow/dsl/parallel.ts +0 -56
  2108. package/src/src/workflow/dsl/step.ts +0 -67
  2109. package/src/src/workflow/dsl/sub-workflow.ts +0 -39
  2110. package/src/src/workflow/dsl/validation.ts +0 -8
  2111. package/src/src/workflow/dsl/wait.ts +0 -77
  2112. package/src/src/workflow/dsl/workflow.ts +0 -122
  2113. package/src/src/workflow/executor/checkpoint-manager.ts +0 -160
  2114. package/src/src/workflow/executor/dag/graph.ts +0 -127
  2115. package/src/src/workflow/executor/dag/index.ts +0 -684
  2116. package/src/src/workflow/executor/dag/types.ts +0 -40
  2117. package/src/src/workflow/executor/dag/utils.ts +0 -17
  2118. package/src/src/workflow/executor/dag-executor.ts +0 -14
  2119. package/src/src/workflow/executor/step-executor.ts +0 -339
  2120. package/src/src/workflow/executor/workflow-executor.ts +0 -635
  2121. package/src/src/workflow/index.ts +0 -148
  2122. package/src/src/workflow/react/index.ts +0 -17
  2123. package/src/src/workflow/react/use-approval.ts +0 -150
  2124. package/src/src/workflow/react/use-workflow-list.ts +0 -181
  2125. package/src/src/workflow/react/use-workflow-start.ts +0 -75
  2126. package/src/src/workflow/react/use-workflow.ts +0 -205
  2127. package/src/src/workflow/registry.ts +0 -311
  2128. package/src/src/workflow/runtime/approval-manager.ts +0 -325
  2129. package/src/src/workflow/schemas/index.ts +0 -57
  2130. package/src/src/workflow/schemas/workflow.schema.ts +0 -262
  2131. package/src/src/workflow/types.ts +0 -359
  2132. package/src/src/workflow/worker/dynamic-job-entrypoint.ts +0 -254
  2133. package/src/src/workflow/worker/executors/index.ts +0 -17
  2134. package/src/src/workflow/worker/executors/k8s.ts +0 -337
  2135. package/src/src/workflow/worker/executors/process.ts +0 -332
  2136. package/src/src/workflow/worker/executors/types.ts +0 -149
  2137. package/src/src/workflow/worker/index.ts +0 -78
  2138. package/src/src/workflow/worker/job-entrypoint.ts +0 -215
  2139. package/src/src/workflow/worker/job-manager.ts +0 -488
  2140. package/src/src/workflow/worker/shared.ts +0 -127
  2141. package/src/src/workflow/worker/workflow-worker.ts +0 -326
@@ -1,782 +0,0 @@
1
- /**
2
- * Integration Generator
3
- *
4
- * Generates new service integration scaffolds with interactive prompts.
5
- * Creates connector.json, API client, OAuth routes, token store, and tool skeletons.
6
- */
7
-
8
- import { join } from "../../../deps/jsr.io/@std/path/1.1.4/mod.js";
9
- import { cyan, dim, green } from "../../ui/index.js";
10
- import { cliLogger } from "../../utils/index.js";
11
- import { createFileSystem, type FileSystem } from "../../../src/platform/index.js";
12
- import { ensureDir } from "../../utils/fs.js";
13
- import { isInteractive as checkIsInteractive, promptSync } from "../../../src/platform/index.js";
14
- import { isCiEnv, isDenoTestingEnv } from "../../../src/config/index.js";
15
- import {
16
- getNonInteractiveConfig,
17
- getToolExecuteBody,
18
- getToolInputSchema,
19
- type IntegrationConfig,
20
- normalizeTokenAuthMethod,
21
- parseAdditionalAuthParams,
22
- parseBooleanOption,
23
- parseScopes,
24
- type TokenAuthMethod,
25
- validateIntegrationName,
26
- } from "./integration-generator-helpers.js";
27
- import { select } from "../../utils/terminal-select.js";
28
-
29
- let fs: FileSystem;
30
-
31
- export interface IntegrationGeneratorOptions {
32
- /** Integration name (lowercase, e.g., "twilio") */
33
- name?: string;
34
- /** Display name (e.g., "Twilio") */
35
- displayName?: string;
36
- /** Authentication type */
37
- authType?: "oauth2" | "api-key";
38
- /** API base URL */
39
- apiBaseUrl?: string;
40
- /** OAuth authorization URL (for oauth2) */
41
- authorizationUrl?: string;
42
- /** OAuth token URL (for oauth2) */
43
- tokenUrl?: string;
44
- /** OAuth scopes (comma-separated) */
45
- scopes?: string;
46
- /** OAuth token auth method */
47
- tokenAuthMethod?: TokenAuthMethod;
48
- /** Additional OAuth auth URL params (comma-separated key=value pairs) */
49
- additionalAuthParams?: string;
50
- /** Enable PKCE for OAuth authorization code flow */
51
- usePKCE?: boolean;
52
- /** Skip interactive prompts */
53
- skipPrompts?: boolean;
54
- }
55
-
56
- function canRunPrompts(): boolean {
57
- return !(isCiEnv() || isDenoTestingEnv()) && checkIsInteractive();
58
- }
59
-
60
- function promptText(question: string, defaultValue?: string): Promise<string> {
61
- const defaultHint = defaultValue ? dim(` (${defaultValue})`) : "";
62
- const fullQuestion = `${cyan("?")} ${question}${defaultHint}`;
63
- const input = promptSync(fullQuestion);
64
- return Promise.resolve(input?.trim() || defaultValue || "");
65
- }
66
-
67
- export async function generateIntegration(
68
- projectDir: string,
69
- options: IntegrationGeneratorOptions = {},
70
- ): Promise<void> {
71
- fs = createFileSystem();
72
-
73
- const shouldPrompt = !options.skipPrompts && canRunPrompts();
74
- const config = shouldPrompt
75
- ? await getInteractiveConfig(options)
76
- : getNonInteractiveConfig(options);
77
-
78
- await createIntegrationFiles(projectDir, config);
79
-
80
- console.log("");
81
- console.log(green("Integration created successfully!"));
82
- console.log("");
83
- console.log("Files created:");
84
- console.log(` ${cyan("ai/integrations/" + config.name + "/")} - Integration directory`);
85
- console.log("");
86
- console.log("Next steps:");
87
- console.log(` 1. Add your ${config.envVarPrefix}_* environment variables to .env`);
88
- if (config.authType === "oauth2") {
89
- console.log(` 2. Configure OAuth app in ${config.displayName} developer portal`);
90
- console.log(` 3. Set callback URL to: /api/auth/${config.name}/callback`);
91
- }
92
- console.log(` 4. Customize the generated tools in ai/integrations/${config.name}/tools/`);
93
- console.log("");
94
- }
95
-
96
- async function getInteractiveConfig(
97
- options: IntegrationGeneratorOptions,
98
- ): Promise<IntegrationConfig> {
99
- console.log("");
100
- console.log(green("Integration Generator"));
101
- console.log("Let's create a new service integration.\n");
102
-
103
- const name = options.name ??
104
- await promptText("Integration name (lowercase, e.g., twilio, zendesk):");
105
- validateIntegrationName(name);
106
-
107
- const displayName = options.displayName ??
108
- await promptText(
109
- "Display name:",
110
- name.charAt(0).toUpperCase() + name.slice(1),
111
- );
112
-
113
- let authType = options.authType;
114
- if (!authType) {
115
- const selected = await select(
116
- "Authentication type:",
117
- [
118
- { value: "oauth2", label: "OAuth 2.0", description: "For services with OAuth flow" },
119
- { value: "api-key", label: "API Key", description: "For services with API key auth" },
120
- ],
121
- 0,
122
- );
123
- authType = (selected as "oauth2" | "api-key" | null) ?? "oauth2";
124
- }
125
-
126
- const apiBaseUrl = options.apiBaseUrl ??
127
- await promptText("API base URL:", `https://api.${name}.com`);
128
-
129
- let authorizationUrl: string | undefined;
130
- let tokenUrl: string | undefined;
131
- let scopes: string[] = [];
132
- let tokenAuthMethod: TokenAuthMethod = normalizeTokenAuthMethod(options.tokenAuthMethod);
133
- let additionalAuthParams: Record<string, string> = parseAdditionalAuthParams(
134
- options.additionalAuthParams,
135
- );
136
- let usePKCE = parseBooleanOption(options.usePKCE, false);
137
-
138
- if (authType === "oauth2") {
139
- authorizationUrl = options.authorizationUrl ??
140
- await promptText(
141
- "OAuth authorization URL:",
142
- `https://${name}.com/oauth/authorize`,
143
- );
144
-
145
- tokenUrl = options.tokenUrl ??
146
- await promptText("OAuth token URL:", `https://${name}.com/oauth/token`);
147
-
148
- const scopesInput = options.scopes ??
149
- await promptText("OAuth scopes (comma-separated, or leave empty):");
150
- scopes = scopesInput ? parseScopes(scopesInput) : [];
151
-
152
- tokenAuthMethod = options.tokenAuthMethod
153
- ? normalizeTokenAuthMethod(options.tokenAuthMethod)
154
- : normalizeTokenAuthMethod(
155
- await promptText(
156
- "OAuth token auth method (request_body, body, basic, client_secret_basic, client_secret_post):",
157
- "request_body",
158
- ),
159
- );
160
-
161
- usePKCE = options.usePKCE !== undefined
162
- ? parseBooleanOption(options.usePKCE, false)
163
- : parseBooleanOption(
164
- await promptText("Use PKCE? (y/N):", "n"),
165
- false,
166
- );
167
-
168
- additionalAuthParams = options.additionalAuthParams
169
- ? parseAdditionalAuthParams(options.additionalAuthParams)
170
- : parseAdditionalAuthParams(
171
- await promptText(
172
- "Additional auth URL params (key=value,key=value, or leave empty):",
173
- ),
174
- );
175
- }
176
-
177
- return {
178
- name,
179
- displayName,
180
- authType,
181
- apiBaseUrl,
182
- authorizationUrl,
183
- tokenUrl,
184
- scopes,
185
- tokenAuthMethod,
186
- additionalAuthParams,
187
- usePKCE,
188
- envVarPrefix: name.toUpperCase().replace(/-/g, "_"),
189
- };
190
- }
191
-
192
- async function createIntegrationFiles(
193
- projectDir: string,
194
- config: IntegrationConfig,
195
- ): Promise<void> {
196
- const baseDir = join(projectDir, "ai", "integrations", config.name);
197
-
198
- await ensureDir(baseDir);
199
- await ensureDir(join(baseDir, "lib"));
200
- await ensureDir(join(baseDir, "tools"));
201
-
202
- if (config.authType === "oauth2") {
203
- await ensureDir(join(projectDir, "app", "api", "auth", config.name));
204
- await ensureDir(join(projectDir, "app", "api", "auth", config.name, "callback"));
205
- await createOAuth2Files(projectDir, baseDir, config);
206
- } else {
207
- await createApiKeyFiles(baseDir, config);
208
- }
209
-
210
- await createClientFile(baseDir, config);
211
- await createToolSkeletons(baseDir, config);
212
- await createEnvExample(projectDir, config);
213
- }
214
-
215
- async function createOAuth2Files(
216
- projectDir: string,
217
- baseDir: string,
218
- config: IntegrationConfig,
219
- ): Promise<void> {
220
- const tokenAuthMethodLiteral = JSON.stringify(config.tokenAuthMethod);
221
- const additionalAuthParamsLiteral = JSON.stringify(config.additionalAuthParams, null, 2);
222
- const usePKCELiteral = JSON.stringify(config.usePKCE);
223
- const pkceCookieName = `${config.name}_pkce_verifier`;
224
-
225
- const tokenStore = `/**
226
- * Token storage for ${config.displayName} OAuth
227
- */
228
-
229
- type TokenAuthMethod =
230
- | "basic"
231
- | "body"
232
- | "client_secret_basic"
233
- | "client_secret_post"
234
- | "request_body";
235
-
236
- interface TokenData {
237
- accessToken: string;
238
- refreshToken?: string;
239
- expiresAt?: number;
240
- }
241
-
242
- interface TokenResponse {
243
- accessToken: string;
244
- refreshToken?: string;
245
- expiresIn?: number;
246
- }
247
-
248
- let tokenData: TokenData | null = null;
249
- const TOKEN_AUTH_METHOD: TokenAuthMethod = ${tokenAuthMethodLiteral};
250
-
251
- export function setTokens(access: string, refresh?: string, expiresIn?: number): void {
252
- tokenData = {
253
- accessToken: access,
254
- refreshToken: refresh,
255
- expiresAt: expiresIn ? Date.now() + expiresIn * 1000 : undefined,
256
- };
257
- }
258
-
259
- export async function getAccessToken(): Promise<string | null> {
260
- if (!tokenData) return null;
261
-
262
- // Check if token is expired and attempt refresh
263
- if (tokenData.expiresAt && Date.now() > tokenData.expiresAt) {
264
- if (tokenData.refreshToken) {
265
- const refreshed = await refreshAccessToken(tokenData.refreshToken);
266
- if (refreshed) {
267
- setTokens(refreshed.accessToken, refreshed.refreshToken, refreshed.expiresIn);
268
- return refreshed.accessToken;
269
- }
270
- }
271
- clearTokens();
272
- return null;
273
- }
274
-
275
- return tokenData.accessToken;
276
- }
277
-
278
- function getClientCredentials(): { clientId: string; clientSecret: string } | null {
279
- const clientId = process.env.${config.envVarPrefix}_CLIENT_ID;
280
- const clientSecret = process.env.${config.envVarPrefix}_CLIENT_SECRET;
281
-
282
- if (!clientId || !clientSecret) return null;
283
- return { clientId, clientSecret };
284
- }
285
-
286
- function buildTokenRequest(
287
- body: Record<string, string>,
288
- ): { headers: HeadersInit; body: URLSearchParams } | null {
289
- const credentials = getClientCredentials();
290
- if (!credentials) return null;
291
-
292
- const { clientId, clientSecret } = credentials;
293
- const headers: HeadersInit = {
294
- "Content-Type": "application/x-www-form-urlencoded",
295
- };
296
- const params = new URLSearchParams(body);
297
-
298
- switch (TOKEN_AUTH_METHOD) {
299
- case "basic":
300
- case "client_secret_basic":
301
- headers.Authorization = \`Basic \${btoa(\`\${clientId}:\${clientSecret}\`)}\`;
302
- break;
303
- case "body":
304
- case "client_secret_post":
305
- case "request_body":
306
- params.set("client_id", clientId);
307
- params.set("client_secret", clientSecret);
308
- break;
309
- }
310
-
311
- return { headers, body: params };
312
- }
313
-
314
- function toTokenResponse(data: any, fallbackRefreshToken?: string): TokenResponse | null {
315
- const accessToken = typeof data?.access_token === "string" ? data.access_token : null;
316
- if (!accessToken) return null;
317
-
318
- const expiresIn = typeof data?.expires_in === "number"
319
- ? data.expires_in
320
- : typeof data?.expires_in === "string"
321
- ? Number(data.expires_in)
322
- : undefined;
323
-
324
- return {
325
- accessToken,
326
- refreshToken: typeof data?.refresh_token === "string"
327
- ? data.refresh_token
328
- : fallbackRefreshToken,
329
- expiresIn: Number.isFinite(expiresIn) ? expiresIn : undefined,
330
- };
331
- }
332
-
333
- async function requestToken(
334
- body: Record<string, string>,
335
- fallbackRefreshToken?: string,
336
- ): Promise<TokenResponse | null> {
337
- const request = buildTokenRequest(body);
338
- if (!request) return null;
339
-
340
- try {
341
- const response = await fetch("${config.tokenUrl}", {
342
- method: "POST",
343
- headers: request.headers,
344
- body: request.body,
345
- });
346
-
347
- if (!response.ok) return null;
348
-
349
- const data = await response.json();
350
- return toTokenResponse(data, fallbackRefreshToken);
351
- } catch {
352
- return null;
353
- }
354
- }
355
-
356
- export async function exchangeCodeForTokens(
357
- code: string,
358
- redirectUri: string,
359
- codeVerifier?: string,
360
- ): Promise<TokenResponse | null> {
361
- const body: Record<string, string> = {
362
- grant_type: "authorization_code",
363
- code,
364
- redirect_uri: redirectUri,
365
- };
366
-
367
- if (codeVerifier) {
368
- body.code_verifier = codeVerifier;
369
- }
370
-
371
- return await requestToken(body);
372
- }
373
-
374
- export async function refreshAccessToken(
375
- refreshToken: string,
376
- ): Promise<TokenResponse | null> {
377
- const refreshed = await requestToken(
378
- {
379
- grant_type: "refresh_token",
380
- refresh_token: refreshToken,
381
- },
382
- refreshToken,
383
- );
384
-
385
- if (!refreshed) {
386
- clearTokens();
387
- }
388
-
389
- return refreshed;
390
- }
391
-
392
- export function clearTokens(): void {
393
- tokenData = null;
394
- }
395
- `;
396
- const tokenStorePath = join(baseDir, "lib", "token-store.ts");
397
- await fs.writeTextFile(tokenStorePath, tokenStore);
398
- cliLogger.debug(`Created ${tokenStorePath}`);
399
-
400
- const oauthRoute = `/**
401
- * ${config.displayName} OAuth initialization route
402
- */
403
-
404
- const SCOPE = ${JSON.stringify(config.scopes.join(" "))};
405
- const ADDITIONAL_AUTH_PARAMS = ${additionalAuthParamsLiteral};
406
- const USE_PKCE = ${usePKCELiteral};
407
- const PKCE_COOKIE_NAME = ${JSON.stringify(pkceCookieName)};
408
-
409
- function redirectWithCookie(location: string, cookie?: string): Response {
410
- const headers = new Headers({ Location: location });
411
- if (cookie) headers.append("Set-Cookie", cookie);
412
- return new Response(null, { status: 302, headers });
413
- }
414
-
415
- function toBase64Url(bytes: Uint8Array): string {
416
- let binary = "";
417
- for (const byte of bytes) {
418
- binary += String.fromCharCode(byte);
419
- }
420
- return btoa(binary).replace(/\\+/g, "-").replace(/\\//g, "_").replace(/=+$/g, "");
421
- }
422
-
423
- async function createPKCEPair(): Promise<{ verifier: string; challenge: string }> {
424
- const verifierBytes = crypto.getRandomValues(new Uint8Array(32));
425
- const verifier = toBase64Url(verifierBytes);
426
- const digest = await crypto.subtle.digest(
427
- "SHA-256",
428
- new TextEncoder().encode(verifier),
429
- );
430
- const challenge = toBase64Url(new Uint8Array(digest));
431
- return { verifier, challenge };
432
- }
433
-
434
- export async function GET(): Promise<Response> {
435
- const clientId = process.env.${config.envVarPrefix}_CLIENT_ID;
436
-
437
- if (!clientId) {
438
- return Response.json(
439
- { error: "${config.envVarPrefix}_CLIENT_ID not configured" },
440
- { status: 500 }
441
- );
442
- }
443
-
444
- const redirectUri = \`\${process.env.APP_URL || process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"}/api/auth/${config.name}/callback\`;
445
- const state = crypto.randomUUID();
446
-
447
- const params = new URLSearchParams({
448
- client_id: clientId,
449
- redirect_uri: redirectUri,
450
- response_type: "code",
451
- state,
452
- });
453
-
454
- if (SCOPE) {
455
- params.set("scope", SCOPE);
456
- }
457
-
458
- for (const [key, value] of Object.entries(ADDITIONAL_AUTH_PARAMS)) {
459
- params.set(key, value);
460
- }
461
-
462
- let pkceCookie: string | undefined;
463
- if (USE_PKCE) {
464
- const { verifier, challenge } = await createPKCEPair();
465
- params.set("code_challenge", challenge);
466
- params.set("code_challenge_method", "S256");
467
- pkceCookie =
468
- \`\${PKCE_COOKIE_NAME}=\${encodeURIComponent(verifier)}; Path=/; HttpOnly; SameSite=Lax; Max-Age=600\`;
469
- }
470
-
471
- return redirectWithCookie(\`${config.authorizationUrl}?\${params}\`, pkceCookie);
472
- }
473
- `;
474
- await fs.writeTextFile(
475
- join(projectDir, "app", "api", "auth", config.name, "route.ts"),
476
- oauthRoute,
477
- );
478
- cliLogger.debug("Created OAuth init route");
479
-
480
- const callbackRoute = `/**
481
- * ${config.displayName} OAuth callback route
482
- */
483
-
484
- import {
485
- exchangeCodeForTokens,
486
- setTokens,
487
- } from "../../../../ai/integrations/${config.name}/lib/token-store.ts";
488
-
489
- const USE_PKCE = ${usePKCELiteral};
490
- const PKCE_COOKIE_NAME = ${JSON.stringify(pkceCookieName)};
491
-
492
- function redirectWithCookie(location: string, cookie?: string): Response {
493
- const headers = new Headers({ Location: location });
494
- if (cookie) headers.append("Set-Cookie", cookie);
495
- return new Response(null, { status: 302, headers });
496
- }
497
-
498
- function clearPKCECookie(): string {
499
- return \`\${PKCE_COOKIE_NAME}=; Path=/; HttpOnly; SameSite=Lax; Max-Age=0\`;
500
- }
501
-
502
- function parseCookies(cookieHeader: string): Record<string, string> {
503
- const cookies: Record<string, string> = {};
504
- if (!cookieHeader) return cookies;
505
-
506
- for (const part of cookieHeader.split(";")) {
507
- const trimmed = part.trim();
508
- const separatorIndex = trimmed.indexOf("=");
509
- if (separatorIndex === -1) continue;
510
-
511
- const name = trimmed.slice(0, separatorIndex).trim();
512
- const value = trimmed.slice(separatorIndex + 1);
513
- if (!name) continue;
514
-
515
- try {
516
- cookies[name] = decodeURIComponent(value);
517
- } catch {
518
- cookies[name] = value;
519
- }
520
- }
521
-
522
- return cookies;
523
- }
524
-
525
- export async function GET(request: Request): Promise<Response> {
526
- const url = new URL(request.url);
527
- const code = url.searchParams.get("code");
528
- const error = url.searchParams.get("error");
529
-
530
- if (error) {
531
- console.error("${config.displayName} OAuth error:", error);
532
- return redirectWithCookie("/?error=" + encodeURIComponent(error), clearPKCECookie());
533
- }
534
-
535
- if (!code) {
536
- return redirectWithCookie("/?error=no_code", clearPKCECookie());
537
- }
538
-
539
- const redirectUri = \`\${process.env.APP_URL || process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"}/api/auth/${config.name}/callback\`;
540
- let codeVerifier: string | undefined;
541
-
542
- if (USE_PKCE) {
543
- codeVerifier = parseCookies(request.headers.get("cookie") ?? "")[PKCE_COOKIE_NAME];
544
- if (!codeVerifier) {
545
- return redirectWithCookie("/?error=missing_pkce_verifier", clearPKCECookie());
546
- }
547
- }
548
-
549
- try {
550
- const tokens = await exchangeCodeForTokens(code, redirectUri, codeVerifier);
551
-
552
- if (!tokens) {
553
- console.error("Token exchange failed");
554
- return redirectWithCookie("/?error=token_exchange_failed", clearPKCECookie());
555
- }
556
-
557
- setTokens(tokens.accessToken, tokens.refreshToken, tokens.expiresIn);
558
-
559
- return redirectWithCookie("/?connected=${config.name}", clearPKCECookie());
560
- } catch (error) {
561
- console.error("OAuth callback error:", error);
562
- return redirectWithCookie("/?error=callback_failed", clearPKCECookie());
563
- }
564
- }
565
- `;
566
- await fs.writeTextFile(
567
- join(projectDir, "app", "api", "auth", config.name, "callback", "route.ts"),
568
- callbackRoute,
569
- );
570
- cliLogger.debug("Created OAuth callback route");
571
- }
572
-
573
- async function createApiKeyFiles(baseDir: string, config: IntegrationConfig): Promise<void> {
574
- const tokenStore = `/**
575
- * API key accessor for ${config.displayName}
576
- */
577
-
578
- export function getApiKey(): string | null {
579
- return process.env.${config.envVarPrefix}_API_KEY || null;
580
- }
581
-
582
- export function requireApiKey(): string {
583
- const key = getApiKey();
584
- if (!key) {
585
- throw new Error("${config.envVarPrefix}_API_KEY not configured");
586
- }
587
- return key;
588
- }
589
- `;
590
- const tokenStorePath = join(baseDir, "lib", "token-store.ts");
591
- await fs.writeTextFile(tokenStorePath, tokenStore);
592
- cliLogger.debug(`Created ${tokenStorePath}`);
593
- }
594
-
595
- async function createClientFile(baseDir: string, config: IntegrationConfig): Promise<void> {
596
- const tokenImport = config.authType === "oauth2"
597
- ? `import { getAccessToken } from "./token-store.ts";`
598
- : `import { requireApiKey } from "./token-store.ts";`;
599
-
600
- const tokenCheck = config.authType === "oauth2"
601
- ? `const token = await getAccessToken();
602
- if (!token) {
603
- throw new Error("Not authenticated with ${config.displayName}. Please connect your account.");
604
- }`
605
- : `const apiKey = requireApiKey();`;
606
-
607
- const authHeader = config.authType === "oauth2"
608
- ? `"Authorization": \`Bearer \${token}\``
609
- : `"Authorization": \`Bearer \${apiKey}\``;
610
-
611
- const client = `/**
612
- * ${config.displayName} API Client
613
- */
614
-
615
- ${tokenImport}
616
-
617
- const API_BASE_URL = "${config.apiBaseUrl}";
618
-
619
- interface ${config.displayName}Response<T> {
620
- data?: T;
621
- error?: string;
622
- }
623
-
624
- /**
625
- * Make an authenticated request to the ${config.displayName} API
626
- */
627
- async function ${config.name}Fetch<T>(
628
- endpoint: string,
629
- options: RequestInit = {}
630
- ): Promise<T> {
631
- ${tokenCheck}
632
-
633
- const response = await fetch(\`\${API_BASE_URL}\${endpoint}\`, {
634
- ...options,
635
- headers: {
636
- ${authHeader},
637
- "Content-Type": "application/json",
638
- ...options.headers,
639
- },
640
- });
641
-
642
- if (!response.ok) {
643
- const error = await response.text();
644
- throw new Error(\`${config.displayName} API error: \${response.status} \${error}\`);
645
- }
646
-
647
- return response.json();
648
- }
649
-
650
- // ============================================================================
651
- // API Methods - Customize these for your integration
652
- // ============================================================================
653
-
654
- /**
655
- * List items from ${config.displayName}
656
- */
657
- export async function listItems(options?: {
658
- limit?: number;
659
- offset?: number;
660
- }): Promise<unknown[]> {
661
- const params = new URLSearchParams();
662
- if (options?.limit) params.set("limit", String(options.limit));
663
- if (options?.offset) params.set("offset", String(options.offset));
664
-
665
- const query = params.toString() ? \`?\${params}\` : "";
666
- return ${config.name}Fetch<unknown[]>(\`/items\${query}\`);
667
- }
668
-
669
- /**
670
- * Get a single item by ID
671
- */
672
- export async function getItem(id: string): Promise<unknown> {
673
- return ${config.name}Fetch<unknown>(\`/items/\${id}\`);
674
- }
675
-
676
- /**
677
- * Create a new item
678
- */
679
- export async function createItem(data: Record<string, unknown>): Promise<unknown> {
680
- return ${config.name}Fetch<unknown>("/items", {
681
- method: "POST",
682
- body: JSON.stringify(data),
683
- });
684
- }
685
-
686
- /**
687
- * Search items
688
- */
689
- export async function searchItems(query: string): Promise<unknown[]> {
690
- return ${config.name}Fetch<unknown[]>(\`/search?q=\${encodeURIComponent(query)}\`);
691
- }
692
- `;
693
- await fs.writeTextFile(join(baseDir, "lib", `${config.name}-client.ts`), client);
694
- cliLogger.debug("Created API client");
695
- }
696
-
697
- async function createToolSkeletons(baseDir: string, config: IntegrationConfig): Promise<void> {
698
- const tools = [
699
- {
700
- id: `list-${config.name}-items`,
701
- name: `List ${config.displayName} Items`,
702
- description: `List items from ${config.displayName}`,
703
- file: "list-items.ts",
704
- },
705
- {
706
- id: `get-${config.name}-item`,
707
- name: `Get ${config.displayName} Item`,
708
- description: `Get a specific item from ${config.displayName}`,
709
- file: "get-item.ts",
710
- },
711
- {
712
- id: `search-${config.name}`,
713
- name: `Search ${config.displayName}`,
714
- description: `Search for items in ${config.displayName}`,
715
- file: "search.ts",
716
- },
717
- ];
718
-
719
- for (const tool of tools) {
720
- const inputSchema = getToolInputSchema(tool.file);
721
- const executeBody = getToolExecuteBody(tool.file);
722
-
723
- const toolContent = `/**
724
- * ${tool.name}
725
- */
726
-
727
- import { tool } from "veryfront/tool";
728
- import { defineSchema } from "veryfront/schemas";
729
- import { listItems, getItem, searchItems } from "../lib/${config.name}-client.ts";
730
-
731
- const getInputSchema = defineSchema((v) =>
732
- v.object({
733
- ${inputSchema}
734
- })
735
- );
736
-
737
- export default tool({
738
- id: "${tool.id}",
739
- description: "${tool.description}",
740
- inputSchema: getInputSchema(),
741
- execute: async (input) => {
742
- try {
743
- ${executeBody}
744
- } catch (error) {
745
- return {
746
- success: false,
747
- error: error instanceof Error ? error.message : "Unknown error",
748
- };
749
- }
750
- },
751
- });
752
- `;
753
- await fs.writeTextFile(join(baseDir, "tools", tool.file), toolContent);
754
- cliLogger.debug(`Created tool: ${tool.file}`);
755
- }
756
- }
757
-
758
- async function createEnvExample(projectDir: string, config: IntegrationConfig): Promise<void> {
759
- const envExamplePath = join(projectDir, ".env.example");
760
-
761
- const envContent = config.authType === "oauth2"
762
- ? `
763
- # ${config.displayName} OAuth
764
- ${config.envVarPrefix}_CLIENT_ID=your_client_id
765
- ${config.envVarPrefix}_CLIENT_SECRET=your_client_secret
766
- `
767
- : `
768
- # ${config.displayName} API
769
- ${config.envVarPrefix}_API_KEY=your_api_key
770
- `;
771
-
772
- try {
773
- const existing = await fs.readTextFile(envExamplePath);
774
- if (existing.includes(config.envVarPrefix)) return;
775
-
776
- await fs.writeTextFile(envExamplePath, existing + envContent);
777
- cliLogger.debug("Updated .env.example");
778
- } catch {
779
- await fs.writeTextFile(envExamplePath, `# Environment Variables${envContent}`);
780
- cliLogger.debug("Created .env.example");
781
- }
782
- }