veryfront 0.1.545 → 0.1.546

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 (2122) hide show
  1. package/esm/deno.js +3 -3
  2. package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.d.ts.map +1 -1
  3. package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.js +28 -2
  4. package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
  5. package/esm/extensions/ext-sandbox-shell-tools/src/index.js +22 -2
  6. package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
  7. package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +21 -1
  8. package/esm/src/agent/index.d.ts +25 -4
  9. package/esm/src/agent/index.d.ts.map +1 -1
  10. package/esm/src/agent/index.js +25 -4
  11. package/esm/src/agent/react/use-chat/streaming/handler.d.ts +1 -0
  12. package/esm/src/agent/react/use-chat/streaming/handler.d.ts.map +1 -1
  13. package/esm/src/agent/react/use-chat/streaming/handler.js +129 -6
  14. package/esm/src/agent/react/use-chat/streaming/index.d.ts +1 -1
  15. package/esm/src/agent/react/use-chat/streaming/index.d.ts.map +1 -1
  16. package/esm/src/agent/react/use-chat/streaming/index.js +1 -1
  17. package/esm/src/agent/react/use-chat/types.d.ts +2 -0
  18. package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
  19. package/esm/src/agent/react/use-chat/use-chat.d.ts +2 -2
  20. package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
  21. package/esm/src/agent/react/use-chat/use-chat.js +7 -4
  22. package/esm/src/chat/index.d.ts +2 -2
  23. package/esm/src/chat/index.js +2 -2
  24. package/esm/src/integrations/index.d.ts +8 -1
  25. package/esm/src/integrations/index.d.ts.map +1 -1
  26. package/esm/src/integrations/index.js +8 -1
  27. package/esm/src/jobs/index.d.ts +0 -1
  28. package/esm/src/jobs/index.d.ts.map +1 -1
  29. package/esm/src/jobs/index.js +0 -1
  30. package/esm/src/mcp/index.d.ts +2 -6
  31. package/esm/src/mcp/index.d.ts.map +1 -1
  32. package/esm/src/mcp/index.js +2 -6
  33. package/esm/src/prompt/index.d.ts +5 -0
  34. package/esm/src/prompt/index.d.ts.map +1 -1
  35. package/esm/src/prompt/index.js +5 -0
  36. package/esm/src/react/components/chat/chat/index.d.ts +1 -1
  37. package/esm/src/react/components/chat/chat/index.js +1 -1
  38. package/esm/src/resource/index.d.ts +10 -7
  39. package/esm/src/resource/index.d.ts.map +1 -1
  40. package/esm/src/resource/index.js +10 -7
  41. package/esm/src/sandbox/types.d.ts +1 -1
  42. package/esm/src/sandbox/types.d.ts.map +1 -1
  43. package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
  44. package/esm/src/server/handlers/dev/framework-candidates.generated.js +2 -0
  45. package/esm/src/tool/index.d.ts +44 -24
  46. package/esm/src/tool/index.d.ts.map +1 -1
  47. package/esm/src/tool/index.js +44 -24
  48. package/esm/src/utils/version-constant.d.ts +1 -1
  49. package/esm/src/utils/version-constant.js +1 -1
  50. package/package.json +51 -16
  51. package/src/_dnt.polyfills.ts +0 -558
  52. package/src/_dnt.shims.ts +0 -71
  53. package/src/cli/app/actions.ts +0 -149
  54. package/src/cli/app/components/inline-input.ts +0 -243
  55. package/src/cli/app/components/list-select.ts +0 -197
  56. package/src/cli/app/data/slug-words.ts +0 -303
  57. package/src/cli/app/handlers/remote-navigation.ts +0 -65
  58. package/src/cli/app/handlers/view-handlers.ts +0 -173
  59. package/src/cli/app/index.ts +0 -19
  60. package/src/cli/app/logging/console-interceptor.ts +0 -97
  61. package/src/cli/app/operations/project-creation.ts +0 -71
  62. package/src/cli/app/shell.ts +0 -666
  63. package/src/cli/app/startup.ts +0 -48
  64. package/src/cli/app/state.ts +0 -383
  65. package/src/cli/app/types.ts +0 -40
  66. package/src/cli/app/utils.ts +0 -65
  67. package/src/cli/app/views/auth.ts +0 -30
  68. package/src/cli/app/views/dashboard.ts +0 -189
  69. package/src/cli/app/views/help.ts +0 -65
  70. package/src/cli/app/views/index.ts +0 -12
  71. package/src/cli/app/views/new-project.ts +0 -36
  72. package/src/cli/app/views/startup.ts +0 -112
  73. package/src/cli/app/views/templates.ts +0 -35
  74. package/src/cli/auth/browser.ts +0 -26
  75. package/src/cli/auth/callback-server.ts +0 -297
  76. package/src/cli/auth/index.ts +0 -16
  77. package/src/cli/auth/login.ts +0 -303
  78. package/src/cli/auth/provider-store.ts +0 -82
  79. package/src/cli/auth/providers/anthropic.ts +0 -45
  80. package/src/cli/auth/providers/openai.ts +0 -44
  81. package/src/cli/auth/token-store.ts +0 -63
  82. package/src/cli/auth/utils.ts +0 -31
  83. package/src/cli/commands/analyze-chunks/command-help.ts +0 -18
  84. package/src/cli/commands/analyze-chunks/command.ts +0 -89
  85. package/src/cli/commands/analyze-chunks/handler.ts +0 -33
  86. package/src/cli/commands/build/command-help.ts +0 -51
  87. package/src/cli/commands/build/command.ts +0 -93
  88. package/src/cli/commands/build/config-display.ts +0 -48
  89. package/src/cli/commands/build/error-handler.ts +0 -30
  90. package/src/cli/commands/build/handler.ts +0 -103
  91. package/src/cli/commands/build/stats-display.ts +0 -40
  92. package/src/cli/commands/build/types.ts +0 -1
  93. package/src/cli/commands/clean/command-help.ts +0 -33
  94. package/src/cli/commands/clean/command.ts +0 -151
  95. package/src/cli/commands/clean/handler.ts +0 -33
  96. package/src/cli/commands/completions/command-help.ts +0 -15
  97. package/src/cli/commands/completions/command.ts +0 -163
  98. package/src/cli/commands/completions/handler.ts +0 -29
  99. package/src/cli/commands/config/command-help.ts +0 -15
  100. package/src/cli/commands/config/handler.ts +0 -90
  101. package/src/cli/commands/demo/command-help.ts +0 -27
  102. package/src/cli/commands/demo/demo.ts +0 -630
  103. package/src/cli/commands/demo/handler.ts +0 -30
  104. package/src/cli/commands/demo/index.ts +0 -2
  105. package/src/cli/commands/demo/steps.ts +0 -68
  106. package/src/cli/commands/deploy/command-help.ts +0 -42
  107. package/src/cli/commands/deploy/command.ts +0 -287
  108. package/src/cli/commands/deploy/handler.ts +0 -13
  109. package/src/cli/commands/deploy/index.ts +0 -14
  110. package/src/cli/commands/dev/command-help.ts +0 -34
  111. package/src/cli/commands/dev/command.ts +0 -337
  112. package/src/cli/commands/dev/handler.ts +0 -76
  113. package/src/cli/commands/dev/index.ts +0 -7
  114. package/src/cli/commands/doctor/ai-checks.ts +0 -65
  115. package/src/cli/commands/doctor/command-help.ts +0 -15
  116. package/src/cli/commands/doctor/handler.ts +0 -27
  117. package/src/cli/commands/doctor/index.ts +0 -89
  118. package/src/cli/commands/doctor/project-structure.ts +0 -56
  119. package/src/cli/commands/doctor/server-checks.ts +0 -142
  120. package/src/cli/commands/doctor/types.ts +0 -6
  121. package/src/cli/commands/doctor/version-checks.ts +0 -67
  122. package/src/cli/commands/extension/command-help.ts +0 -18
  123. package/src/cli/commands/extension/handler.ts +0 -41
  124. package/src/cli/commands/extension/init-command.ts +0 -150
  125. package/src/cli/commands/extension/validate-command.ts +0 -78
  126. package/src/cli/commands/files/command-help.ts +0 -41
  127. package/src/cli/commands/files/command.ts +0 -343
  128. package/src/cli/commands/files/handler.ts +0 -6
  129. package/src/cli/commands/files/index.ts +0 -19
  130. package/src/cli/commands/generate/command-help.ts +0 -21
  131. package/src/cli/commands/generate/command.ts +0 -155
  132. package/src/cli/commands/generate/handler.ts +0 -55
  133. package/src/cli/commands/generate/index.ts +0 -6
  134. package/src/cli/commands/generate/integration-generator-helpers.ts +0 -185
  135. package/src/cli/commands/generate/integration-generator.ts +0 -782
  136. package/src/cli/commands/init/catalog.ts +0 -224
  137. package/src/cli/commands/init/command-help.ts +0 -54
  138. package/src/cli/commands/init/config-generator.ts +0 -84
  139. package/src/cli/commands/init/handler.ts +0 -79
  140. package/src/cli/commands/init/index.ts +0 -8
  141. package/src/cli/commands/init/init-command.ts +0 -566
  142. package/src/cli/commands/init/interactive-wizard.ts +0 -170
  143. package/src/cli/commands/init/path-utils.ts +0 -15
  144. package/src/cli/commands/init/types.ts +0 -28
  145. package/src/cli/commands/install/command-help.ts +0 -63
  146. package/src/cli/commands/install/detect.ts +0 -51
  147. package/src/cli/commands/install/handler.ts +0 -33
  148. package/src/cli/commands/install/install.ts +0 -112
  149. package/src/cli/commands/install/registry.ts +0 -79
  150. package/src/cli/commands/install/types.ts +0 -58
  151. package/src/cli/commands/install/uninstall.ts +0 -139
  152. package/src/cli/commands/issues/command-help.ts +0 -50
  153. package/src/cli/commands/issues/command.ts +0 -364
  154. package/src/cli/commands/issues/handler.ts +0 -10
  155. package/src/cli/commands/issues/index.ts +0 -6
  156. package/src/cli/commands/knowledge/command-help.ts +0 -44
  157. package/src/cli/commands/knowledge/command-helpers.ts +0 -295
  158. package/src/cli/commands/knowledge/command.ts +0 -802
  159. package/src/cli/commands/knowledge/handler.ts +0 -6
  160. package/src/cli/commands/knowledge/index.ts +0 -2
  161. package/src/cli/commands/knowledge/parser-source.ts +0 -641
  162. package/src/cli/commands/knowledge/result.ts +0 -88
  163. package/src/cli/commands/knowledge/source-policy.ts +0 -164
  164. package/src/cli/commands/lint/command-help.ts +0 -15
  165. package/src/cli/commands/lint/command.ts +0 -59
  166. package/src/cli/commands/lint/handler.ts +0 -36
  167. package/src/cli/commands/lock/command-help.ts +0 -42
  168. package/src/cli/commands/lock/command.ts +0 -193
  169. package/src/cli/commands/lock/handler.ts +0 -35
  170. package/src/cli/commands/login/command-help.ts +0 -38
  171. package/src/cli/commands/logout/command-help.ts +0 -14
  172. package/src/cli/commands/mcp/command-help.ts +0 -36
  173. package/src/cli/commands/mcp/handler.ts +0 -37
  174. package/src/cli/commands/merge/command-help.ts +0 -32
  175. package/src/cli/commands/merge/command.ts +0 -224
  176. package/src/cli/commands/merge/handler.ts +0 -13
  177. package/src/cli/commands/open/command-help.ts +0 -19
  178. package/src/cli/commands/open/command.ts +0 -33
  179. package/src/cli/commands/open/handler.ts +0 -38
  180. package/src/cli/commands/pull/command-help.ts +0 -56
  181. package/src/cli/commands/pull/command.ts +0 -491
  182. package/src/cli/commands/pull/handler.ts +0 -13
  183. package/src/cli/commands/pull/index.ts +0 -3
  184. package/src/cli/commands/push/command-help.ts +0 -39
  185. package/src/cli/commands/push/command.ts +0 -404
  186. package/src/cli/commands/push/handler.ts +0 -13
  187. package/src/cli/commands/push/index.ts +0 -3
  188. package/src/cli/commands/routes/command-help.ts +0 -15
  189. package/src/cli/commands/routes/command.ts +0 -88
  190. package/src/cli/commands/routes/handler.ts +0 -31
  191. package/src/cli/commands/schema/command-help.ts +0 -17
  192. package/src/cli/commands/schema/command.ts +0 -64
  193. package/src/cli/commands/schema/handler.ts +0 -36
  194. package/src/cli/commands/serve/command-help.ts +0 -25
  195. package/src/cli/commands/serve/command.ts +0 -120
  196. package/src/cli/commands/serve/handler.ts +0 -43
  197. package/src/cli/commands/serve/split-mode.ts +0 -193
  198. package/src/cli/commands/skills/command-help.ts +0 -23
  199. package/src/cli/commands/skills/command.ts +0 -23
  200. package/src/cli/commands/skills/create.ts +0 -87
  201. package/src/cli/commands/skills/handler.ts +0 -106
  202. package/src/cli/commands/skills/validate.ts +0 -110
  203. package/src/cli/commands/start/command-help.ts +0 -52
  204. package/src/cli/commands/start/command.ts +0 -258
  205. package/src/cli/commands/start/handler.ts +0 -35
  206. package/src/cli/commands/studio/command-help.ts +0 -27
  207. package/src/cli/commands/studio/command.ts +0 -96
  208. package/src/cli/commands/studio/handler.ts +0 -28
  209. package/src/cli/commands/studio/index.ts +0 -6
  210. package/src/cli/commands/styles/command-help.ts +0 -22
  211. package/src/cli/commands/styles/command.ts +0 -303
  212. package/src/cli/commands/styles/handler.ts +0 -28
  213. package/src/cli/commands/task/command-help.ts +0 -23
  214. package/src/cli/commands/task/command.ts +0 -112
  215. package/src/cli/commands/task/handler.ts +0 -28
  216. package/src/cli/commands/test/command-help.ts +0 -18
  217. package/src/cli/commands/test/command.ts +0 -90
  218. package/src/cli/commands/test/handler.ts +0 -74
  219. package/src/cli/commands/up/command-help.ts +0 -25
  220. package/src/cli/commands/up/command.ts +0 -218
  221. package/src/cli/commands/up/handler.ts +0 -11
  222. package/src/cli/commands/up/index.ts +0 -7
  223. package/src/cli/commands/uploads/command-help.ts +0 -46
  224. package/src/cli/commands/uploads/command.ts +0 -482
  225. package/src/cli/commands/uploads/handler.ts +0 -6
  226. package/src/cli/commands/uploads/index.ts +0 -23
  227. package/src/cli/commands/whoami/command-help.ts +0 -14
  228. package/src/cli/commands/worker/command-help.ts +0 -49
  229. package/src/cli/commands/worker/command.ts +0 -114
  230. package/src/cli/commands/worker/handler.ts +0 -36
  231. package/src/cli/commands/workflow/command-help.ts +0 -22
  232. package/src/cli/commands/workflow/command.ts +0 -157
  233. package/src/cli/commands/workflow/handler.ts +0 -30
  234. package/src/cli/help/command-definitions.ts +0 -96
  235. package/src/cli/help/command-help.ts +0 -73
  236. package/src/cli/help/formatters.ts +0 -102
  237. package/src/cli/help/index.ts +0 -6
  238. package/src/cli/help/logo.ts +0 -5
  239. package/src/cli/help/main-help.ts +0 -98
  240. package/src/cli/help/tips.ts +0 -54
  241. package/src/cli/help/types.ts +0 -25
  242. package/src/cli/main.ts +0 -74
  243. package/src/cli/mcp/advanced-tools.ts +0 -61
  244. package/src/cli/mcp/dev-server-client.ts +0 -82
  245. package/src/cli/mcp/index.ts +0 -2
  246. package/src/cli/mcp/jsonrpc.ts +0 -186
  247. package/src/cli/mcp/remote-file-tool-helpers.ts +0 -27
  248. package/src/cli/mcp/remote-file-tools.ts +0 -826
  249. package/src/cli/mcp/server.ts +0 -531
  250. package/src/cli/mcp/standalone.ts +0 -646
  251. package/src/cli/mcp/stdio.ts +0 -57
  252. package/src/cli/mcp/tools/bootstrap-tool.ts +0 -71
  253. package/src/cli/mcp/tools/build-tool.ts +0 -119
  254. package/src/cli/mcp/tools/catalog-tools.ts +0 -507
  255. package/src/cli/mcp/tools/cicd-tools.ts +0 -17
  256. package/src/cli/mcp/tools/context7-tools.ts +0 -114
  257. package/src/cli/mcp/tools/deploy-tool.ts +0 -136
  258. package/src/cli/mcp/tools/dev-tools.ts +0 -475
  259. package/src/cli/mcp/tools/helpers.ts +0 -141
  260. package/src/cli/mcp/tools/introspection-tools.ts +0 -53
  261. package/src/cli/mcp/tools/project-tools.ts +0 -412
  262. package/src/cli/mcp/tools/run-lint-tool.ts +0 -109
  263. package/src/cli/mcp/tools/run-tests-tool.ts +0 -117
  264. package/src/cli/mcp/tools/scaffold-tools.ts +0 -433
  265. package/src/cli/mcp/tools/skill-tools.ts +0 -194
  266. package/src/cli/mcp/tools.ts +0 -267
  267. package/src/cli/router.ts +0 -299
  268. package/src/cli/shared/animation.ts +0 -25
  269. package/src/cli/shared/args.ts +0 -269
  270. package/src/cli/shared/config.ts +0 -258
  271. package/src/cli/shared/constants.ts +0 -29
  272. package/src/cli/shared/ensure-content-processor.ts +0 -17
  273. package/src/cli/shared/handler-utils.ts +0 -17
  274. package/src/cli/shared/interactive.ts +0 -33
  275. package/src/cli/shared/json-output.ts +0 -96
  276. package/src/cli/shared/parsed-args.ts +0 -9
  277. package/src/cli/shared/project-source-context.ts +0 -96
  278. package/src/cli/shared/reserve-slug.ts +0 -114
  279. package/src/cli/shared/server-startup.ts +0 -119
  280. package/src/cli/shared/slug.ts +0 -12
  281. package/src/cli/shared/suggest.ts +0 -33
  282. package/src/cli/shared/types.ts +0 -36
  283. package/src/cli/shared/update-check.ts +0 -108
  284. package/src/cli/skills/core-skills.ts +0 -233
  285. package/src/cli/skills/loader.ts +0 -98
  286. package/src/cli/skills/types.ts +0 -44
  287. package/src/cli/sync/ignore.ts +0 -143
  288. package/src/cli/sync/index.ts +0 -21
  289. package/src/cli/sync/project-discovery.ts +0 -81
  290. package/src/cli/templates/feature-loader.ts +0 -201
  291. package/src/cli/templates/index.ts +0 -77
  292. package/src/cli/templates/integration-loader-helpers.ts +0 -49
  293. package/src/cli/templates/integration-loader.ts +0 -709
  294. package/src/cli/templates/loader.ts +0 -64
  295. package/src/cli/templates/manifest.js +0 -623
  296. package/src/cli/templates/types.ts +0 -78
  297. package/src/cli/ui/animated-text.ts +0 -89
  298. package/src/cli/ui/ansi.ts +0 -91
  299. package/src/cli/ui/box.ts +0 -1
  300. package/src/cli/ui/colors.ts +0 -240
  301. package/src/cli/ui/components/banner.ts +0 -170
  302. package/src/cli/ui/components/index.ts +0 -4
  303. package/src/cli/ui/components/multi-select.ts +0 -163
  304. package/src/cli/ui/components/shortcuts.ts +0 -30
  305. package/src/cli/ui/components/table.ts +0 -187
  306. package/src/cli/ui/constants.ts +0 -20
  307. package/src/cli/ui/dot-matrix.ts +0 -344
  308. package/src/cli/ui/index.ts +0 -7
  309. package/src/cli/ui/keyboard.ts +0 -138
  310. package/src/cli/ui/layout.ts +0 -142
  311. package/src/cli/ui/progress.ts +0 -246
  312. package/src/cli/ui/tui.ts +0 -311
  313. package/src/cli/utils/env-prompt.ts +0 -190
  314. package/src/cli/utils/fs.ts +0 -33
  315. package/src/cli/utils/git.ts +0 -58
  316. package/src/cli/utils/index.ts +0 -230
  317. package/src/cli/utils/package-manager.ts +0 -204
  318. package/src/cli/utils/project.ts +0 -16
  319. package/src/cli/utils/sanitize-job-output.ts +0 -23
  320. package/src/cli/utils/string.ts +0 -27
  321. package/src/cli/utils/terminal-select.ts +0 -371
  322. package/src/cli/utils/write-job-result.ts +0 -23
  323. package/src/deno.js +0 -429
  324. package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +0 -105
  325. package/src/deps/esm.sh/@types/react-dom@19.2.3/server.d.ts +0 -183
  326. package/src/deps/esm.sh/@types/react-dom@19.2.3/static.d.ts +0 -153
  327. package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +0 -166
  328. package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +0 -4370
  329. package/src/deps/esm.sh/@types/react@19.2.14/jsx-dev-runtime.d.ts +0 -45
  330. package/src/deps/esm.sh/@types/react@19.2.14/jsx-runtime.d.ts +0 -36
  331. package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
  332. package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
  333. package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +0 -30
  334. package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +0 -22569
  335. package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -105
  336. package/src/deps/esm.sh/react-dom@19.2.4/client.js +0 -5
  337. package/src/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -183
  338. package/src/deps/esm.sh/react-dom@19.2.4/server.js +0 -5
  339. package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -45
  340. package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
  341. package/src/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -36
  342. package/src/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
  343. package/src/deps/esm.sh/react@19.2.4.d.ts +0 -4370
  344. package/src/deps/esm.sh/react@19.2.4.js +0 -3
  345. package/src/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -30
  346. package/src/deps/esm.sh/scheduler@^0.27.0.js +0 -3
  347. package/src/deps/jsr.io/@std/assert/1.0.19/almost_equals.ts +0 -56
  348. package/src/deps/jsr.io/@std/assert/1.0.19/array_includes.ts +0 -76
  349. package/src/deps/jsr.io/@std/assert/1.0.19/assert.ts +0 -24
  350. package/src/deps/jsr.io/@std/assert/1.0.19/assertion_error.ts +0 -31
  351. package/src/deps/jsr.io/@std/assert/1.0.19/equal.ts +0 -226
  352. package/src/deps/jsr.io/@std/assert/1.0.19/equals.ts +0 -68
  353. package/src/deps/jsr.io/@std/assert/1.0.19/exists.ts +0 -31
  354. package/src/deps/jsr.io/@std/assert/1.0.19/fail.ts +0 -21
  355. package/src/deps/jsr.io/@std/assert/1.0.19/false.ts +0 -27
  356. package/src/deps/jsr.io/@std/assert/1.0.19/greater.ts +0 -30
  357. package/src/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.ts +0 -36
  358. package/src/deps/jsr.io/@std/assert/1.0.19/instance_of.ts +0 -64
  359. package/src/deps/jsr.io/@std/assert/1.0.19/is_error.ts +0 -65
  360. package/src/deps/jsr.io/@std/assert/1.0.19/less.ts +0 -29
  361. package/src/deps/jsr.io/@std/assert/1.0.19/less_or_equal.ts +0 -36
  362. package/src/deps/jsr.io/@std/assert/1.0.19/match.ts +0 -30
  363. package/src/deps/jsr.io/@std/assert/1.0.19/mod.ts +0 -47
  364. package/src/deps/jsr.io/@std/assert/1.0.19/not_equals.ts +0 -43
  365. package/src/deps/jsr.io/@std/assert/1.0.19/not_instance_of.ts +0 -33
  366. package/src/deps/jsr.io/@std/assert/1.0.19/not_match.ts +0 -30
  367. package/src/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.ts +0 -42
  368. package/src/deps/jsr.io/@std/assert/1.0.19/object_match.ts +0 -224
  369. package/src/deps/jsr.io/@std/assert/1.0.19/rejects.ts +0 -123
  370. package/src/deps/jsr.io/@std/assert/1.0.19/strict_equals.ts +0 -68
  371. package/src/deps/jsr.io/@std/assert/1.0.19/string_includes.ts +0 -30
  372. package/src/deps/jsr.io/@std/assert/1.0.19/throws.ts +0 -111
  373. package/src/deps/jsr.io/@std/assert/1.0.19/unimplemented.ts +0 -21
  374. package/src/deps/jsr.io/@std/assert/1.0.19/unreachable.ts +0 -21
  375. package/src/deps/jsr.io/@std/dotenv/0.225.6/mod.ts +0 -251
  376. package/src/deps/jsr.io/@std/dotenv/0.225.6/parse.ts +0 -110
  377. package/src/deps/jsr.io/@std/dotenv/0.225.6/stringify.ts +0 -48
  378. package/src/deps/jsr.io/@std/fmt/1.0.10/colors.ts +0 -1004
  379. package/src/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.ts +0 -47
  380. package/src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts +0 -25
  381. package/src/deps/jsr.io/@std/fs/1.0.23/_is_same_path.ts +0 -23
  382. package/src/deps/jsr.io/@std/fs/1.0.23/_is_subdir.ts +0 -34
  383. package/src/deps/jsr.io/@std/fs/1.0.23/_to_path_string.ts +0 -17
  384. package/src/deps/jsr.io/@std/fs/1.0.23/copy.ts +0 -411
  385. package/src/deps/jsr.io/@std/fs/1.0.23/empty_dir.ts +0 -91
  386. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts +0 -110
  387. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_file.ts +0 -100
  388. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_link.ts +0 -66
  389. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.ts +0 -181
  390. package/src/deps/jsr.io/@std/fs/1.0.23/eol.ts +0 -75
  391. package/src/deps/jsr.io/@std/fs/1.0.23/exists.ts +0 -316
  392. package/src/deps/jsr.io/@std/fs/1.0.23/expand_glob.ts +0 -564
  393. package/src/deps/jsr.io/@std/fs/1.0.23/mod.ts +0 -31
  394. package/src/deps/jsr.io/@std/fs/1.0.23/move.ts +0 -171
  395. package/src/deps/jsr.io/@std/fs/1.0.23/walk.ts +0 -956
  396. package/src/deps/jsr.io/@std/internal/1.0.13/_os.ts +0 -15
  397. package/src/deps/jsr.io/@std/internal/1.0.13/assertion_state.ts +0 -248
  398. package/src/deps/jsr.io/@std/internal/1.0.13/build_message.ts +0 -147
  399. package/src/deps/jsr.io/@std/internal/1.0.13/diff.ts +0 -317
  400. package/src/deps/jsr.io/@std/internal/1.0.13/diff_str.ts +0 -208
  401. package/src/deps/jsr.io/@std/internal/1.0.13/format.ts +0 -89
  402. package/src/deps/jsr.io/@std/internal/1.0.13/os.ts +0 -7
  403. package/src/deps/jsr.io/@std/internal/1.0.13/styles.ts +0 -233
  404. package/src/deps/jsr.io/@std/internal/1.0.13/types.ts +0 -30
  405. package/src/deps/jsr.io/@std/path/1.1.4/_common/assert_path.ts +0 -10
  406. package/src/deps/jsr.io/@std/path/1.1.4/_common/basename.ts +0 -53
  407. package/src/deps/jsr.io/@std/path/1.1.4/_common/common.ts +0 -26
  408. package/src/deps/jsr.io/@std/path/1.1.4/_common/constants.ts +0 -49
  409. package/src/deps/jsr.io/@std/path/1.1.4/_common/dirname.ts +0 -9
  410. package/src/deps/jsr.io/@std/path/1.1.4/_common/format.ts +0 -25
  411. package/src/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.ts +0 -12
  412. package/src/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.ts +0 -295
  413. package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize.ts +0 -9
  414. package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.ts +0 -74
  415. package/src/deps/jsr.io/@std/path/1.1.4/_common/relative.ts +0 -10
  416. package/src/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.ts +0 -25
  417. package/src/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.ts +0 -17
  418. package/src/deps/jsr.io/@std/path/1.1.4/basename.ts +0 -37
  419. package/src/deps/jsr.io/@std/path/1.1.4/common.ts +0 -35
  420. package/src/deps/jsr.io/@std/path/1.1.4/constants.ts +0 -18
  421. package/src/deps/jsr.io/@std/path/1.1.4/dirname.ts +0 -30
  422. package/src/deps/jsr.io/@std/path/1.1.4/extname.ts +0 -29
  423. package/src/deps/jsr.io/@std/path/1.1.4/format.ts +0 -30
  424. package/src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts +0 -30
  425. package/src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts +0 -94
  426. package/src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts +0 -30
  427. package/src/deps/jsr.io/@std/path/1.1.4/is_glob.ts +0 -49
  428. package/src/deps/jsr.io/@std/path/1.1.4/join.ts +0 -31
  429. package/src/deps/jsr.io/@std/path/1.1.4/join_globs.ts +0 -42
  430. package/src/deps/jsr.io/@std/path/1.1.4/mod.ts +0 -217
  431. package/src/deps/jsr.io/@std/path/1.1.4/normalize.ts +0 -33
  432. package/src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts +0 -45
  433. package/src/deps/jsr.io/@std/path/1.1.4/parse.ts +0 -44
  434. package/src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts +0 -10
  435. package/src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts +0 -62
  436. package/src/deps/jsr.io/@std/path/1.1.4/posix/common.ts +0 -26
  437. package/src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts +0 -15
  438. package/src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts +0 -72
  439. package/src/deps/jsr.io/@std/path/1.1.4/posix/extname.ts +0 -96
  440. package/src/deps/jsr.io/@std/path/1.1.4/posix/format.ts +0 -31
  441. package/src/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.ts +0 -25
  442. package/src/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.ts +0 -94
  443. package/src/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.ts +0 -25
  444. package/src/deps/jsr.io/@std/path/1.1.4/posix/is_glob.ts +0 -4
  445. package/src/deps/jsr.io/@std/path/1.1.4/posix/join.ts +0 -46
  446. package/src/deps/jsr.io/@std/path/1.1.4/posix/join_globs.ts +0 -45
  447. package/src/deps/jsr.io/@std/path/1.1.4/posix/mod.ts +0 -44
  448. package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize.ts +0 -63
  449. package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.ts +0 -43
  450. package/src/deps/jsr.io/@std/path/1.1.4/posix/parse.ts +0 -121
  451. package/src/deps/jsr.io/@std/path/1.1.4/posix/relative.ts +0 -103
  452. package/src/deps/jsr.io/@std/path/1.1.4/posix/resolve.ts +0 -71
  453. package/src/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.ts +0 -32
  454. package/src/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.ts +0 -21
  455. package/src/deps/jsr.io/@std/path/1.1.4/relative.ts +0 -32
  456. package/src/deps/jsr.io/@std/path/1.1.4/resolve.ts +0 -32
  457. package/src/deps/jsr.io/@std/path/1.1.4/to_file_url.ts +0 -30
  458. package/src/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.ts +0 -31
  459. package/src/deps/jsr.io/@std/path/1.1.4/types.ts +0 -40
  460. package/src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts +0 -28
  461. package/src/deps/jsr.io/@std/path/1.1.4/windows/basename.ts +0 -54
  462. package/src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts +0 -15
  463. package/src/deps/jsr.io/@std/path/1.1.4/windows/dirname.ts +0 -118
  464. package/src/deps/jsr.io/@std/path/1.1.4/windows/extname.ts +0 -90
  465. package/src/deps/jsr.io/@std/path/1.1.4/windows/format.ts +0 -31
  466. package/src/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.ts +0 -34
  467. package/src/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.ts +0 -92
  468. package/src/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.ts +0 -40
  469. package/src/deps/jsr.io/@std/path/1.1.4/windows/join.ts +0 -78
  470. package/src/deps/jsr.io/@std/path/1.1.4/windows/join_globs.ts +0 -46
  471. package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize.ts +0 -136
  472. package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.ts +0 -43
  473. package/src/deps/jsr.io/@std/path/1.1.4/windows/parse.ts +0 -184
  474. package/src/deps/jsr.io/@std/path/1.1.4/windows/relative.ts +0 -128
  475. package/src/deps/jsr.io/@std/path/1.1.4/windows/resolve.ts +0 -178
  476. package/src/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.ts +0 -38
  477. package/src/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.ts +0 -60
  478. package/src/deps/jsr.io/@std/testing/1.0.18/_test_suite.ts +0 -461
  479. package/src/deps/jsr.io/@std/testing/1.0.18/bdd.ts +0 -1294
  480. package/src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts +0 -55
  481. package/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts +0 -1845
  482. package/src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts +0 -183
  483. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts +0 -127
  484. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts +0 -37
  485. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts +0 -112
  486. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts +0 -174
  487. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts +0 -17
  488. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts +0 -13
  489. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts +0 -27
  490. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.ts +0 -30
  491. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.ts +0 -22
  492. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.ts +0 -33
  493. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.ts +0 -13
  494. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.ts +0 -17
  495. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.ts +0 -12
  496. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.ts +0 -101
  497. package/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.ts +0 -23
  498. package/src/deps/jsr.io/@std/yaml/1.1.0/_type.ts +0 -49
  499. package/src/deps/jsr.io/@std/yaml/1.1.0/_utils.ts +0 -16
  500. package/src/deps/jsr.io/@std/yaml/1.1.0/parse.ts +0 -125
  501. package/src/extensions/ext-auth-jwt/src/index.ts +0 -200
  502. package/src/extensions/ext-bundler-esbuild/src/binary.ts +0 -154
  503. package/src/extensions/ext-bundler-esbuild/src/es-module-lexer.ts +0 -34
  504. package/src/extensions/ext-bundler-esbuild/src/esbuild-bundler.ts +0 -122
  505. package/src/extensions/ext-bundler-esbuild/src/index.ts +0 -46
  506. package/src/extensions/ext-bundler-esbuild/src/plugin-adapter.ts +0 -66
  507. package/src/extensions/ext-bundler-esbuild/src/runtime.ts +0 -54
  508. package/src/extensions/ext-content-mdx/src/compiler/markdown-compile.ts +0 -127
  509. package/src/extensions/ext-content-mdx/src/compiler/mdx-compile.ts +0 -82
  510. package/src/extensions/ext-content-mdx/src/index.ts +0 -66
  511. package/src/extensions/ext-content-mdx/src/plugins/plugin-loader.ts +0 -21
  512. package/src/extensions/ext-content-mdx/src/plugins/rehype-node-positions.ts +0 -67
  513. package/src/extensions/ext-content-mdx/src/plugins/remark-headings.ts +0 -93
  514. package/src/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.ts +0 -246
  515. package/src/extensions/ext-css-tailwind/src/index.ts +0 -82
  516. package/src/extensions/ext-db-sqlite/src/index.ts +0 -47
  517. package/src/extensions/ext-document-kreuzberg/src/index.ts +0 -97
  518. package/src/extensions/ext-document-kreuzberg/src/kreuzberg.ts +0 -56
  519. package/src/extensions/ext-llm-anthropic/src/anthropic-provider.ts +0 -336
  520. package/src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts +0 -540
  521. package/src/extensions/ext-llm-anthropic/src/anthropic-stream.ts +0 -310
  522. package/src/extensions/ext-llm-anthropic/src/index.ts +0 -38
  523. package/src/extensions/ext-llm-google/src/google-provider.ts +0 -305
  524. package/src/extensions/ext-llm-google/src/google-request-builder.ts +0 -394
  525. package/src/extensions/ext-llm-google/src/google-stream.ts +0 -188
  526. package/src/extensions/ext-llm-google/src/index.ts +0 -35
  527. package/src/extensions/ext-llm-openai/src/index.ts +0 -37
  528. package/src/extensions/ext-llm-openai/src/openai-chat-request-builder.ts +0 -220
  529. package/src/extensions/ext-llm-openai/src/openai-chat-stream.ts +0 -251
  530. package/src/extensions/ext-llm-openai/src/openai-provider.ts +0 -577
  531. package/src/extensions/ext-llm-openai/src/openai-responses-request-builder.ts +0 -298
  532. package/src/extensions/ext-llm-openai/src/openai-responses-stream.ts +0 -226
  533. package/src/extensions/ext-observability-opentelemetry/src/index.ts +0 -291
  534. package/src/extensions/ext-parser-babel/src/index.ts +0 -111
  535. package/src/extensions/ext-parser-babel/src/inject-node-positions.ts +0 -184
  536. package/src/extensions/ext-sandbox-shell-tools/src/index.ts +0 -43
  537. package/src/extensions/ext-schema-zod/src/adapter.ts +0 -238
  538. package/src/extensions/ext-schema-zod/src/index.ts +0 -39
  539. package/src/extensions/ext-schema-zod/src/json-schema.ts +0 -311
  540. package/src/react/jsx-dev-runtime.ts +0 -1
  541. package/src/react/jsx-runtime.ts +0 -1
  542. package/src/react/react-dom-client.ts +0 -2
  543. package/src/react/react-dom-server.ts +0 -2
  544. package/src/react/react.ts +0 -274
  545. package/src/src/agent/ag-ui/browser-chunk-encoder.ts +0 -58
  546. package/src/src/agent/ag-ui/browser-encoder.ts +0 -538
  547. package/src/src/agent/ag-ui/browser-finalize-tracker.ts +0 -65
  548. package/src/src/agent/ag-ui/browser-response-stream.ts +0 -175
  549. package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +0 -172
  550. package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +0 -34
  551. package/src/src/agent/ag-ui/detached-start.ts +0 -425
  552. package/src/src/agent/ag-ui/forwarded-context.ts +0 -83
  553. package/src/src/agent/ag-ui/handler.ts +0 -388
  554. package/src/src/agent/ag-ui/host-support.ts +0 -244
  555. package/src/src/agent/ag-ui/request-shared.ts +0 -76
  556. package/src/src/agent/ag-ui/run-control.ts +0 -145
  557. package/src/src/agent/ag-ui/runtime-browser-response.ts +0 -41
  558. package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +0 -359
  559. package/src/src/agent/ag-ui/runtime-event-encoder.ts +0 -71
  560. package/src/src/agent/ag-ui/runtime-handler.ts +0 -510
  561. package/src/src/agent/ag-ui/runtime-support.ts +0 -64
  562. package/src/src/agent/ag-ui/sse-parser.ts +0 -306
  563. package/src/src/agent/ag-ui/tool-shared.ts +0 -80
  564. package/src/src/agent/ag-ui/tracked-browser-response.ts +0 -42
  565. package/src/src/agent/artifacts/default-research-artifact-policy.ts +0 -171
  566. package/src/src/agent/artifacts/default-research-artifact-support.ts +0 -374
  567. package/src/src/agent/artifacts/slash-command-artifact-policy.ts +0 -212
  568. package/src/src/agent/child-run/execution-cleanup.ts +0 -33
  569. package/src/src/agent/child-run/execution-snapshot.ts +0 -154
  570. package/src/src/agent/child-run/execution-support.ts +0 -29
  571. package/src/src/agent/child-run/final-step-support.ts +0 -51
  572. package/src/src/agent/child-run/invoke-agent-child-runs.ts +0 -198
  573. package/src/src/agent/child-run/result-summary.ts +0 -135
  574. package/src/src/agent/composition/composition.ts +0 -176
  575. package/src/src/agent/composition/index.ts +0 -19
  576. package/src/src/agent/conversation/bootstrap.ts +0 -335
  577. package/src/src/agent/conversation/delegation-policy.ts +0 -299
  578. package/src/src/agent/conversation/durable.ts +0 -1387
  579. package/src/src/agent/conversation/hosted-lifecycle.ts +0 -215
  580. package/src/src/agent/conversation/hosted-terminal.ts +0 -235
  581. package/src/src/agent/conversation/root-run-context.ts +0 -143
  582. package/src/src/agent/conversation/root-run-lifecycle.ts +0 -184
  583. package/src/src/agent/conversation/run-chunk-mirror.ts +0 -385
  584. package/src/src/agent/conversation/run-context.ts +0 -22
  585. package/src/src/agent/conversation/run-event-normalization.ts +0 -228
  586. package/src/src/agent/conversation/run-event-preparation.ts +0 -76
  587. package/src/src/agent/conversation/run-events.ts +0 -242
  588. package/src/src/agent/conversation/run-mirror.ts +0 -271
  589. package/src/src/agent/conversation/run-stream-mirror.ts +0 -63
  590. package/src/src/agent/factory.ts +0 -303
  591. package/src/src/agent/hosted/ag-ui-chat-request.ts +0 -199
  592. package/src/src/agent/hosted/agent-project-steering.ts +0 -141
  593. package/src/src/agent/hosted/agent-run-lifecycle.ts +0 -161
  594. package/src/src/agent/hosted/chat-execution-lifecycle-types.ts +0 -11
  595. package/src/src/agent/hosted/chat-execution-runtime.ts +0 -694
  596. package/src/src/agent/hosted/chat-preparation.ts +0 -357
  597. package/src/src/agent/hosted/chat-request-parser.ts +0 -209
  598. package/src/src/agent/hosted/chat-request.ts +0 -114
  599. package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +0 -88
  600. package/src/src/agent/hosted/chat-runtime-contract.ts +0 -101
  601. package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +0 -185
  602. package/src/src/agent/hosted/child-artifact-support.ts +0 -201
  603. package/src/src/agent/hosted/child-bootstrap.ts +0 -75
  604. package/src/src/agent/hosted/child-execution-logging.ts +0 -114
  605. package/src/src/agent/hosted/child-fork-execution-runner.ts +0 -396
  606. package/src/src/agent/hosted/child-fork-instructions.ts +0 -91
  607. package/src/src/agent/hosted/child-fork-run-context.ts +0 -309
  608. package/src/src/agent/hosted/child-fork-runtime-start.ts +0 -84
  609. package/src/src/agent/hosted/child-fork-step-message-preparation.ts +0 -96
  610. package/src/src/agent/hosted/child-fork-stream-execution.ts +0 -626
  611. package/src/src/agent/hosted/child-fork-tool-sources.ts +0 -231
  612. package/src/src/agent/hosted/child-invoke-tool.ts +0 -90
  613. package/src/src/agent/hosted/child-lifecycle.ts +0 -352
  614. package/src/src/agent/hosted/child-mirror.ts +0 -272
  615. package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +0 -191
  616. package/src/src/agent/hosted/child-requested-tools.ts +0 -411
  617. package/src/src/agent/hosted/child-status.ts +0 -167
  618. package/src/src/agent/hosted/child-steering-tools.ts +0 -92
  619. package/src/src/agent/hosted/child-stream-watchdog.ts +0 -146
  620. package/src/src/agent/hosted/child-tool-input.ts +0 -91
  621. package/src/src/agent/hosted/cloud-chat-execution-preparation.ts +0 -98
  622. package/src/src/agent/hosted/cloud-prepared-chat-execution-runtime.ts +0 -36
  623. package/src/src/agent/hosted/cloud-runtime-system-messages.ts +0 -79
  624. package/src/src/agent/hosted/default-chat-runtime.ts +0 -329
  625. package/src/src/agent/hosted/default-invoke-agent-tool.ts +0 -581
  626. package/src/src/agent/hosted/default-project-steering-refresh.ts +0 -227
  627. package/src/src/agent/hosted/durable-chat-run-start.ts +0 -246
  628. package/src/src/agent/hosted/durable-child-fork-execution.ts +0 -597
  629. package/src/src/agent/hosted/finalized-message.ts +0 -170
  630. package/src/src/agent/hosted/form-input-tool.ts +0 -128
  631. package/src/src/agent/hosted/lifecycle.ts +0 -159
  632. package/src/src/agent/hosted/prepared-chat-execution.ts +0 -188
  633. package/src/src/agent/hosted/project-remote-tool-source.ts +0 -324
  634. package/src/src/agent/hosted/project-steering-adapter.ts +0 -184
  635. package/src/src/agent/hosted/response-stream.ts +0 -87
  636. package/src/src/agent/hosted/runtime-request-config.ts +0 -112
  637. package/src/src/agent/hosted/runtime-state-resolver.ts +0 -141
  638. package/src/src/agent/hosted/stream-finalization.ts +0 -188
  639. package/src/src/agent/hosted/stream-terminal-error.ts +0 -81
  640. package/src/src/agent/hosted/trace-attributes.ts +0 -196
  641. package/src/src/agent/hosted/veryfront-api-tool-access.ts +0 -293
  642. package/src/src/agent/hosted/veryfront-cloud-agent-service.ts +0 -1050
  643. package/src/src/agent/index.ts +0 -1770
  644. package/src/src/agent/input/human-input.ts +0 -353
  645. package/src/src/agent/input/request-protocol.ts +0 -279
  646. package/src/src/agent/memory/index.ts +0 -21
  647. package/src/src/agent/memory/memory-interface.ts +0 -65
  648. package/src/src/agent/memory/memory.ts +0 -263
  649. package/src/src/agent/memory/redis.ts +0 -168
  650. package/src/src/agent/middleware/cache/cache.ts +0 -318
  651. package/src/src/agent/middleware/cache/index.ts +0 -7
  652. package/src/src/agent/middleware/chain.ts +0 -62
  653. package/src/src/agent/middleware/cost-tracking/index.ts +0 -13
  654. package/src/src/agent/middleware/cost-tracking/tracker.ts +0 -351
  655. package/src/src/agent/middleware/index.ts +0 -33
  656. package/src/src/agent/middleware/rate-limit/index.ts +0 -12
  657. package/src/src/agent/middleware/rate-limit/limiter.ts +0 -197
  658. package/src/src/agent/middleware/security/index.ts +0 -14
  659. package/src/src/agent/middleware/security/validator.ts +0 -288
  660. package/src/src/agent/project/agent-runtime.ts +0 -139
  661. package/src/src/agent/project/context.ts +0 -63
  662. package/src/src/agent/project/live-studio-mcp-tools.ts +0 -153
  663. package/src/src/agent/project/steering-mutation.ts +0 -126
  664. package/src/src/agent/react/index.ts +0 -39
  665. package/src/src/agent/react/use-agent.ts +0 -133
  666. package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +0 -89
  667. package/src/src/agent/react/use-chat/browser-inference/types.ts +0 -52
  668. package/src/src/agent/react/use-chat/browser-inference/worker-client.ts +0 -87
  669. package/src/src/agent/react/use-chat/browser-inference/worker-script.ts +0 -98
  670. package/src/src/agent/react/use-chat/index.ts +0 -27
  671. package/src/src/agent/react/use-chat/stream-protocol.ts +0 -1
  672. package/src/src/agent/react/use-chat/streaming/handler.ts +0 -429
  673. package/src/src/agent/react/use-chat/streaming/index.ts +0 -15
  674. package/src/src/agent/react/use-chat/streaming/parts-builder.ts +0 -91
  675. package/src/src/agent/react/use-chat/streaming/types.ts +0 -41
  676. package/src/src/agent/react/use-chat/types.ts +0 -115
  677. package/src/src/agent/react/use-chat/use-chat.ts +0 -576
  678. package/src/src/agent/react/use-chat/utils.ts +0 -13
  679. package/src/src/agent/react/use-completion.ts +0 -133
  680. package/src/src/agent/react/use-streaming.ts +0 -120
  681. package/src/src/agent/react/use-voice-input.ts +0 -249
  682. package/src/src/agent/runtime/ag-ui-contract.ts +0 -224
  683. package/src/src/agent/runtime/agent-definition-files.ts +0 -155
  684. package/src/src/agent/runtime/agent-definition.ts +0 -166
  685. package/src/src/agent/runtime/agent-invocation-contract.ts +0 -360
  686. package/src/src/agent/runtime/agent-markdown-adapter.ts +0 -31
  687. package/src/src/agent/runtime/builtin-skill-files.ts +0 -122
  688. package/src/src/agent/runtime/chat-stream-handler.ts +0 -577
  689. package/src/src/agent/runtime/client-profile.ts +0 -123
  690. package/src/src/agent/runtime/constants.ts +0 -29
  691. package/src/src/agent/runtime/default-provider-options.ts +0 -52
  692. package/src/src/agent/runtime/defaults.ts +0 -12
  693. package/src/src/agent/runtime/error-utils.ts +0 -32
  694. package/src/src/agent/runtime/index.ts +0 -1478
  695. package/src/src/agent/runtime/input-utils.ts +0 -48
  696. package/src/src/agent/runtime/load-skill-tool.ts +0 -239
  697. package/src/src/agent/runtime/message-adapter.ts +0 -480
  698. package/src/src/agent/runtime/message-file-url-refresh.ts +0 -120
  699. package/src/src/agent/runtime/message-preparation.ts +0 -58
  700. package/src/src/agent/runtime/model-resolution.ts +0 -113
  701. package/src/src/agent/runtime/model-tool-converter.ts +0 -97
  702. package/src/src/agent/runtime/project-files-client.ts +0 -256
  703. package/src/src/agent/runtime/project-skill-catalog.ts +0 -238
  704. package/src/src/agent/runtime/project-skill-loader.ts +0 -217
  705. package/src/src/agent/runtime/prompt-block.ts +0 -19
  706. package/src/src/agent/runtime/provider-native-tool-inventory.ts +0 -74
  707. package/src/src/agent/runtime/provider-native-tools.ts +0 -130
  708. package/src/src/agent/runtime/provider-tool-compat.ts +0 -304
  709. package/src/src/agent/runtime/repair-tool-call.ts +0 -50
  710. package/src/src/agent/runtime/resume-session.ts +0 -353
  711. package/src/src/agent/runtime/runtime-tool-builder.ts +0 -82
  712. package/src/src/agent/runtime/runtime-tool-errors.ts +0 -46
  713. package/src/src/agent/runtime/runtime-tool-types.ts +0 -121
  714. package/src/src/agent/runtime/skill-metadata.ts +0 -260
  715. package/src/src/agent/runtime/skill-prompt.ts +0 -61
  716. package/src/src/agent/runtime/sse-utils.ts +0 -51
  717. package/src/src/agent/runtime/text-generation-runtime-message-converter.ts +0 -269
  718. package/src/src/agent/runtime/text-generation-runtime-message-types.ts +0 -62
  719. package/src/src/agent/runtime/tool-helpers.ts +0 -428
  720. package/src/src/agent/runtime/tool-inventory.ts +0 -46
  721. package/src/src/agent/runtime/upload-url-client.ts +0 -95
  722. package/src/src/agent/schemas/agent.schema.ts +0 -181
  723. package/src/src/agent/schemas/index.ts +0 -38
  724. package/src/src/agent/schemas/tool.schema.ts +0 -11
  725. package/src/src/agent/service/abort-rejection-guard.ts +0 -162
  726. package/src/src/agent/service/auth.ts +0 -427
  727. package/src/src/agent/service/bootstrap.ts +0 -79
  728. package/src/src/agent/service/chat-handler.ts +0 -508
  729. package/src/src/agent/service/config.ts +0 -107
  730. package/src/src/agent/service/definition.ts +0 -386
  731. package/src/src/agent/service/detached-run-tracker.ts +0 -169
  732. package/src/src/agent/service/env-files.ts +0 -60
  733. package/src/src/agent/service/external-worker-client.ts +0 -401
  734. package/src/src/agent/service/mcp-server-config.ts +0 -112
  735. package/src/src/agent/service/node-runtime-infrastructure.ts +0 -71
  736. package/src/src/agent/service/node-telemetry.ts +0 -197
  737. package/src/src/agent/service/registration.ts +0 -395
  738. package/src/src/agent/service/request-auth-cache.ts +0 -36
  739. package/src/src/agent/service/response-like.ts +0 -28
  740. package/src/src/agent/service/routes.ts +0 -386
  741. package/src/src/agent/service/runtime.ts +0 -303
  742. package/src/src/agent/service/server.ts +0 -98
  743. package/src/src/agent/streaming/chat-ui-message-stream.ts +0 -596
  744. package/src/src/agent/streaming/data-stream.ts +0 -209
  745. package/src/src/agent/streaming/fork-runtime-stream.ts +0 -1187
  746. package/src/src/agent/streaming/mirrored-tool-chunk-state.ts +0 -276
  747. package/src/src/agent/streaming/tool-execution-data-event-bridge.ts +0 -79
  748. package/src/src/agent/testing/agent-tester.ts +0 -202
  749. package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +0 -117
  750. package/src/src/agent/testing/durable-run-canaries/environment.ts +0 -27
  751. package/src/src/agent/testing/durable-run-canaries/index.ts +0 -36
  752. package/src/src/agent/testing/durable-run-canaries/runner.ts +0 -585
  753. package/src/src/agent/testing/durable-run-canaries/validation.ts +0 -87
  754. package/src/src/agent/testing/index.ts +0 -128
  755. package/src/src/agent/testing/live-evals/api-client.ts +0 -568
  756. package/src/src/agent/testing/live-evals/cli-runner.ts +0 -234
  757. package/src/src/agent/testing/live-evals/environment.ts +0 -31
  758. package/src/src/agent/testing/live-evals/formatting.ts +0 -106
  759. package/src/src/agent/testing/live-evals/index.ts +0 -99
  760. package/src/src/agent/testing/live-evals/metadata.ts +0 -167
  761. package/src/src/agent/testing/live-evals/performance.ts +0 -52
  762. package/src/src/agent/testing/live-evals/preflight.ts +0 -42
  763. package/src/src/agent/testing/live-evals/report.ts +0 -155
  764. package/src/src/agent/testing/live-evals/request.ts +0 -78
  765. package/src/src/agent/testing/live-evals/result.ts +0 -109
  766. package/src/src/agent/testing/live-evals/runner.ts +0 -629
  767. package/src/src/agent/types.ts +0 -275
  768. package/src/src/build/asset-pipeline/css-optimizer/types/index.ts +0 -92
  769. package/src/src/build/asset-pipeline/tailwind-processor/css-utils.ts +0 -13
  770. package/src/src/build/binary-plugin-includes.ts +0 -17
  771. package/src/src/build/bundler/code-splitter/build-context.ts +0 -97
  772. package/src/src/build/bundler/code-splitter/entry-points.ts +0 -31
  773. package/src/src/build/bundler/code-splitter/esbuild-plugin.ts +0 -38
  774. package/src/src/build/bundler/code-splitter/index.ts +0 -80
  775. package/src/src/build/bundler/code-splitter/manifest-builder.ts +0 -140
  776. package/src/src/build/bundler/code-splitter/splitter.ts +0 -98
  777. package/src/src/build/bundler/code-splitter/types.ts +0 -46
  778. package/src/src/build/bundler/index.ts +0 -39
  779. package/src/src/build/compiler/index.ts +0 -17
  780. package/src/src/build/compiler/mdx-compiler/code-generator.ts +0 -16
  781. package/src/src/build/compiler/mdx-compiler/compiler.ts +0 -53
  782. package/src/src/build/compiler/mdx-compiler/directory-compiler.ts +0 -39
  783. package/src/src/build/compiler/mdx-compiler/file-writer.ts +0 -25
  784. package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +0 -94
  785. package/src/src/build/compiler/mdx-compiler/import-transformer.ts +0 -27
  786. package/src/src/build/compiler/mdx-compiler/index.ts +0 -10
  787. package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +0 -32
  788. package/src/src/build/compiler/mdx-compiler/transpiler.ts +0 -15
  789. package/src/src/build/compiler/mdx-compiler/types.ts +0 -21
  790. package/src/src/build/compiler/mdx-compiler/validator.ts +0 -52
  791. package/src/src/build/compiler/mdx-compiler/watcher.ts +0 -57
  792. package/src/src/build/compiler/mdx-to-js.ts +0 -143
  793. package/src/src/build/embedded/preset.ts +0 -326
  794. package/src/src/build/index.ts +0 -11
  795. package/src/src/build/production-build/asset-generation.ts +0 -178
  796. package/src/src/build/production-build/build/build-cleanup.ts +0 -31
  797. package/src/src/build/production-build/build/build-executor.ts +0 -50
  798. package/src/src/build/production-build/build/build-initializer.ts +0 -58
  799. package/src/src/build/production-build/build/build-orchestrator.ts +0 -140
  800. package/src/src/build/production-build/build/build-setup.ts +0 -47
  801. package/src/src/build/production-build/build/code-splitter-orchestrator.ts +0 -43
  802. package/src/src/build/production-build/build/index.ts +0 -58
  803. package/src/src/build/production-build/build/output-generator.ts +0 -142
  804. package/src/src/build/production-build/build/route-collector.ts +0 -46
  805. package/src/src/build/production-build/client-runtime.ts +0 -376
  806. package/src/src/build/production-build/index.ts +0 -51
  807. package/src/src/build/production-build/manifest.ts +0 -126
  808. package/src/src/build/production-build/static-generation.ts +0 -256
  809. package/src/src/build/production-build/templates.ts +0 -17
  810. package/src/src/build/renderer/types/bundler-types.ts +0 -12
  811. package/src/src/cache/backend.ts +0 -32
  812. package/src/src/cache/backends/api.ts +0 -226
  813. package/src/src/cache/backends/disk.ts +0 -150
  814. package/src/src/cache/backends/factory.ts +0 -209
  815. package/src/src/cache/backends/helpers.ts +0 -7
  816. package/src/src/cache/backends/index.ts +0 -30
  817. package/src/src/cache/backends/memory.ts +0 -180
  818. package/src/src/cache/backends/redis.ts +0 -134
  819. package/src/src/cache/cache-key-builder.ts +0 -125
  820. package/src/src/cache/config-hash.ts +0 -64
  821. package/src/src/cache/dependency-graph.ts +0 -208
  822. package/src/src/cache/distributed-cache-init.ts +0 -144
  823. package/src/src/cache/index.ts +0 -37
  824. package/src/src/cache/keys/builders/file.ts +0 -70
  825. package/src/src/cache/keys/builders/github.ts +0 -34
  826. package/src/src/cache/keys/builders/module.ts +0 -94
  827. package/src/src/cache/keys/builders/render.ts +0 -125
  828. package/src/src/cache/keys/index.ts +0 -94
  829. package/src/src/cache/keys/prefixes.ts +0 -127
  830. package/src/src/cache/keys/utils.ts +0 -236
  831. package/src/src/cache/keys.ts +0 -7
  832. package/src/src/cache/module-cache.ts +0 -242
  833. package/src/src/cache/paths.ts +0 -140
  834. package/src/src/cache/registry.ts +0 -587
  835. package/src/src/cache/request-cache-batcher.ts +0 -144
  836. package/src/src/cache/schemas/cache-backend.schema.ts +0 -22
  837. package/src/src/cache/schemas/cache-key.schema.ts +0 -17
  838. package/src/src/cache/schemas/index.ts +0 -14
  839. package/src/src/cache/tokenizing-gateway.ts +0 -278
  840. package/src/src/cache/types.ts +0 -67
  841. package/src/src/channels/control-plane.ts +0 -455
  842. package/src/src/channels/invoke.ts +0 -447
  843. package/src/src/chat/ag-ui-helpers.ts +0 -139
  844. package/src/src/chat/ag-ui.ts +0 -882
  845. package/src/src/chat/chat-ui-message-helpers.ts +0 -232
  846. package/src/src/chat/conversation.ts +0 -941
  847. package/src/src/chat/final-step-fallback.ts +0 -957
  848. package/src/src/chat/hosted-ui-chunk-mapping.ts +0 -303
  849. package/src/src/chat/index.ts +0 -275
  850. package/src/src/chat/message-prep.ts +0 -873
  851. package/src/src/chat/protocol.ts +0 -358
  852. package/src/src/chat/provider-errors.ts +0 -218
  853. package/src/src/chat/stream-watchdog.ts +0 -229
  854. package/src/src/chat/types.ts +0 -632
  855. package/src/src/config/defaults.ts +0 -73
  856. package/src/src/config/define-config.ts +0 -68
  857. package/src/src/config/env.ts +0 -197
  858. package/src/src/config/environment-config.ts +0 -274
  859. package/src/src/config/index.ts +0 -69
  860. package/src/src/config/loader.ts +0 -528
  861. package/src/src/config/network-defaults.ts +0 -55
  862. package/src/src/config/runtime-config.ts +0 -216
  863. package/src/src/config/schemas/config.schema.ts +0 -695
  864. package/src/src/config/schemas/index.ts +0 -27
  865. package/src/src/data/data-fetcher.ts +0 -80
  866. package/src/src/data/data-fetching-cache.ts +0 -57
  867. package/src/src/data/helpers.ts +0 -9
  868. package/src/src/data/index.ts +0 -17
  869. package/src/src/data/schemas/data.schema.ts +0 -70
  870. package/src/src/data/schemas/index.ts +0 -20
  871. package/src/src/data/server-data-fetcher.ts +0 -185
  872. package/src/src/data/static-data-fetcher.ts +0 -310
  873. package/src/src/data/static-paths-fetcher.ts +0 -35
  874. package/src/src/data/types.ts +0 -28
  875. package/src/src/discovery/discovery-engine.ts +0 -229
  876. package/src/src/discovery/discovery-utils.ts +0 -44
  877. package/src/src/discovery/file-discovery.ts +0 -109
  878. package/src/src/discovery/handlers/agent-handler.ts +0 -30
  879. package/src/src/discovery/handlers/index.ts +0 -13
  880. package/src/src/discovery/handlers/prompt-handler.ts +0 -21
  881. package/src/src/discovery/handlers/resource-handler.ts +0 -22
  882. package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +0 -78
  883. package/src/src/discovery/handlers/skill-handler.ts +0 -123
  884. package/src/src/discovery/handlers/task-handler.ts +0 -19
  885. package/src/src/discovery/handlers/tool-handler.ts +0 -32
  886. package/src/src/discovery/handlers/workflow-handler.ts +0 -23
  887. package/src/src/discovery/import-rewriter.ts +0 -209
  888. package/src/src/discovery/index.ts +0 -34
  889. package/src/src/discovery/module-import.ts +0 -36
  890. package/src/src/discovery/project-discovery-config.ts +0 -89
  891. package/src/src/discovery/provider-config-validator.ts +0 -33
  892. package/src/src/discovery/transpiler.ts +0 -244
  893. package/src/src/discovery/types.ts +0 -69
  894. package/src/src/embedding/chunk.ts +0 -66
  895. package/src/src/embedding/embedding.ts +0 -67
  896. package/src/src/embedding/index.ts +0 -50
  897. package/src/src/embedding/model-resolution.ts +0 -46
  898. package/src/src/embedding/rag-store.ts +0 -432
  899. package/src/src/embedding/react/use-uploads.ts +0 -102
  900. package/src/src/embedding/resolve.ts +0 -157
  901. package/src/src/embedding/types.ts +0 -115
  902. package/src/src/embedding/upload-handler.ts +0 -287
  903. package/src/src/embedding/upload-loader.ts +0 -85
  904. package/src/src/embedding/vector-store.ts +0 -283
  905. package/src/src/embedding/veryfront-cloud/provider.ts +0 -55
  906. package/src/src/embedding/veryfront-cloud/rag-store.ts +0 -600
  907. package/src/src/errors/catalog/build-errors.ts +0 -98
  908. package/src/src/errors/catalog/config-errors.ts +0 -105
  909. package/src/src/errors/catalog/deployment-errors.ts +0 -44
  910. package/src/src/errors/catalog/dev-errors.ts +0 -40
  911. package/src/src/errors/catalog/factory.ts +0 -24
  912. package/src/src/errors/catalog/general-errors.ts +0 -71
  913. package/src/src/errors/catalog/index.ts +0 -64
  914. package/src/src/errors/catalog/module-errors.ts +0 -106
  915. package/src/src/errors/catalog/route-errors.ts +0 -69
  916. package/src/src/errors/catalog/rsc-errors.ts +0 -82
  917. package/src/src/errors/catalog/runtime-errors.ts +0 -96
  918. package/src/src/errors/catalog/server-errors.ts +0 -95
  919. package/src/src/errors/catalog/types.ts +0 -15
  920. package/src/src/errors/error-context.ts +0 -172
  921. package/src/src/errors/error-handlers.ts +0 -85
  922. package/src/src/errors/error-registry-helpers.ts +0 -23
  923. package/src/src/errors/error-registry.ts +0 -824
  924. package/src/src/errors/http-error.ts +0 -157
  925. package/src/src/errors/index.ts +0 -197
  926. package/src/src/errors/logging.ts +0 -109
  927. package/src/src/errors/middleware/cli-error-boundary.ts +0 -248
  928. package/src/src/errors/middleware/http-error-boundary.ts +0 -133
  929. package/src/src/errors/middleware/index.ts +0 -13
  930. package/src/src/errors/middleware/wrap-unknown.ts +0 -117
  931. package/src/src/errors/tracing.ts +0 -90
  932. package/src/src/errors/types.ts +0 -147
  933. package/src/src/errors/user-friendly/error-catalog.ts +0 -126
  934. package/src/src/errors/user-friendly/error-formatter.ts +0 -93
  935. package/src/src/errors/user-friendly/error-identifier.ts +0 -41
  936. package/src/src/errors/user-friendly/error-wrapper.ts +0 -26
  937. package/src/src/errors/user-friendly/index.ts +0 -10
  938. package/src/src/errors/veryfront-error.ts +0 -148
  939. package/src/src/extensions/auth/auth-provider.ts +0 -96
  940. package/src/src/extensions/auth/index.ts +0 -15
  941. package/src/src/extensions/builtin-extensions.ts +0 -161
  942. package/src/src/extensions/bundler/bundler.ts +0 -289
  943. package/src/src/extensions/bundler/helper.ts +0 -58
  944. package/src/src/extensions/bundler/index.ts +0 -49
  945. package/src/src/extensions/bundler/module-lexer.ts +0 -46
  946. package/src/src/extensions/cache/cache-store.ts +0 -27
  947. package/src/src/extensions/cache/index.ts +0 -10
  948. package/src/src/extensions/cache/token-cache-store.ts +0 -58
  949. package/src/src/extensions/capabilities.ts +0 -93
  950. package/src/src/extensions/compat/index.ts +0 -15
  951. package/src/src/extensions/compat/native-services.ts +0 -83
  952. package/src/src/extensions/content/content-processor.ts +0 -98
  953. package/src/src/extensions/content/index.ts +0 -17
  954. package/src/src/extensions/contracts.ts +0 -42
  955. package/src/src/extensions/css/css-processor.ts +0 -61
  956. package/src/src/extensions/css/index.ts +0 -15
  957. package/src/src/extensions/database/database-client.ts +0 -35
  958. package/src/src/extensions/database/index.ts +0 -9
  959. package/src/src/extensions/discovery.ts +0 -250
  960. package/src/src/extensions/errors.ts +0 -39
  961. package/src/src/extensions/factory-loader.ts +0 -76
  962. package/src/src/extensions/index.ts +0 -91
  963. package/src/src/extensions/llm/embedding-provider.ts +0 -39
  964. package/src/src/extensions/llm/index.ts +0 -17
  965. package/src/src/extensions/llm/llm-provider-registry.ts +0 -50
  966. package/src/src/extensions/llm/llm-provider.ts +0 -54
  967. package/src/src/extensions/loader.ts +0 -282
  968. package/src/src/extensions/observability/index.ts +0 -17
  969. package/src/src/extensions/observability/node-telemetry-provider.ts +0 -45
  970. package/src/src/extensions/observability/tracing-exporter.ts +0 -77
  971. package/src/src/extensions/orchestrate.ts +0 -194
  972. package/src/src/extensions/parser/code-parser.ts +0 -96
  973. package/src/src/extensions/parser/index.ts +0 -18
  974. package/src/src/extensions/recommendations.ts +0 -30
  975. package/src/src/extensions/sandbox/index.ts +0 -18
  976. package/src/src/extensions/sandbox/shell-tools.ts +0 -42
  977. package/src/src/extensions/schema/index.ts +0 -28
  978. package/src/src/extensions/schema/json-schema.ts +0 -23
  979. package/src/src/extensions/schema/schema-validator.ts +0 -257
  980. package/src/src/extensions/types.ts +0 -68
  981. package/src/src/extensions/validation.ts +0 -188
  982. package/src/src/fs/index.ts +0 -51
  983. package/src/src/html/dev-scripts.ts +0 -92
  984. package/src/src/html/html-detection.ts +0 -8
  985. package/src/src/html/html-escape.ts +0 -20
  986. package/src/src/html/html-injection.ts +0 -174
  987. package/src/src/html/html-shell-generator.ts +0 -427
  988. package/src/src/html/hydration-script-builder/dev-client-renderer.ts +0 -18
  989. package/src/src/html/hydration-script-builder/dev-component-manifest.ts +0 -15
  990. package/src/src/html/hydration-script-builder/dev-error-logger.ts +0 -58
  991. package/src/src/html/hydration-script-builder/dev-scripts.ts +0 -47
  992. package/src/src/html/hydration-script-builder/hydration-data-generator.ts +0 -79
  993. package/src/src/html/hydration-script-builder/index.ts +0 -21
  994. package/src/src/html/hydration-script-builder/prod-hydration.ts +0 -41
  995. package/src/src/html/hydration-script-builder/prod-scripts.ts +0 -25
  996. package/src/src/html/hydration-script-builder/templates/index.ts +0 -10
  997. package/src/src/html/hydration-script-builder/templates/loader.ts +0 -107
  998. package/src/src/html/hydration-script-builder/templates/renderer.ts +0 -166
  999. package/src/src/html/hydration-script-builder/templates/router.ts +0 -679
  1000. package/src/src/html/hydration-script-builder/templates/spa-renderer.ts +0 -103
  1001. package/src/src/html/hydration-script-builder/types.ts +0 -29
  1002. package/src/src/html/index.ts +0 -35
  1003. package/src/src/html/metadata-builder.ts +0 -46
  1004. package/src/src/html/metadata-extraction.ts +0 -54
  1005. package/src/src/html/nonce-injection.ts +0 -330
  1006. package/src/src/html/schemas/html.schema.ts +0 -88
  1007. package/src/src/html/schemas/index.ts +0 -15
  1008. package/src/src/html/styles-builder/candidate-extractor.ts +0 -71
  1009. package/src/src/html/styles-builder/content-version.ts +0 -20
  1010. package/src/src/html/styles-builder/css-hash-cache.ts +0 -393
  1011. package/src/src/html/styles-builder/css-pregeneration.ts +0 -331
  1012. package/src/src/html/styles-builder/dev-styles.ts +0 -23
  1013. package/src/src/html/styles-builder/index.ts +0 -21
  1014. package/src/src/html/styles-builder/plugin-loader.ts +0 -252
  1015. package/src/src/html/styles-builder/prepared-project-css-cache.ts +0 -228
  1016. package/src/src/html/styles-builder/project-css-cache.ts +0 -321
  1017. package/src/src/html/styles-builder/style-scope-profile.ts +0 -164
  1018. package/src/src/html/styles-builder/tailwind-compiler-cache.ts +0 -231
  1019. package/src/src/html/styles-builder/tailwind-compiler-utils.ts +0 -199
  1020. package/src/src/html/styles-builder/tailwind-compiler.ts +0 -276
  1021. package/src/src/html/styles-builder/tailwind-plugin-allowlist.ts +0 -51
  1022. package/src/src/html/tag-generators.ts +0 -120
  1023. package/src/src/html/types.ts +0 -5
  1024. package/src/src/html/utils.ts +0 -327
  1025. package/src/src/index.ts +0 -78
  1026. package/src/src/integrations/_data.ts +0 -82
  1027. package/src/src/integrations/index.ts +0 -72
  1028. package/src/src/integrations/remote-tools.ts +0 -243
  1029. package/src/src/integrations/schema.ts +0 -204
  1030. package/src/src/integrations/types.ts +0 -62
  1031. package/src/src/internal-agents/ag-ui-sse.ts +0 -141
  1032. package/src/src/internal-agents/control-plane-auth.ts +0 -92
  1033. package/src/src/internal-agents/request-body.ts +0 -43
  1034. package/src/src/internal-agents/run-stream.ts +0 -422
  1035. package/src/src/internal-agents/runtime-owner.ts +0 -189
  1036. package/src/src/internal-agents/schema.ts +0 -347
  1037. package/src/src/internal-agents/session-manager.ts +0 -206
  1038. package/src/src/issues/core.ts +0 -385
  1039. package/src/src/issues/index.ts +0 -46
  1040. package/src/src/issues/mcp.ts +0 -289
  1041. package/src/src/issues/schemas/index.ts +0 -45
  1042. package/src/src/issues/schemas/issue.schema.ts +0 -152
  1043. package/src/src/jobs/index.ts +0 -101
  1044. package/src/src/jobs/jobs-client.ts +0 -503
  1045. package/src/src/jobs/runtime-env.ts +0 -106
  1046. package/src/src/jobs/schemas.ts +0 -429
  1047. package/src/src/markdown/index.ts +0 -20
  1048. package/src/src/mcp/annotations.ts +0 -10
  1049. package/src/src/mcp/elicitation.ts +0 -42
  1050. package/src/src/mcp/http-transport.ts +0 -162
  1051. package/src/src/mcp/index.ts +0 -65
  1052. package/src/src/mcp/registry.ts +0 -41
  1053. package/src/src/mcp/schemas/index.ts +0 -16
  1054. package/src/src/mcp/schemas/mcp.schema.ts +0 -59
  1055. package/src/src/mcp/server.ts +0 -790
  1056. package/src/src/mcp/session.ts +0 -31
  1057. package/src/src/mcp/sse.ts +0 -19
  1058. package/src/src/mcp/task-store.ts +0 -137
  1059. package/src/src/mcp/types.ts +0 -39
  1060. package/src/src/mdx/index.ts +0 -23
  1061. package/src/src/middleware/builtin/logger.ts +0 -246
  1062. package/src/src/middleware/builtin/security/rate-limit.ts +0 -123
  1063. package/src/src/middleware/builtin/security/redis-rate-limit.ts +0 -109
  1064. package/src/src/middleware/builtin/security/types.ts +0 -34
  1065. package/src/src/middleware/builtin/timeout.ts +0 -104
  1066. package/src/src/middleware/builtin/types.ts +0 -38
  1067. package/src/src/middleware/core/context.ts +0 -60
  1068. package/src/src/middleware/core/index.ts +0 -16
  1069. package/src/src/middleware/core/pipeline/composer.ts +0 -36
  1070. package/src/src/middleware/core/pipeline/executor.ts +0 -67
  1071. package/src/src/middleware/core/pipeline/index.ts +0 -10
  1072. package/src/src/middleware/core/pipeline/pipeline.ts +0 -97
  1073. package/src/src/middleware/core/pipeline/types.ts +0 -1
  1074. package/src/src/middleware/core/types.ts +0 -27
  1075. package/src/src/middleware/index.ts +0 -67
  1076. package/src/src/modules/component-registry/index.ts +0 -8
  1077. package/src/src/modules/component-registry/registry.ts +0 -246
  1078. package/src/src/modules/import-map/default-import-map.ts +0 -62
  1079. package/src/src/modules/import-map/index.ts +0 -14
  1080. package/src/src/modules/import-map/loader.ts +0 -173
  1081. package/src/src/modules/import-map/merger.ts +0 -19
  1082. package/src/src/modules/import-map/preloader.ts +0 -47
  1083. package/src/src/modules/import-map/resolver.ts +0 -106
  1084. package/src/src/modules/import-map/transformer.ts +0 -49
  1085. package/src/src/modules/import-map/types.ts +0 -8
  1086. package/src/src/modules/index.ts +0 -43
  1087. package/src/src/modules/loader-shared/patterns.ts +0 -40
  1088. package/src/src/modules/manifest/route-module-manifest.ts +0 -241
  1089. package/src/src/modules/module-resolver.ts +0 -145
  1090. package/src/src/modules/react-loader/component-loader.ts +0 -90
  1091. package/src/src/modules/react-loader/css-import-collector.ts +0 -50
  1092. package/src/src/modules/react-loader/extract-component.ts +0 -33
  1093. package/src/src/modules/react-loader/index.ts +0 -14
  1094. package/src/src/modules/react-loader/path-resolver.ts +0 -27
  1095. package/src/src/modules/react-loader/ssr-module-loader/cache/index.ts +0 -27
  1096. package/src/src/modules/react-loader/ssr-module-loader/cache/memory.ts +0 -278
  1097. package/src/src/modules/react-loader/ssr-module-loader/cache/redis.ts +0 -65
  1098. package/src/src/modules/react-loader/ssr-module-loader/concurrency/index.ts +0 -7
  1099. package/src/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.ts +0 -67
  1100. package/src/src/modules/react-loader/ssr-module-loader/constants.ts +0 -64
  1101. package/src/src/modules/react-loader/ssr-module-loader/cross-project-import-loader.ts +0 -152
  1102. package/src/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.ts +0 -196
  1103. package/src/src/modules/react-loader/ssr-module-loader/import-rewriter.ts +0 -170
  1104. package/src/src/modules/react-loader/ssr-module-loader/index.ts +0 -48
  1105. package/src/src/modules/react-loader/ssr-module-loader/loader-helpers.ts +0 -37
  1106. package/src/src/modules/react-loader/ssr-module-loader/loader.ts +0 -685
  1107. package/src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts +0 -45
  1108. package/src/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.ts +0 -318
  1109. package/src/src/modules/react-loader/ssr-module-loader/ssr-circuit-breaker.ts +0 -75
  1110. package/src/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.ts +0 -172
  1111. package/src/src/modules/react-loader/ssr-module-loader/tmp-paths.ts +0 -44
  1112. package/src/src/modules/react-loader/ssr-module-loader/types.ts +0 -42
  1113. package/src/src/modules/react-loader/ssr-module-loader/vf-module-resolver.ts +0 -117
  1114. package/src/src/modules/react-loader/temp-directory.ts +0 -58
  1115. package/src/src/modules/react-loader/types.ts +0 -26
  1116. package/src/src/modules/react-loader/unified-loader.ts +0 -134
  1117. package/src/src/modules/server/api-server.ts +0 -57
  1118. package/src/src/modules/server/index.ts +0 -15
  1119. package/src/src/modules/server/module-batch-handler.ts +0 -450
  1120. package/src/src/modules/server/module-server.ts +0 -697
  1121. package/src/src/modules/server/rate-limiter.ts +0 -26
  1122. package/src/src/modules/server/ssr-import-rewriter.ts +0 -116
  1123. package/src/src/modules/server/websocket-handler.ts +0 -133
  1124. package/src/src/oauth/handlers/callback-handler.ts +0 -176
  1125. package/src/src/oauth/handlers/index.ts +0 -18
  1126. package/src/src/oauth/handlers/init-handler.ts +0 -237
  1127. package/src/src/oauth/index.ts +0 -83
  1128. package/src/src/oauth/providers/atlassian.ts +0 -67
  1129. package/src/src/oauth/providers/base.ts +0 -410
  1130. package/src/src/oauth/providers/common.ts +0 -361
  1131. package/src/src/oauth/providers/google.ts +0 -71
  1132. package/src/src/oauth/providers/index.ts +0 -66
  1133. package/src/src/oauth/providers/microsoft.ts +0 -85
  1134. package/src/src/oauth/schemas/index.ts +0 -22
  1135. package/src/src/oauth/schemas/oauth.schema.ts +0 -106
  1136. package/src/src/oauth/token-store/index.ts +0 -8
  1137. package/src/src/oauth/token-store/memory.ts +0 -92
  1138. package/src/src/oauth/types.ts +0 -49
  1139. package/src/src/observability/auto-instrument/configurator.ts +0 -12
  1140. package/src/src/observability/auto-instrument/http-instrumentation.ts +0 -208
  1141. package/src/src/observability/auto-instrument/index.ts +0 -19
  1142. package/src/src/observability/auto-instrument/orchestrator.ts +0 -60
  1143. package/src/src/observability/auto-instrument/react-instrumentation.ts +0 -78
  1144. package/src/src/observability/auto-instrument/types.ts +0 -46
  1145. package/src/src/observability/auto-instrument/wrappers.ts +0 -107
  1146. package/src/src/observability/error-collector.ts +0 -390
  1147. package/src/src/observability/file-log-subscriber.ts +0 -187
  1148. package/src/src/observability/index.ts +0 -130
  1149. package/src/src/observability/instruments/build-instruments.ts +0 -36
  1150. package/src/src/observability/instruments/cache-instruments.ts +0 -65
  1151. package/src/src/observability/instruments/data-instruments.ts +0 -32
  1152. package/src/src/observability/instruments/error-instruments.ts +0 -54
  1153. package/src/src/observability/instruments/http-instruments.ts +0 -34
  1154. package/src/src/observability/instruments/index.ts +0 -16
  1155. package/src/src/observability/instruments/instruments-factory.ts +0 -71
  1156. package/src/src/observability/instruments/memory-instruments.ts +0 -72
  1157. package/src/src/observability/instruments/render-instruments.ts +0 -32
  1158. package/src/src/observability/instruments/rsc-instruments.ts +0 -65
  1159. package/src/src/observability/log-buffer.ts +0 -217
  1160. package/src/src/observability/metrics/config.ts +0 -96
  1161. package/src/src/observability/metrics/index.ts +0 -142
  1162. package/src/src/observability/metrics/manager.ts +0 -134
  1163. package/src/src/observability/metrics/recorder.ts +0 -139
  1164. package/src/src/observability/metrics/types.ts +0 -81
  1165. package/src/src/observability/request-profiler.ts +0 -140
  1166. package/src/src/observability/simple-metrics/index.ts +0 -88
  1167. package/src/src/observability/simple-metrics/metrics-recorder.ts +0 -327
  1168. package/src/src/observability/simple-metrics/metrics-state.ts +0 -135
  1169. package/src/src/observability/simple-metrics/observability-loader.ts +0 -53
  1170. package/src/src/observability/simple-metrics/otel-instruments.ts +0 -93
  1171. package/src/src/observability/simple-metrics/types.ts +0 -81
  1172. package/src/src/observability/tracing/api-shim.ts +0 -409
  1173. package/src/src/observability/tracing/config.ts +0 -77
  1174. package/src/src/observability/tracing/context-propagation.ts +0 -88
  1175. package/src/src/observability/tracing/index.ts +0 -134
  1176. package/src/src/observability/tracing/manager.ts +0 -129
  1177. package/src/src/observability/tracing/otlp-setup.ts +0 -251
  1178. package/src/src/observability/tracing/service-tracer.ts +0 -267
  1179. package/src/src/observability/tracing/span-names.ts +0 -111
  1180. package/src/src/observability/tracing/span-operations.ts +0 -102
  1181. package/src/src/observability/tracing/types.ts +0 -47
  1182. package/src/src/platform/adapters/base.ts +0 -186
  1183. package/src/src/platform/adapters/bun.ts +0 -20
  1184. package/src/src/platform/adapters/deno.ts +0 -1
  1185. package/src/src/platform/adapters/detect.ts +0 -84
  1186. package/src/src/platform/adapters/fallback-wrapper.ts +0 -146
  1187. package/src/src/platform/adapters/fs/cache/file-cache.ts +0 -420
  1188. package/src/src/platform/adapters/fs/cache/size-estimator.ts +0 -7
  1189. package/src/src/platform/adapters/fs/cache/types.ts +0 -20
  1190. package/src/src/platform/adapters/fs/factory.ts +0 -70
  1191. package/src/src/platform/adapters/fs/github/adapter.ts +0 -152
  1192. package/src/src/platform/adapters/fs/github/directory-operations.ts +0 -61
  1193. package/src/src/platform/adapters/fs/github/github-api-client.ts +0 -230
  1194. package/src/src/platform/adapters/fs/github/index.ts +0 -34
  1195. package/src/src/platform/adapters/fs/github/path-utils.ts +0 -9
  1196. package/src/src/platform/adapters/fs/github/read-operations.ts +0 -175
  1197. package/src/src/platform/adapters/fs/github/schemas/github-api.schema.ts +0 -89
  1198. package/src/src/platform/adapters/fs/github/schemas/index.ts +0 -19
  1199. package/src/src/platform/adapters/fs/github/stat-operations.ts +0 -266
  1200. package/src/src/platform/adapters/fs/github/types.ts +0 -109
  1201. package/src/src/platform/adapters/fs/index.ts +0 -33
  1202. package/src/src/platform/adapters/fs/integration.ts +0 -99
  1203. package/src/src/platform/adapters/fs/shared-types.ts +0 -11
  1204. package/src/src/platform/adapters/fs/veryfront/adapter-content-context.ts +0 -149
  1205. package/src/src/platform/adapters/fs/veryfront/adapter-helpers.ts +0 -43
  1206. package/src/src/platform/adapters/fs/veryfront/adapter.ts +0 -774
  1207. package/src/src/platform/adapters/fs/veryfront/api-search-circuit-breaker.ts +0 -30
  1208. package/src/src/platform/adapters/fs/veryfront/base-operations.ts +0 -13
  1209. package/src/src/platform/adapters/fs/veryfront/cache-keys.ts +0 -41
  1210. package/src/src/platform/adapters/fs/veryfront/content-metrics.ts +0 -208
  1211. package/src/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.ts +0 -66
  1212. package/src/src/platform/adapters/fs/veryfront/directory-operations.ts +0 -162
  1213. package/src/src/platform/adapters/fs/veryfront/extension-priority.ts +0 -18
  1214. package/src/src/platform/adapters/fs/veryfront/file-list-access.ts +0 -109
  1215. package/src/src/platform/adapters/fs/veryfront/file-list-index.ts +0 -259
  1216. package/src/src/platform/adapters/fs/veryfront/in-flight-dedupe.ts +0 -63
  1217. package/src/src/platform/adapters/fs/veryfront/index.ts +0 -8
  1218. package/src/src/platform/adapters/fs/veryfront/invalidation-state.ts +0 -130
  1219. package/src/src/platform/adapters/fs/veryfront/multi-project-adapter.ts +0 -266
  1220. package/src/src/platform/adapters/fs/veryfront/path-normalizer.ts +0 -40
  1221. package/src/src/platform/adapters/fs/veryfront/proxy-manager.ts +0 -621
  1222. package/src/src/platform/adapters/fs/veryfront/read-operations-helpers.ts +0 -111
  1223. package/src/src/platform/adapters/fs/veryfront/read-operations.ts +0 -778
  1224. package/src/src/platform/adapters/fs/veryfront/request-context.ts +0 -100
  1225. package/src/src/platform/adapters/fs/veryfront/retry.ts +0 -62
  1226. package/src/src/platform/adapters/fs/veryfront/schemas/index.ts +0 -7
  1227. package/src/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.ts +0 -16
  1228. package/src/src/platform/adapters/fs/veryfront/stat-operations-helpers.ts +0 -74
  1229. package/src/src/platform/adapters/fs/veryfront/stat-operations.ts +0 -556
  1230. package/src/src/platform/adapters/fs/veryfront/types.ts +0 -142
  1231. package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +0 -94
  1232. package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +0 -893
  1233. package/src/src/platform/adapters/fs/wrapper.ts +0 -264
  1234. package/src/src/platform/adapters/mock.ts +0 -185
  1235. package/src/src/platform/adapters/node.ts +0 -18
  1236. package/src/src/platform/adapters/redis/deno.ts +0 -120
  1237. package/src/src/platform/adapters/redis/index.ts +0 -21
  1238. package/src/src/platform/adapters/redis/interface.ts +0 -42
  1239. package/src/src/platform/adapters/redis/modules.ts +0 -54
  1240. package/src/src/platform/adapters/redis/node.ts +0 -127
  1241. package/src/src/platform/adapters/redis/types.ts +0 -84
  1242. package/src/src/platform/adapters/redis/utils.ts +0 -14
  1243. package/src/src/platform/adapters/registry.ts +0 -202
  1244. package/src/src/platform/adapters/runtime/bun/adapter.ts +0 -42
  1245. package/src/src/platform/adapters/runtime/bun/environment-adapter.ts +0 -17
  1246. package/src/src/platform/adapters/runtime/bun/filesystem-adapter.ts +0 -203
  1247. package/src/src/platform/adapters/runtime/bun/http-server.ts +0 -45
  1248. package/src/src/platform/adapters/runtime/bun/index.ts +0 -20
  1249. package/src/src/platform/adapters/runtime/bun/types.ts +0 -45
  1250. package/src/src/platform/adapters/runtime/bun/websocket-adapter.ts +0 -47
  1251. package/src/src/platform/adapters/runtime/deno/adapter.ts +0 -458
  1252. package/src/src/platform/adapters/runtime/deno/index.ts +0 -7
  1253. package/src/src/platform/adapters/runtime/node/adapter.ts +0 -42
  1254. package/src/src/platform/adapters/runtime/node/environment-adapter.ts +0 -17
  1255. package/src/src/platform/adapters/runtime/node/filesystem-adapter.ts +0 -147
  1256. package/src/src/platform/adapters/runtime/node/http-server.ts +0 -196
  1257. package/src/src/platform/adapters/runtime/node/index.ts +0 -18
  1258. package/src/src/platform/adapters/runtime/node/types.ts +0 -42
  1259. package/src/src/platform/adapters/runtime/node/websocket-adapter.ts +0 -191
  1260. package/src/src/platform/adapters/runtime/shared/env-to-object.ts +0 -10
  1261. package/src/src/platform/adapters/runtime/shared/node-based-shell-adapter.ts +0 -32
  1262. package/src/src/platform/adapters/runtime/shared/server-lifecycle.ts +0 -31
  1263. package/src/src/platform/adapters/runtime/shared/shared-watcher.ts +0 -59
  1264. package/src/src/platform/adapters/runtime/shared/temp-dir.ts +0 -6
  1265. package/src/src/platform/adapters/runtime/shared/watcher-queue.ts +0 -63
  1266. package/src/src/platform/adapters/runtime-detection.ts +0 -10
  1267. package/src/src/platform/adapters/veryfront-api-client/client.ts +0 -512
  1268. package/src/src/platform/adapters/veryfront-api-client/index.ts +0 -50
  1269. package/src/src/platform/adapters/veryfront-api-client/operations.ts +0 -576
  1270. package/src/src/platform/adapters/veryfront-api-client/retry-handler.ts +0 -158
  1271. package/src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts +0 -320
  1272. package/src/src/platform/adapters/veryfront-api-client/schemas/index.ts +0 -41
  1273. package/src/src/platform/adapters/veryfront-api-client/types.ts +0 -33
  1274. package/src/src/platform/cloud/resolver.ts +0 -149
  1275. package/src/src/platform/compat/console/deno.ts +0 -51
  1276. package/src/src/platform/compat/console/index.ts +0 -90
  1277. package/src/src/platform/compat/console/node.ts +0 -61
  1278. package/src/src/platform/compat/console/types.ts +0 -18
  1279. package/src/src/platform/compat/constants.ts +0 -14
  1280. package/src/src/platform/compat/dynamic-import.ts +0 -15
  1281. package/src/src/platform/compat/esbuild-init.ts +0 -77
  1282. package/src/src/platform/compat/esbuild-shared.ts +0 -22
  1283. package/src/src/platform/compat/esbuild.ts +0 -53
  1284. package/src/src/platform/compat/framework-source-resolver.ts +0 -221
  1285. package/src/src/platform/compat/fs.ts +0 -354
  1286. package/src/src/platform/compat/http/deno-server.ts +0 -55
  1287. package/src/src/platform/compat/http/factory.ts +0 -12
  1288. package/src/src/platform/compat/http/index.ts +0 -45
  1289. package/src/src/platform/compat/http/node-server.ts +0 -103
  1290. package/src/src/platform/compat/http/node-types.ts +0 -34
  1291. package/src/src/platform/compat/http/request-adapter.ts +0 -16
  1292. package/src/src/platform/compat/http/responses.ts +0 -227
  1293. package/src/src/platform/compat/http/types.ts +0 -23
  1294. package/src/src/platform/compat/http/websocket.ts +0 -34
  1295. package/src/src/platform/compat/kv/factory.ts +0 -60
  1296. package/src/src/platform/compat/kv/index.ts +0 -10
  1297. package/src/src/platform/compat/kv/memory-adapter.ts +0 -68
  1298. package/src/src/platform/compat/kv/sqlite-adapter.ts +0 -113
  1299. package/src/src/platform/compat/kv/types.ts +0 -31
  1300. package/src/src/platform/compat/media-types.ts +0 -27
  1301. package/src/src/platform/compat/opaque-deps.ts +0 -70
  1302. package/src/src/platform/compat/path/basic-operations.ts +0 -59
  1303. package/src/src/platform/compat/path/index.ts +0 -15
  1304. package/src/src/platform/compat/path/parse-format.ts +0 -33
  1305. package/src/src/platform/compat/path/resolution.ts +0 -136
  1306. package/src/src/platform/compat/path/runtime.ts +0 -26
  1307. package/src/src/platform/compat/path/security.ts +0 -29
  1308. package/src/src/platform/compat/path/types.ts +0 -22
  1309. package/src/src/platform/compat/path/url-conversion.ts +0 -58
  1310. package/src/src/platform/compat/process/command.ts +0 -297
  1311. package/src/src/platform/compat/process/env.ts +0 -227
  1312. package/src/src/platform/compat/process/lifecycle.ts +0 -330
  1313. package/src/src/platform/compat/process/runtime-process.ts +0 -27
  1314. package/src/src/platform/compat/process.ts +0 -37
  1315. package/src/src/platform/compat/react-paths.ts +0 -84
  1316. package/src/src/platform/compat/runtime.ts +0 -112
  1317. package/src/src/platform/compat/std/dotenv.ts +0 -87
  1318. package/src/src/platform/compat/std/front-matter-yaml.ts +0 -39
  1319. package/src/src/platform/compat/stdin.ts +0 -271
  1320. package/src/src/platform/compat/transform.ts +0 -44
  1321. package/src/src/platform/compat/vfs-paths.ts +0 -59
  1322. package/src/src/platform/core-platform.ts +0 -199
  1323. package/src/src/platform/environment.ts +0 -35
  1324. package/src/src/platform/index.ts +0 -73
  1325. package/src/src/prompt/factory.ts +0 -59
  1326. package/src/src/prompt/index.ts +0 -22
  1327. package/src/src/prompt/registry.ts +0 -29
  1328. package/src/src/prompt/schemas/prompt.schema.ts +0 -15
  1329. package/src/src/prompt/types.ts +0 -9
  1330. package/src/src/provider/index.ts +0 -55
  1331. package/src/src/provider/local/embedding-runtime-adapter.ts +0 -37
  1332. package/src/src/provider/local/env.ts +0 -37
  1333. package/src/src/provider/local/local-embedding-engine.ts +0 -93
  1334. package/src/src/provider/local/local-engine.ts +0 -317
  1335. package/src/src/provider/local/model-catalog.ts +0 -139
  1336. package/src/src/provider/local/model-runtime-adapter.ts +0 -202
  1337. package/src/src/provider/model-registry.ts +0 -369
  1338. package/src/src/provider/runtime-inspection.ts +0 -25
  1339. package/src/src/provider/runtime-loader/provider-embedding-responses.ts +0 -61
  1340. package/src/src/provider/runtime-loader/provider-endpoints.ts +0 -50
  1341. package/src/src/provider/runtime-loader/provider-http.ts +0 -207
  1342. package/src/src/provider/runtime-loader/provider-records.ts +0 -7
  1343. package/src/src/provider/runtime-loader/provider-request-init.ts +0 -101
  1344. package/src/src/provider/runtime-loader/provider-sse.ts +0 -29
  1345. package/src/src/provider/runtime-loader/provider-usage.ts +0 -135
  1346. package/src/src/provider/runtime-loader/tool-input-status.ts +0 -242
  1347. package/src/src/provider/runtime-loader.ts +0 -517
  1348. package/src/src/provider/shared/index.ts +0 -70
  1349. package/src/src/provider/types.ts +0 -40
  1350. package/src/src/provider/veryfront-cloud/context.ts +0 -28
  1351. package/src/src/provider/veryfront-cloud/model-catalog.ts +0 -224
  1352. package/src/src/provider/veryfront-cloud/openai.ts +0 -34
  1353. package/src/src/provider/veryfront-cloud/provider.ts +0 -82
  1354. package/src/src/provider/veryfront-cloud/shared.ts +0 -139
  1355. package/src/src/proxy/cache/index.ts +0 -78
  1356. package/src/src/proxy/cache/memory-cache.ts +0 -136
  1357. package/src/src/proxy/cache/resilient-cache.ts +0 -204
  1358. package/src/src/proxy/cache/tracing-cache.ts +0 -77
  1359. package/src/src/proxy/cache/types.ts +0 -48
  1360. package/src/src/proxy/env.ts +0 -11
  1361. package/src/src/proxy/error-response.ts +0 -32
  1362. package/src/src/proxy/handler.ts +0 -905
  1363. package/src/src/proxy/log-noise.ts +0 -42
  1364. package/src/src/proxy/logger.ts +0 -406
  1365. package/src/src/proxy/main.ts +0 -624
  1366. package/src/src/proxy/oauth-client.ts +0 -93
  1367. package/src/src/proxy/renderer-router.ts +0 -126
  1368. package/src/src/proxy/retry.ts +0 -19
  1369. package/src/src/proxy/server-resolver.ts +0 -151
  1370. package/src/src/proxy/token-manager.ts +0 -193
  1371. package/src/src/proxy/tracing.ts +0 -203
  1372. package/src/src/proxy/version.ts +0 -21
  1373. package/src/src/react/compat/config-generator.ts +0 -161
  1374. package/src/src/react/compat/hooks-adapter.ts +0 -241
  1375. package/src/src/react/compat/index.ts +0 -50
  1376. package/src/src/react/compat/ssr-adapter/html-wrapper.ts +0 -40
  1377. package/src/src/react/compat/ssr-adapter/index.ts +0 -13
  1378. package/src/src/react/compat/ssr-adapter/response-builder.ts +0 -44
  1379. package/src/src/react/compat/ssr-adapter/server-loader.ts +0 -98
  1380. package/src/src/react/compat/ssr-adapter/stream-renderer.ts +0 -248
  1381. package/src/src/react/compat/ssr-adapter/string-renderer.ts +0 -75
  1382. package/src/src/react/compat/ssr-adapter/types.ts +0 -36
  1383. package/src/src/react/compat/version-detector/compatibility-checker.ts +0 -55
  1384. package/src/src/react/compat/version-detector/feature-detector.ts +0 -92
  1385. package/src/src/react/compat/version-detector/index.ts +0 -22
  1386. package/src/src/react/compat/version-detector/types.ts +0 -42
  1387. package/src/src/react/compat/version-detector/version-cache.ts +0 -36
  1388. package/src/src/react/compat/version-detector/version-parser.ts +0 -33
  1389. package/src/src/react/components/AppWrapper.tsx +0 -44
  1390. package/src/src/react/components/Head.tsx +0 -12
  1391. package/src/src/react/components/LayoutComponent.tsx +0 -62
  1392. package/src/src/react/components/MDXProvider.tsx +0 -21
  1393. package/src/src/react/components/ProviderComponent.tsx +0 -58
  1394. package/src/src/react/components/chat/agent-card.tsx +0 -162
  1395. package/src/src/react/components/chat/chat/components/animations.tsx +0 -62
  1396. package/src/src/react/components/chat/chat/components/attachment-pill.tsx +0 -110
  1397. package/src/src/react/components/chat/chat/components/branch-picker.tsx +0 -70
  1398. package/src/src/react/components/chat/chat/components/code-block.tsx +0 -83
  1399. package/src/src/react/components/chat/chat/components/drop-zone.tsx +0 -49
  1400. package/src/src/react/components/chat/chat/components/empty-state.tsx +0 -121
  1401. package/src/src/react/components/chat/chat/components/inference-badge.tsx +0 -48
  1402. package/src/src/react/components/chat/chat/components/inline-citation.tsx +0 -150
  1403. package/src/src/react/components/chat/chat/components/message-actions.tsx +0 -88
  1404. package/src/src/react/components/chat/chat/components/message-edit-form.tsx +0 -95
  1405. package/src/src/react/components/chat/chat/components/message-feedback.tsx +0 -72
  1406. package/src/src/react/components/chat/chat/components/quick-actions.tsx +0 -38
  1407. package/src/src/react/components/chat/chat/components/reasoning.tsx +0 -56
  1408. package/src/src/react/components/chat/chat/components/sidebar.tsx +0 -204
  1409. package/src/src/react/components/chat/chat/components/skill-badge.tsx +0 -51
  1410. package/src/src/react/components/chat/chat/components/sources.tsx +0 -99
  1411. package/src/src/react/components/chat/chat/components/step-indicator.tsx +0 -33
  1412. package/src/src/react/components/chat/chat/components/tab-switcher.tsx +0 -69
  1413. package/src/src/react/components/chat/chat/components/tool-ui.tsx +0 -204
  1414. package/src/src/react/components/chat/chat/components/upgrade-cta.tsx +0 -56
  1415. package/src/src/react/components/chat/chat/components/uploads-panel.tsx +0 -143
  1416. package/src/src/react/components/chat/chat/composition/api.tsx +0 -17
  1417. package/src/src/react/components/chat/chat/composition/chat-composer.tsx +0 -205
  1418. package/src/src/react/components/chat/chat/composition/chat-empty.tsx +0 -77
  1419. package/src/src/react/components/chat/chat/composition/chat-if.tsx +0 -25
  1420. package/src/src/react/components/chat/chat/composition/chat-message-list.tsx +0 -356
  1421. package/src/src/react/components/chat/chat/composition/chat-root.tsx +0 -183
  1422. package/src/src/react/components/chat/chat/composition/error-banner.tsx +0 -38
  1423. package/src/src/react/components/chat/chat/composition/message.tsx +0 -343
  1424. package/src/src/react/components/chat/chat/composition/model-avatar.tsx +0 -103
  1425. package/src/src/react/components/chat/chat/contexts/chat-context.tsx +0 -81
  1426. package/src/src/react/components/chat/chat/contexts/composer-context.tsx +0 -62
  1427. package/src/src/react/components/chat/chat/contexts/index.ts +0 -36
  1428. package/src/src/react/components/chat/chat/contexts/message-context.tsx +0 -52
  1429. package/src/src/react/components/chat/chat/contexts/thread-list-context.tsx +0 -43
  1430. package/src/src/react/components/chat/chat/hooks/use-threads.ts +0 -208
  1431. package/src/src/react/components/chat/chat/index.tsx +0 -529
  1432. package/src/src/react/components/chat/chat/utils/export.ts +0 -75
  1433. package/src/src/react/components/chat/chat/utils/message-parts.ts +0 -151
  1434. package/src/src/react/components/chat/chat-with-sidebar.tsx +0 -373
  1435. package/src/src/react/components/chat/chat.tsx +0 -146
  1436. package/src/src/react/components/chat/csp-nonce.ts +0 -13
  1437. package/src/src/react/components/chat/error-boundary.tsx +0 -108
  1438. package/src/src/react/components/chat/icons/index.ts +0 -328
  1439. package/src/src/react/components/chat/markdown.tsx +0 -284
  1440. package/src/src/react/components/chat/message.tsx +0 -166
  1441. package/src/src/react/components/chat/model-selector.tsx +0 -262
  1442. package/src/src/react/components/chat/theme.ts +0 -325
  1443. package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +0 -40
  1444. package/src/src/react/components/optimized-image/OptimizedImage.tsx +0 -81
  1445. package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +0 -43
  1446. package/src/src/react/components/optimized-image/helpers.ts +0 -29
  1447. package/src/src/react/components/optimized-image/index.ts +0 -12
  1448. package/src/src/react/components/optimized-image/useOptimizedImage.ts +0 -32
  1449. package/src/src/react/components/optimized-image/utils.tsx +0 -53
  1450. package/src/src/react/context/index.tsx +0 -13
  1451. package/src/src/react/fonts/index.ts +0 -103
  1452. package/src/src/react/head-collector.ts +0 -143
  1453. package/src/src/react/index.ts +0 -99
  1454. package/src/src/react/primitives/agent-primitives.tsx +0 -87
  1455. package/src/src/react/primitives/chat-container.tsx +0 -17
  1456. package/src/src/react/primitives/index.ts +0 -41
  1457. package/src/src/react/primitives/input-box.tsx +0 -226
  1458. package/src/src/react/primitives/message-list.tsx +0 -83
  1459. package/src/src/react/primitives/tool-primitives.tsx +0 -120
  1460. package/src/src/react/router/index.tsx +0 -13
  1461. package/src/src/react/runtime/core.ts +0 -303
  1462. package/src/src/registry/project-scoped-registry-manager.ts +0 -211
  1463. package/src/src/registry/scoped-registry-facade.ts +0 -51
  1464. package/src/src/rendering/app-reserved.ts +0 -109
  1465. package/src/src/rendering/app-route-resolver.ts +0 -170
  1466. package/src/src/rendering/cache/cache-coordinator.ts +0 -195
  1467. package/src/src/rendering/cache/index.ts +0 -24
  1468. package/src/src/rendering/cache/stores/api-store.ts +0 -222
  1469. package/src/src/rendering/cache/stores/filesystem-store.ts +0 -114
  1470. package/src/src/rendering/cache/stores/index.ts +0 -11
  1471. package/src/src/rendering/cache/stores/kv-store.ts +0 -103
  1472. package/src/src/rendering/cache/stores/memory-store.ts +0 -97
  1473. package/src/src/rendering/cache/stores/redis-store.ts +0 -267
  1474. package/src/src/rendering/cache/types.ts +0 -21
  1475. package/src/src/rendering/chunk-optimizer.ts +0 -273
  1476. package/src/src/rendering/cleanup.ts +0 -27
  1477. package/src/src/rendering/component-handling.ts +0 -172
  1478. package/src/src/rendering/context/render-context.ts +0 -143
  1479. package/src/src/rendering/element-validator/element-inspector.ts +0 -190
  1480. package/src/src/rendering/element-validator/element-normalizer.ts +0 -73
  1481. package/src/src/rendering/element-validator/index.ts +0 -18
  1482. package/src/src/rendering/element-validator/primitive-checks.ts +0 -124
  1483. package/src/src/rendering/element-validator/types.ts +0 -15
  1484. package/src/src/rendering/element-validator/validator-core.ts +0 -46
  1485. package/src/src/rendering/factories/service-factories.ts +0 -112
  1486. package/src/src/rendering/index.ts +0 -49
  1487. package/src/src/rendering/layouts/index.ts +0 -26
  1488. package/src/src/rendering/layouts/layout-applicator.ts +0 -468
  1489. package/src/src/rendering/layouts/layout-collector.ts +0 -401
  1490. package/src/src/rendering/layouts/layout-compiler.ts +0 -75
  1491. package/src/src/rendering/layouts/types.ts +0 -16
  1492. package/src/src/rendering/layouts/utils/app-resolver.ts +0 -71
  1493. package/src/src/rendering/layouts/utils/applicator.ts +0 -228
  1494. package/src/src/rendering/layouts/utils/compiler.ts +0 -30
  1495. package/src/src/rendering/layouts/utils/component-loader.ts +0 -273
  1496. package/src/src/rendering/layouts/utils/discovery.ts +0 -243
  1497. package/src/src/rendering/layouts/utils/ensure-valid-child.ts +0 -51
  1498. package/src/src/rendering/layouts/utils/hash-calculator.ts +0 -51
  1499. package/src/src/rendering/orchestrator/compiler-service.ts +0 -37
  1500. package/src/src/rendering/orchestrator/config.ts +0 -120
  1501. package/src/src/rendering/orchestrator/css-cache.ts +0 -81
  1502. package/src/src/rendering/orchestrator/css-candidate-manifest.ts +0 -224
  1503. package/src/src/rendering/orchestrator/file-resolver/candidates.ts +0 -25
  1504. package/src/src/rendering/orchestrator/file-resolver/index.ts +0 -84
  1505. package/src/src/rendering/orchestrator/html-head.ts +0 -74
  1506. package/src/src/rendering/orchestrator/html-imported-css.ts +0 -81
  1507. package/src/src/rendering/orchestrator/html-project-css.ts +0 -203
  1508. package/src/src/rendering/orchestrator/html-types.ts +0 -27
  1509. package/src/src/rendering/orchestrator/html.ts +0 -487
  1510. package/src/src/rendering/orchestrator/layout.ts +0 -321
  1511. package/src/src/rendering/orchestrator/lifecycle.ts +0 -297
  1512. package/src/src/rendering/orchestrator/mdx.ts +0 -78
  1513. package/src/src/rendering/orchestrator/module-collection.ts +0 -73
  1514. package/src/src/rendering/orchestrator/module-loader/cache.ts +0 -29
  1515. package/src/src/rendering/orchestrator/module-loader/esm-rewriter.ts +0 -102
  1516. package/src/src/rendering/orchestrator/module-loader/index.ts +0 -569
  1517. package/src/src/rendering/orchestrator/path-helpers.ts +0 -26
  1518. package/src/src/rendering/orchestrator/pipeline-helpers.ts +0 -35
  1519. package/src/src/rendering/orchestrator/pipeline.ts +0 -889
  1520. package/src/src/rendering/orchestrator/ssr-orchestrator.ts +0 -278
  1521. package/src/src/rendering/orchestrator/ssr.ts +0 -228
  1522. package/src/src/rendering/orchestrator/types.ts +0 -92
  1523. package/src/src/rendering/page-renderer.ts +0 -252
  1524. package/src/src/rendering/page-rendering.ts +0 -182
  1525. package/src/src/rendering/page-resolution/index.ts +0 -21
  1526. package/src/src/rendering/page-resolution/page-resolver.ts +0 -238
  1527. package/src/src/rendering/renderer-concurrency.ts +0 -195
  1528. package/src/src/rendering/renderer.ts +0 -593
  1529. package/src/src/rendering/router-detection.ts +0 -247
  1530. package/src/src/rendering/rsc/client-module-strategy.ts +0 -100
  1531. package/src/src/rendering/rsc/component-analyzer.ts +0 -148
  1532. package/src/src/rendering/rsc/constants.ts +0 -6
  1533. package/src/src/rendering/rsc/export-extractor.ts +0 -44
  1534. package/src/src/rendering/rsc/production-optimizer.ts +0 -128
  1535. package/src/src/rendering/rsc/server-action-guard.ts +0 -5
  1536. package/src/src/rendering/rsc/server-renderer/component-detector.ts +0 -47
  1537. package/src/src/rendering/rsc/server-renderer/html-generator.ts +0 -50
  1538. package/src/src/rendering/rsc/server-renderer/index.ts +0 -18
  1539. package/src/src/rendering/rsc/server-renderer/prop-serializer.ts +0 -69
  1540. package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +0 -47
  1541. package/src/src/rendering/rsc/server-renderer/tree-processor.ts +0 -126
  1542. package/src/src/rendering/rsc/types.ts +0 -8
  1543. package/src/src/rendering/script-page-handling.ts +0 -392
  1544. package/src/src/rendering/shared/context-aware-cache.ts +0 -281
  1545. package/src/src/rendering/shared/shared-services.ts +0 -112
  1546. package/src/src/rendering/snippet-renderer.ts +0 -386
  1547. package/src/src/rendering/ssr/component-registry.ts +0 -326
  1548. package/src/src/rendering/ssr/index.ts +0 -10
  1549. package/src/src/rendering/ssr/mdx-module-loader.ts +0 -185
  1550. package/src/src/rendering/ssr/mdx-renderer.ts +0 -66
  1551. package/src/src/rendering/ssr/types.ts +0 -14
  1552. package/src/src/rendering/ssr-globals/context.ts +0 -70
  1553. package/src/src/rendering/ssr-globals/dom-stubs.ts +0 -435
  1554. package/src/src/rendering/ssr-globals/fetch-interceptor.ts +0 -123
  1555. package/src/src/rendering/ssr-globals/index.ts +0 -79
  1556. package/src/src/rendering/ssr-globals.ts +0 -13
  1557. package/src/src/rendering/ssr-renderer.ts +0 -258
  1558. package/src/src/rendering/styles.ts +0 -15
  1559. package/src/src/rendering/utils/index.ts +0 -22
  1560. package/src/src/rendering/utils/react-helpers.ts +0 -31
  1561. package/src/src/rendering/utils/stream-utils.ts +0 -129
  1562. package/src/src/rendering/virtual-module-system.ts +0 -106
  1563. package/src/src/repositories/schemas/index.ts +0 -14
  1564. package/src/src/repositories/schemas/repository.schema.ts +0 -41
  1565. package/src/src/repositories/types.ts +0 -26
  1566. package/src/src/resource/factory.ts +0 -64
  1567. package/src/src/resource/index.ts +0 -30
  1568. package/src/src/resource/registry.ts +0 -41
  1569. package/src/src/resource/schemas/index.ts +0 -14
  1570. package/src/src/resource/schemas/resource.schema.ts +0 -21
  1571. package/src/src/resource/types.ts +0 -36
  1572. package/src/src/routing/api/api-route-matcher.ts +0 -196
  1573. package/src/src/routing/api/context-builder.ts +0 -69
  1574. package/src/src/routing/api/handler.ts +0 -341
  1575. package/src/src/routing/api/index.ts +0 -26
  1576. package/src/src/routing/api/method-validator.ts +0 -26
  1577. package/src/src/routing/api/module-loader/esbuild-plugin.ts +0 -192
  1578. package/src/src/routing/api/module-loader/external-import-rewriter.ts +0 -461
  1579. package/src/src/routing/api/module-loader/http-validator.ts +0 -38
  1580. package/src/src/routing/api/module-loader/loader-helpers.ts +0 -68
  1581. package/src/src/routing/api/module-loader/loader.ts +0 -672
  1582. package/src/src/routing/api/module-loader/security-config.ts +0 -28
  1583. package/src/src/routing/api/module-loader/types.ts +0 -36
  1584. package/src/src/routing/api/openapi/path-utils.ts +0 -132
  1585. package/src/src/routing/api/openapi/spec-generator.ts +0 -265
  1586. package/src/src/routing/api/openapi/types.ts +0 -135
  1587. package/src/src/routing/api/route-discovery.ts +0 -70
  1588. package/src/src/routing/api/route-executor.ts +0 -450
  1589. package/src/src/routing/client/dom-utils.ts +0 -174
  1590. package/src/src/routing/client/index.ts +0 -33
  1591. package/src/src/routing/client/navigation-handlers.ts +0 -127
  1592. package/src/src/routing/client/page-loader.ts +0 -215
  1593. package/src/src/routing/client/page-transition.ts +0 -99
  1594. package/src/src/routing/client/types.ts +0 -39
  1595. package/src/src/routing/client/viewport-prefetch.ts +0 -81
  1596. package/src/src/routing/index.ts +0 -54
  1597. package/src/src/routing/matchers/index.ts +0 -11
  1598. package/src/src/routing/matchers/pattern-route-matcher.ts +0 -46
  1599. package/src/src/routing/matchers/route-matcher.ts +0 -41
  1600. package/src/src/routing/matchers/route-parser.ts +0 -69
  1601. package/src/src/routing/matchers/types.ts +0 -13
  1602. package/src/src/routing/registry/index.ts +0 -7
  1603. package/src/src/routing/registry/registry.ts +0 -161
  1604. package/src/src/routing/registry/types.ts +0 -7
  1605. package/src/src/routing/slug-mapper/dynamic-route-matcher.ts +0 -54
  1606. package/src/src/routing/slug-mapper/index.ts +0 -11
  1607. package/src/src/routing/slug-mapper/path-candidate-generator.ts +0 -58
  1608. package/src/src/routing/slug-mapper/slug-normalizer.ts +0 -25
  1609. package/src/src/routing/slug-mapper/types.ts +0 -8
  1610. package/src/src/runtime/runtime-bridge.ts +0 -614
  1611. package/src/src/sandbox/agent-service-tools.ts +0 -184
  1612. package/src/src/sandbox/config.ts +0 -20
  1613. package/src/src/sandbox/index.ts +0 -68
  1614. package/src/src/sandbox/lazy-sandbox.ts +0 -736
  1615. package/src/src/sandbox/sandbox.ts +0 -454
  1616. package/src/src/sandbox/shell-tools.ts +0 -217
  1617. package/src/src/sandbox/types.ts +0 -95
  1618. package/src/src/schemas/common.ts +0 -99
  1619. package/src/src/schemas/define.ts +0 -45
  1620. package/src/src/schemas/index.ts +0 -65
  1621. package/src/src/schemas/json-schema.ts +0 -33
  1622. package/src/src/schemas/lazy.ts +0 -65
  1623. package/src/src/schemas/primitives.ts +0 -84
  1624. package/src/src/security/client/html-sanitizer.ts +0 -120
  1625. package/src/src/security/csrf/helpers.ts +0 -144
  1626. package/src/src/security/csrf/index.ts +0 -8
  1627. package/src/src/security/deno-permissions.ts +0 -55
  1628. package/src/src/security/http/auth.ts +0 -129
  1629. package/src/src/security/http/base-handler.ts +0 -183
  1630. package/src/src/security/http/client-hints.ts +0 -41
  1631. package/src/src/security/http/config.ts +0 -96
  1632. package/src/src/security/http/cors/constants.ts +0 -6
  1633. package/src/src/security/http/cors/headers.ts +0 -80
  1634. package/src/src/security/http/cors/index.ts +0 -36
  1635. package/src/src/security/http/cors/middleware.ts +0 -42
  1636. package/src/src/security/http/cors/preflight.ts +0 -86
  1637. package/src/src/security/http/cors/types.ts +0 -30
  1638. package/src/src/security/http/cors/validators.ts +0 -191
  1639. package/src/src/security/http/csrf/csrf-handler.ts +0 -101
  1640. package/src/src/security/http/csrf/index.ts +0 -7
  1641. package/src/src/security/http/middleware/config-loader.ts +0 -61
  1642. package/src/src/security/http/middleware/cors-handler.ts +0 -21
  1643. package/src/src/security/http/middleware/index.ts +0 -16
  1644. package/src/src/security/http/middleware/types.ts +0 -29
  1645. package/src/src/security/http/response/builder.ts +0 -62
  1646. package/src/src/security/http/response/cache-handler.ts +0 -34
  1647. package/src/src/security/http/response/constants.ts +0 -15
  1648. package/src/src/security/http/response/fluent-methods.ts +0 -137
  1649. package/src/src/security/http/response/index.ts +0 -11
  1650. package/src/src/security/http/response/response-methods.ts +0 -85
  1651. package/src/src/security/http/response/security-handler.ts +0 -225
  1652. package/src/src/security/http/response/static-helpers.ts +0 -150
  1653. package/src/src/security/http/response/types.ts +0 -33
  1654. package/src/src/security/index.ts +0 -100
  1655. package/src/src/security/input-validation/errors.ts +0 -17
  1656. package/src/src/security/input-validation/handler.ts +0 -47
  1657. package/src/src/security/input-validation/index.ts +0 -18
  1658. package/src/src/security/input-validation/limits.ts +0 -110
  1659. package/src/src/security/input-validation/parsers.ts +0 -104
  1660. package/src/src/security/input-validation/sanitizers.ts +0 -48
  1661. package/src/src/security/input-validation/types.ts +0 -34
  1662. package/src/src/security/path-validation/canonical.ts +0 -63
  1663. package/src/src/security/path-validation/index.ts +0 -156
  1664. package/src/src/security/path-validation/normalization.ts +0 -62
  1665. package/src/src/security/path-validation/presets.ts +0 -73
  1666. package/src/src/security/path-validation/rules.ts +0 -67
  1667. package/src/src/security/path-validation/types.ts +0 -38
  1668. package/src/src/security/path-validation.ts +0 -19
  1669. package/src/src/security/sandbox/project-worker.ts +0 -421
  1670. package/src/src/security/sandbox/worker-permissions.ts +0 -77
  1671. package/src/src/security/sandbox/worker-pool.ts +0 -466
  1672. package/src/src/security/sandbox/worker-types.ts +0 -212
  1673. package/src/src/security/secure-fs.ts +0 -322
  1674. package/src/src/security/utils/constant-time.ts +0 -15
  1675. package/src/src/server/bootstrap.ts +0 -530
  1676. package/src/src/server/build-app-route-renderer.ts +0 -148
  1677. package/src/src/server/build-routes.ts +0 -137
  1678. package/src/src/server/build-service-worker.ts +0 -170
  1679. package/src/src/server/build-types.ts +0 -48
  1680. package/src/src/server/context/cache-invalidation.ts +0 -153
  1681. package/src/src/server/context/enriched-context-types.ts +0 -65
  1682. package/src/src/server/context/enriched-context.ts +0 -58
  1683. package/src/src/server/context/request-context.ts +0 -54
  1684. package/src/src/server/dev-server/error-overlay/error-formatter.ts +0 -82
  1685. package/src/src/server/dev-server/error-overlay/html-template.ts +0 -479
  1686. package/src/src/server/dev-server/error-overlay/index.ts +0 -21
  1687. package/src/src/server/dev-server/error-overlay/overlay-renderer.ts +0 -15
  1688. package/src/src/server/dev-server/error-overlay/stack-parser.ts +0 -25
  1689. package/src/src/server/dev-server/file-watch-setup.ts +0 -276
  1690. package/src/src/server/dev-server/file-watcher.ts +0 -100
  1691. package/src/src/server/dev-server/hmr-types.ts +0 -11
  1692. package/src/src/server/dev-server/index.ts +0 -19
  1693. package/src/src/server/dev-server/middleware.ts +0 -244
  1694. package/src/src/server/dev-server/request-handler.ts +0 -186
  1695. package/src/src/server/dev-server/route-discovery.ts +0 -241
  1696. package/src/src/server/dev-server/server.ts +0 -487
  1697. package/src/src/server/dev-server/types.ts +0 -36
  1698. package/src/src/server/dev-server.ts +0 -8
  1699. package/src/src/server/dev-ui/manifest.js +0 -31
  1700. package/src/src/server/handlers/dev/dashboard/api.ts +0 -690
  1701. package/src/src/server/handlers/dev/dashboard/html-shell.ts +0 -43
  1702. package/src/src/server/handlers/dev/dashboard/index.ts +0 -59
  1703. package/src/src/server/handlers/dev/dashboard/ui-handler.ts +0 -104
  1704. package/src/src/server/handlers/dev/debug-context.handler.ts +0 -106
  1705. package/src/src/server/handlers/dev/endpoints.handler.ts +0 -58
  1706. package/src/src/server/handlers/dev/files/dev-file.handler.ts +0 -93
  1707. package/src/src/server/handlers/dev/files/esbuild-bundler.ts +0 -11
  1708. package/src/src/server/handlers/dev/files/esbuild-plugins.ts +0 -282
  1709. package/src/src/server/handlers/dev/files/index.ts +0 -12
  1710. package/src/src/server/handlers/dev/files/path-validator.ts +0 -60
  1711. package/src/src/server/handlers/dev/framework-candidates.generated.ts +0 -5458
  1712. package/src/src/server/handlers/dev/projects/api.ts +0 -34
  1713. package/src/src/server/handlers/dev/projects/html-shell.ts +0 -58
  1714. package/src/src/server/handlers/dev/projects/index.ts +0 -74
  1715. package/src/src/server/handlers/dev/projects/ui-handler.ts +0 -129
  1716. package/src/src/server/handlers/dev/scripts/error-overlay.ts +0 -100
  1717. package/src/src/server/handlers/dev/scripts/hmr-scripts.ts +0 -435
  1718. package/src/src/server/handlers/dev/shared/not-found-response.ts +0 -9
  1719. package/src/src/server/handlers/dev/shared/ui-module-transform.ts +0 -56
  1720. package/src/src/server/handlers/dev/styles-candidate-scanner.ts +0 -152
  1721. package/src/src/server/handlers/dev/styles-css.handler.ts +0 -465
  1722. package/src/src/server/handlers/monitoring/client-log.handler.ts +0 -127
  1723. package/src/src/server/handlers/monitoring/health.handler.ts +0 -96
  1724. package/src/src/server/handlers/monitoring/memory.handler.ts +0 -178
  1725. package/src/src/server/handlers/monitoring/metrics.handler.ts +0 -67
  1726. package/src/src/server/handlers/preview/hmr-client-manager.ts +0 -91
  1727. package/src/src/server/handlers/preview/hmr-client-message.ts +0 -63
  1728. package/src/src/server/handlers/preview/hmr-message-router.ts +0 -92
  1729. package/src/src/server/handlers/preview/hmr-ping-keepalive.ts +0 -49
  1730. package/src/src/server/handlers/preview/hmr.handler.ts +0 -306
  1731. package/src/src/server/handlers/preview/markdown-html-generator.ts +0 -187
  1732. package/src/src/server/handlers/preview/markdown-preview.handler.ts +0 -186
  1733. package/src/src/server/handlers/request/agent-run-cancel.handler.ts +0 -88
  1734. package/src/src/server/handlers/request/agent-run-resume.handler.ts +0 -110
  1735. package/src/src/server/handlers/request/agent-stream.handler.ts +0 -284
  1736. package/src/src/server/handlers/request/api/api-handler-wrapper.ts +0 -159
  1737. package/src/src/server/handlers/request/api/app-router-handler.ts +0 -68
  1738. package/src/src/server/handlers/request/api/app-router-resolver.ts +0 -166
  1739. package/src/src/server/handlers/request/api/index.ts +0 -12
  1740. package/src/src/server/handlers/request/api/pages-api-handler.ts +0 -111
  1741. package/src/src/server/handlers/request/api/project-discovery.ts +0 -133
  1742. package/src/src/server/handlers/request/api/security-headers.ts +0 -54
  1743. package/src/src/server/handlers/request/api/types.ts +0 -12
  1744. package/src/src/server/handlers/request/channel-dispatch-request.ts +0 -113
  1745. package/src/src/server/handlers/request/channel-invoke.handler.ts +0 -49
  1746. package/src/src/server/handlers/request/css.handler.ts +0 -106
  1747. package/src/src/server/handlers/request/internal-agents-list.handler.ts +0 -101
  1748. package/src/src/server/handlers/request/lib-modules.handler.ts +0 -124
  1749. package/src/src/server/handlers/request/module/batch-module-handler.ts +0 -37
  1750. package/src/src/server/handlers/request/module/data-endpoint-handler.ts +0 -79
  1751. package/src/src/server/handlers/request/module/index.ts +0 -14
  1752. package/src/src/server/handlers/request/module/module-server-handler.ts +0 -70
  1753. package/src/src/server/handlers/request/module/module.handler.ts +0 -94
  1754. package/src/src/server/handlers/request/module/page-data-endpoint-handler.ts +0 -108
  1755. package/src/src/server/handlers/request/module/page-module-handler.ts +0 -83
  1756. package/src/src/server/handlers/request/module/virtual-module-handler.ts +0 -58
  1757. package/src/src/server/handlers/request/openapi-docs.handler.ts +0 -91
  1758. package/src/src/server/handlers/request/openapi.handler.ts +0 -169
  1759. package/src/src/server/handlers/request/prod-hydration-module.handler.ts +0 -60
  1760. package/src/src/server/handlers/request/rsc/index.ts +0 -82
  1761. package/src/src/server/handlers/request/snippet.handler.ts +0 -137
  1762. package/src/src/server/handlers/request/ssr/error-page-fallback.ts +0 -285
  1763. package/src/src/server/handlers/request/ssr/etag-handler.ts +0 -18
  1764. package/src/src/server/handlers/request/ssr/index.ts +0 -10
  1765. package/src/src/server/handlers/request/ssr/not-found-fallback.ts +0 -105
  1766. package/src/src/server/handlers/request/ssr/ssr-response-builder.ts +0 -88
  1767. package/src/src/server/handlers/request/ssr/ssr.handler.ts +0 -303
  1768. package/src/src/server/handlers/request/static.handler.ts +0 -125
  1769. package/src/src/server/handlers/response/base.ts +0 -1
  1770. package/src/src/server/handlers/response/cors.ts +0 -67
  1771. package/src/src/server/handlers/response/not-found.ts +0 -156
  1772. package/src/src/server/handlers/studio/bridge-modules.handler.ts +0 -131
  1773. package/src/src/server/handlers/types.ts +0 -22
  1774. package/src/src/server/handlers/utils/content-types.ts +0 -107
  1775. package/src/src/server/handlers/utils/etag.ts +0 -44
  1776. package/src/src/server/index.ts +0 -386
  1777. package/src/src/server/node-handler.ts +0 -42
  1778. package/src/src/server/production-server.ts +0 -466
  1779. package/src/src/server/project-env/cache.ts +0 -101
  1780. package/src/src/server/project-env/fetcher.ts +0 -80
  1781. package/src/src/server/project-env/index.ts +0 -9
  1782. package/src/src/server/project-env/storage.ts +0 -54
  1783. package/src/src/server/reload-notifier.ts +0 -165
  1784. package/src/src/server/runtime-handler/adapter-factory.ts +0 -216
  1785. package/src/src/server/runtime-handler/environment-resolution.ts +0 -139
  1786. package/src/src/server/runtime-handler/handler-context-builder.ts +0 -138
  1787. package/src/src/server/runtime-handler/index.ts +0 -716
  1788. package/src/src/server/runtime-handler/isolation.ts +0 -119
  1789. package/src/src/server/runtime-handler/local-project-discovery.ts +0 -168
  1790. package/src/src/server/runtime-handler/project-isolation.ts +0 -256
  1791. package/src/src/server/runtime-handler/project-resolution.ts +0 -278
  1792. package/src/src/server/runtime-handler/projects-handler.ts +0 -133
  1793. package/src/src/server/runtime-handler/proxy-environment.ts +0 -15
  1794. package/src/src/server/runtime-handler/request-lifecycle.ts +0 -129
  1795. package/src/src/server/runtime-handler/request-tracker.ts +0 -259
  1796. package/src/src/server/runtime-handler/request-utils.ts +0 -88
  1797. package/src/src/server/runtime-handler/timeout-manager.ts +0 -83
  1798. package/src/src/server/runtime-handler/tracing.ts +0 -93
  1799. package/src/src/server/schemas/action.schema.ts +0 -15
  1800. package/src/src/server/schemas/index.ts +0 -7
  1801. package/src/src/server/service-server.ts +0 -598
  1802. package/src/src/server/services/rendering/ssr.service.ts +0 -375
  1803. package/src/src/server/services/rsc/endpoints/action-handler.ts +0 -63
  1804. package/src/src/server/services/rsc/endpoints/action-parser.ts +0 -44
  1805. package/src/src/server/services/rsc/endpoints/endpoint-router.ts +0 -315
  1806. package/src/src/server/services/rsc/endpoints/handler-registry.ts +0 -85
  1807. package/src/src/server/services/rsc/endpoints/index.ts +0 -12
  1808. package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +0 -13
  1809. package/src/src/server/services/rsc/endpoints/script-handlers.ts +0 -122
  1810. package/src/src/server/services/rsc/endpoints/types.ts +0 -23
  1811. package/src/src/server/services/rsc/orchestrators/component-resolver.ts +0 -76
  1812. package/src/src/server/services/rsc/orchestrators/handler.ts +0 -58
  1813. package/src/src/server/services/rsc/orchestrators/index.ts +0 -16
  1814. package/src/src/server/services/rsc/orchestrators/manifest-handler.ts +0 -96
  1815. package/src/src/server/services/rsc/orchestrators/page-handler.ts +0 -103
  1816. package/src/src/server/services/rsc/orchestrators/render-handler.ts +0 -161
  1817. package/src/src/server/services/rsc/orchestrators/stream-handler.ts +0 -94
  1818. package/src/src/server/services/rsc/orchestrators/types.ts +0 -36
  1819. package/src/src/server/services/static/index.ts +0 -10
  1820. package/src/src/server/services/static/static-file.service.ts +0 -333
  1821. package/src/src/server/shared/browser-module-bundler.ts +0 -65
  1822. package/src/src/server/shared/index.ts +0 -12
  1823. package/src/src/server/shared/renderer/adapter.ts +0 -410
  1824. package/src/src/server/shared/renderer/index.ts +0 -14
  1825. package/src/src/server/shared/renderer/memory/pressure.ts +0 -69
  1826. package/src/src/server/shared/renderer-factory.ts +0 -14
  1827. package/src/src/server/utils/chunk-utils.ts +0 -17
  1828. package/src/src/server/utils/domain-lookup.ts +0 -265
  1829. package/src/src/server/utils/domain-parser.ts +0 -238
  1830. package/src/src/server/utils/error-html.ts +0 -163
  1831. package/src/src/server/utils/proxy-trust.ts +0 -56
  1832. package/src/src/server/utils/request-host.ts +0 -12
  1833. package/src/src/skill/allowed-tools.ts +0 -100
  1834. package/src/src/skill/executor.ts +0 -213
  1835. package/src/src/skill/index.ts +0 -60
  1836. package/src/src/skill/parser.ts +0 -207
  1837. package/src/src/skill/path-safety.ts +0 -212
  1838. package/src/src/skill/prompt-augmentation.ts +0 -48
  1839. package/src/src/skill/registry.ts +0 -51
  1840. package/src/src/skill/tools.ts +0 -221
  1841. package/src/src/skill/types.ts +0 -107
  1842. package/src/src/studio/bridge/bridge-bundle.generated.ts +0 -9
  1843. package/src/src/studio/element-selector-injector.ts +0 -96
  1844. package/src/src/studio/hash-utils.ts +0 -1
  1845. package/src/src/task/discovery.ts +0 -294
  1846. package/src/src/task/runner.ts +0 -90
  1847. package/src/src/task/types.ts +0 -46
  1848. package/src/src/testing/assert.ts +0 -352
  1849. package/src/src/testing/bdd.ts +0 -619
  1850. package/src/src/testing/deno-compat.ts +0 -206
  1851. package/src/src/testing/index.ts +0 -92
  1852. package/src/src/testing/init.ts +0 -30
  1853. package/src/src/testing/isolation.ts +0 -177
  1854. package/src/src/testing/timing.ts +0 -27
  1855. package/src/src/testing/utils.ts +0 -44
  1856. package/src/src/tool/context7.ts +0 -34
  1857. package/src/src/tool/executor.ts +0 -22
  1858. package/src/src/tool/factory.ts +0 -234
  1859. package/src/src/tool/host-tools.ts +0 -127
  1860. package/src/src/tool/index.ts +0 -118
  1861. package/src/src/tool/project-scoped-remote-tools.ts +0 -292
  1862. package/src/src/tool/registry.ts +0 -32
  1863. package/src/src/tool/remote-mcp.ts +0 -346
  1864. package/src/src/tool/remote-source-tools.ts +0 -62
  1865. package/src/src/tool/result.ts +0 -23
  1866. package/src/src/tool/schema/index.ts +0 -8
  1867. package/src/src/tool/schema/json-schema.ts +0 -9
  1868. package/src/src/tool/schema/zod-json-schema.ts +0 -87
  1869. package/src/src/tool/sleep.ts +0 -102
  1870. package/src/src/tool/tracing.ts +0 -70
  1871. package/src/src/tool/types.ts +0 -173
  1872. package/src/src/transforms/css-modules/naming.ts +0 -152
  1873. package/src/src/transforms/esm/bundle-deps-validator.ts +0 -187
  1874. package/src/src/transforms/esm/bundle-manifest-ttl.ts +0 -58
  1875. package/src/src/transforms/esm/bundle-manifest-types.ts +0 -14
  1876. package/src/src/transforms/esm/bundle-manifest.ts +0 -182
  1877. package/src/src/transforms/esm/bundle-recovery.ts +0 -356
  1878. package/src/src/transforms/esm/cached-bundle-validation.ts +0 -44
  1879. package/src/src/transforms/esm/html-content.ts +0 -13
  1880. package/src/src/transforms/esm/http-bundler.ts +0 -300
  1881. package/src/src/transforms/esm/http-cache-helpers.ts +0 -188
  1882. package/src/src/transforms/esm/http-cache-invariants.ts +0 -128
  1883. package/src/src/transforms/esm/http-cache-state.ts +0 -72
  1884. package/src/src/transforms/esm/http-cache-types.ts +0 -66
  1885. package/src/src/transforms/esm/http-cache-wrapper.ts +0 -442
  1886. package/src/src/transforms/esm/http-cache.ts +0 -439
  1887. package/src/src/transforms/esm/import-parser.ts +0 -254
  1888. package/src/src/transforms/esm/import-rewriter.ts +0 -194
  1889. package/src/src/transforms/esm/in-flight-manager.ts +0 -145
  1890. package/src/src/transforms/esm/index.ts +0 -23
  1891. package/src/src/transforms/esm/lexer.ts +0 -178
  1892. package/src/src/transforms/esm/package-registry.ts +0 -176
  1893. package/src/src/transforms/esm/path-resolver.ts +0 -114
  1894. package/src/src/transforms/esm/react-imports.ts +0 -55
  1895. package/src/src/transforms/esm/source-url-embed.ts +0 -31
  1896. package/src/src/transforms/esm/specifier-resolver.ts +0 -118
  1897. package/src/src/transforms/esm/transform-cache.ts +0 -317
  1898. package/src/src/transforms/esm/transform-utils.ts +0 -30
  1899. package/src/src/transforms/esm/types.ts +0 -22
  1900. package/src/src/transforms/esm-transform.ts +0 -13
  1901. package/src/src/transforms/import-rewriter/index.ts +0 -82
  1902. package/src/src/transforms/import-rewriter/parse-cache.ts +0 -195
  1903. package/src/src/transforms/import-rewriter/strategies/alias-strategy.ts +0 -79
  1904. package/src/src/transforms/import-rewriter/strategies/bare-strategy.ts +0 -96
  1905. package/src/src/transforms/import-rewriter/strategies/cross-project-strategy.ts +0 -54
  1906. package/src/src/transforms/import-rewriter/strategies/import-map-strategy.ts +0 -137
  1907. package/src/src/transforms/import-rewriter/strategies/index.ts +0 -25
  1908. package/src/src/transforms/import-rewriter/strategies/node-builtin-strategy.ts +0 -56
  1909. package/src/src/transforms/import-rewriter/strategies/react-strategy.ts +0 -48
  1910. package/src/src/transforms/import-rewriter/strategies/relative-strategy.ts +0 -71
  1911. package/src/src/transforms/import-rewriter/strategies/url-strategy.ts +0 -23
  1912. package/src/src/transforms/import-rewriter/strategies/vendor-strategy.ts +0 -47
  1913. package/src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts +0 -97
  1914. package/src/src/transforms/import-rewriter/types.ts +0 -182
  1915. package/src/src/transforms/import-rewriter/unified-rewriter.ts +0 -136
  1916. package/src/src/transforms/import-rewriter/url-builder.ts +0 -145
  1917. package/src/src/transforms/md/compiler/index.ts +0 -7
  1918. package/src/src/transforms/md/compiler/md-compiler.ts +0 -61
  1919. package/src/src/transforms/md/utils.ts +0 -20
  1920. package/src/src/transforms/mdx/compiler/frontmatter-extractor.ts +0 -66
  1921. package/src/src/transforms/mdx/compiler/import-rewriter.ts +0 -125
  1922. package/src/src/transforms/mdx/compiler/index.ts +0 -63
  1923. package/src/src/transforms/mdx/compiler/mdx-compiler.ts +0 -62
  1924. package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +0 -466
  1925. package/src/src/transforms/mdx/esm-module-loader/cache/local-fs.ts +0 -10
  1926. package/src/src/transforms/mdx/esm-module-loader/cache-format.ts +0 -204
  1927. package/src/src/transforms/mdx/esm-module-loader/components/resolver.ts +0 -75
  1928. package/src/src/transforms/mdx/esm-module-loader/constants.ts +0 -28
  1929. package/src/src/transforms/mdx/esm-module-loader/import-transformer.ts +0 -215
  1930. package/src/src/transforms/mdx/esm-module-loader/index.ts +0 -31
  1931. package/src/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.ts +0 -17
  1932. package/src/src/transforms/mdx/esm-module-loader/jsx-cache.ts +0 -45
  1933. package/src/src/transforms/mdx/esm-module-loader/loader-helpers.ts +0 -224
  1934. package/src/src/transforms/mdx/esm-module-loader/loader.ts +0 -30
  1935. package/src/src/transforms/mdx/esm-module-loader/metadata/extractor.ts +0 -105
  1936. package/src/src/transforms/mdx/esm-module-loader/metadata/index.ts +0 -8
  1937. package/src/src/transforms/mdx/esm-module-loader/metadata/string-parser.ts +0 -69
  1938. package/src/src/transforms/mdx/esm-module-loader/missing-module.ts +0 -57
  1939. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.ts +0 -34
  1940. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.ts +0 -173
  1941. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.ts +0 -260
  1942. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/framework-validator.ts +0 -294
  1943. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.ts +0 -85
  1944. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.ts +0 -108
  1945. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +0 -499
  1946. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.ts +0 -88
  1947. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.ts +0 -95
  1948. package/src/src/transforms/mdx/esm-module-loader/module-fetcher/render-sessions.ts +0 -100
  1949. package/src/src/transforms/mdx/esm-module-loader/module-writer.ts +0 -425
  1950. package/src/src/transforms/mdx/esm-module-loader/resolution/file-finder.ts +0 -186
  1951. package/src/src/transforms/mdx/esm-module-loader/types.ts +0 -83
  1952. package/src/src/transforms/mdx/esm-module-loader/utils/hash.ts +0 -1
  1953. package/src/src/transforms/mdx/esm-module-loader/utils/stub-module.ts +0 -111
  1954. package/src/src/transforms/mdx/index.ts +0 -116
  1955. package/src/src/transforms/mdx/mdx-cache-adapter.ts +0 -213
  1956. package/src/src/transforms/mdx/module-loader/types.ts +0 -55
  1957. package/src/src/transforms/mdx/types.ts +0 -83
  1958. package/src/src/transforms/npm-import-rewrites.ts +0 -105
  1959. package/src/src/transforms/pipeline/context.ts +0 -124
  1960. package/src/src/transforms/pipeline/index.ts +0 -372
  1961. package/src/src/transforms/pipeline/stages/compile.ts +0 -70
  1962. package/src/src/transforms/pipeline/stages/finalize.ts +0 -20
  1963. package/src/src/transforms/pipeline/stages/index.ts +0 -14
  1964. package/src/src/transforms/pipeline/stages/parse.ts +0 -29
  1965. package/src/src/transforms/pipeline/stages/resolve-imports.ts +0 -48
  1966. package/src/src/transforms/pipeline/stages/ssr-css-strip.ts +0 -201
  1967. package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -49
  1968. package/src/src/transforms/pipeline/stages/ssr-http-stub.ts +0 -96
  1969. package/src/src/transforms/pipeline/stages/ssr-vf-modules/constants.ts +0 -62
  1970. package/src/src/transforms/pipeline/stages/ssr-vf-modules/import-finder.ts +0 -46
  1971. package/src/src/transforms/pipeline/stages/ssr-vf-modules/index.ts +0 -174
  1972. package/src/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.ts +0 -219
  1973. package/src/src/transforms/pipeline/stages/ssr-vf-modules/transform.ts +0 -434
  1974. package/src/src/transforms/pipeline/stages/ssr-vf-modules.ts +0 -5
  1975. package/src/src/transforms/pipeline/types.ts +0 -143
  1976. package/src/src/transforms/plugins/babel-node-positions.ts +0 -22
  1977. package/src/src/transforms/shared/cross-project-import.ts +0 -27
  1978. package/src/src/transforms/shared/framework-bundle-paths.ts +0 -12
  1979. package/src/src/transforms/shared/package-specifier.ts +0 -29
  1980. package/src/src/transforms/shared/vendor-export-name.ts +0 -7
  1981. package/src/src/transforms/veryfront-module-urls.ts +0 -131
  1982. package/src/src/types/app.ts +0 -6
  1983. package/src/src/types/branded.ts +0 -28
  1984. package/src/src/types/bundler.ts +0 -51
  1985. package/src/src/types/entities/getEntityInfo.ts +0 -448
  1986. package/src/src/types/entities.ts +0 -99
  1987. package/src/src/types/global-guards.ts +0 -21
  1988. package/src/src/types/hmr.ts +0 -20
  1989. package/src/src/types/index.ts +0 -207
  1990. package/src/src/types/rsc.ts +0 -40
  1991. package/src/src/types/server.ts +0 -153
  1992. package/src/src/utils/base64url.ts +0 -15
  1993. package/src/src/utils/box.ts +0 -300
  1994. package/src/src/utils/bundle-manifest-init.ts +0 -119
  1995. package/src/src/utils/bundle-manifest-kv.ts +0 -58
  1996. package/src/src/utils/bundle-manifest-redis.ts +0 -55
  1997. package/src/src/utils/bundle-manifest.ts +0 -161
  1998. package/src/src/utils/cache/eviction/eviction-manager.ts +0 -168
  1999. package/src/src/utils/cache/keys/namespace.ts +0 -25
  2000. package/src/src/utils/cache/stores/memory/entry-manager.ts +0 -98
  2001. package/src/src/utils/cache/stores/memory/lru-cache-adapter.ts +0 -220
  2002. package/src/src/utils/cache/stores/memory/lru-list-manager.ts +0 -58
  2003. package/src/src/utils/cache/stores/memory/lru-node.ts +0 -20
  2004. package/src/src/utils/cache/stores/memory/types.ts +0 -32
  2005. package/src/src/utils/cache-dir.ts +0 -80
  2006. package/src/src/utils/cache-file-ops.ts +0 -110
  2007. package/src/src/utils/cache-namespace.ts +0 -42
  2008. package/src/src/utils/case-utils.ts +0 -10
  2009. package/src/src/utils/circuit-breaker.ts +0 -216
  2010. package/src/src/utils/clsx.ts +0 -38
  2011. package/src/src/utils/constants/buffers.ts +0 -30
  2012. package/src/src/utils/constants/build.ts +0 -6
  2013. package/src/src/utils/constants/cache.ts +0 -208
  2014. package/src/src/utils/constants/cdn.ts +0 -88
  2015. package/src/src/utils/constants/crypto.ts +0 -12
  2016. package/src/src/utils/constants/env.ts +0 -26
  2017. package/src/src/utils/constants/hash.ts +0 -2
  2018. package/src/src/utils/constants/hmr.ts +0 -24
  2019. package/src/src/utils/constants/html.ts +0 -7
  2020. package/src/src/utils/constants/http.ts +0 -66
  2021. package/src/src/utils/constants/index.ts +0 -305
  2022. package/src/src/utils/constants/limits.ts +0 -31
  2023. package/src/src/utils/constants/metrics.ts +0 -39
  2024. package/src/src/utils/constants/network.ts +0 -31
  2025. package/src/src/utils/constants/priorities.ts +0 -31
  2026. package/src/src/utils/constants/retry.ts +0 -16
  2027. package/src/src/utils/constants/security.ts +0 -14
  2028. package/src/src/utils/constants/server.ts +0 -137
  2029. package/src/src/utils/cookie-utils.ts +0 -25
  2030. package/src/src/utils/env-loader.ts +0 -170
  2031. package/src/src/utils/feature-flags.ts +0 -10
  2032. package/src/src/utils/file-discovery.ts +0 -250
  2033. package/src/src/utils/hash-utils.ts +0 -56
  2034. package/src/src/utils/html-escape.ts +0 -8
  2035. package/src/src/utils/id.ts +0 -36
  2036. package/src/src/utils/import-lockfile.ts +0 -274
  2037. package/src/src/utils/import-map.ts +0 -53
  2038. package/src/src/utils/index.ts +0 -129
  2039. package/src/src/utils/logger/components.ts +0 -93
  2040. package/src/src/utils/logger/core.ts +0 -165
  2041. package/src/src/utils/logger/index.ts +0 -56
  2042. package/src/src/utils/logger/logger.ts +0 -612
  2043. package/src/src/utils/logger/request-context.ts +0 -47
  2044. package/src/src/utils/lru-wrapper.ts +0 -114
  2045. package/src/src/utils/memoize.ts +0 -100
  2046. package/src/src/utils/memory/index.ts +0 -23
  2047. package/src/src/utils/memory/profiler.ts +0 -250
  2048. package/src/src/utils/mime-types.ts +0 -153
  2049. package/src/src/utils/parallel.ts +0 -153
  2050. package/src/src/utils/path-utils.ts +0 -151
  2051. package/src/src/utils/perf-timer.ts +0 -140
  2052. package/src/src/utils/platform.ts +0 -21
  2053. package/src/src/utils/redis-client.ts +0 -133
  2054. package/src/src/utils/request-id.ts +0 -18
  2055. package/src/src/utils/route-path-utils.ts +0 -210
  2056. package/src/src/utils/runtime-guards.ts +0 -42
  2057. package/src/src/utils/semaphore.ts +0 -107
  2058. package/src/src/utils/singleflight.ts +0 -25
  2059. package/src/src/utils/version-constant.ts +0 -3
  2060. package/src/src/utils/version.ts +0 -51
  2061. package/src/src/workflow/api/index.ts +0 -8
  2062. package/src/src/workflow/api/workflow-client.ts +0 -181
  2063. package/src/src/workflow/api.ts +0 -195
  2064. package/src/src/workflow/backends/memory.ts +0 -451
  2065. package/src/src/workflow/backends/redis/index.ts +0 -657
  2066. package/src/src/workflow/backends/redis/types.ts +0 -57
  2067. package/src/src/workflow/backends/redis.ts +0 -10
  2068. package/src/src/workflow/backends/shared/requeue-run.ts +0 -18
  2069. package/src/src/workflow/backends/types.ts +0 -142
  2070. package/src/src/workflow/blob/types.ts +0 -36
  2071. package/src/src/workflow/blob/veryfront-cloud-storage.ts +0 -534
  2072. package/src/src/workflow/claude-code/agent.ts +0 -264
  2073. package/src/src/workflow/claude-code/event-publisher.ts +0 -340
  2074. package/src/src/workflow/claude-code/index.ts +0 -113
  2075. package/src/src/workflow/claude-code/react/index.ts +0 -23
  2076. package/src/src/workflow/claude-code/react/use-claude-code-stream.ts +0 -377
  2077. package/src/src/workflow/claude-code/react/use-claude-code-websocket.ts +0 -534
  2078. package/src/src/workflow/claude-code/tool.ts +0 -209
  2079. package/src/src/workflow/claude-code/types.ts +0 -425
  2080. package/src/src/workflow/claude-code/websocket-publisher.ts +0 -501
  2081. package/src/src/workflow/claude-code/workspace-sync.ts +0 -647
  2082. package/src/src/workflow/discovery/index.ts +0 -16
  2083. package/src/src/workflow/discovery/workflow-discovery.ts +0 -238
  2084. package/src/src/workflow/dsl/branch.ts +0 -74
  2085. package/src/src/workflow/dsl/index.ts +0 -29
  2086. package/src/src/workflow/dsl/loop.ts +0 -129
  2087. package/src/src/workflow/dsl/map.ts +0 -46
  2088. package/src/src/workflow/dsl/parallel.ts +0 -56
  2089. package/src/src/workflow/dsl/step.ts +0 -67
  2090. package/src/src/workflow/dsl/sub-workflow.ts +0 -39
  2091. package/src/src/workflow/dsl/validation.ts +0 -8
  2092. package/src/src/workflow/dsl/wait.ts +0 -77
  2093. package/src/src/workflow/dsl/workflow.ts +0 -122
  2094. package/src/src/workflow/executor/checkpoint-manager.ts +0 -160
  2095. package/src/src/workflow/executor/dag/graph.ts +0 -127
  2096. package/src/src/workflow/executor/dag/index.ts +0 -684
  2097. package/src/src/workflow/executor/dag/types.ts +0 -40
  2098. package/src/src/workflow/executor/dag/utils.ts +0 -17
  2099. package/src/src/workflow/executor/dag-executor.ts +0 -14
  2100. package/src/src/workflow/executor/step-executor.ts +0 -339
  2101. package/src/src/workflow/executor/workflow-executor.ts +0 -635
  2102. package/src/src/workflow/index.ts +0 -148
  2103. package/src/src/workflow/react/index.ts +0 -17
  2104. package/src/src/workflow/react/use-approval.ts +0 -150
  2105. package/src/src/workflow/react/use-workflow-list.ts +0 -181
  2106. package/src/src/workflow/react/use-workflow-start.ts +0 -75
  2107. package/src/src/workflow/react/use-workflow.ts +0 -205
  2108. package/src/src/workflow/registry.ts +0 -311
  2109. package/src/src/workflow/runtime/approval-manager.ts +0 -325
  2110. package/src/src/workflow/schemas/index.ts +0 -57
  2111. package/src/src/workflow/schemas/workflow.schema.ts +0 -262
  2112. package/src/src/workflow/types.ts +0 -359
  2113. package/src/src/workflow/worker/dynamic-job-entrypoint.ts +0 -254
  2114. package/src/src/workflow/worker/executors/index.ts +0 -17
  2115. package/src/src/workflow/worker/executors/k8s.ts +0 -337
  2116. package/src/src/workflow/worker/executors/process.ts +0 -332
  2117. package/src/src/workflow/worker/executors/types.ts +0 -149
  2118. package/src/src/workflow/worker/index.ts +0 -78
  2119. package/src/src/workflow/worker/job-entrypoint.ts +0 -215
  2120. package/src/src/workflow/worker/job-manager.ts +0 -488
  2121. package/src/src/workflow/worker/shared.ts +0 -127
  2122. package/src/src/workflow/worker/workflow-worker.ts +0 -326
@@ -1,1845 +0,0 @@
1
- // Ported from js-yaml v3.13.1:
2
- // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
- // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
- // Copyright 2018-2026 the Deno authors. MIT license.
5
-
6
- import {
7
- AMPERSAND,
8
- ASTERISK,
9
- BACKSLASH,
10
- CARRIAGE_RETURN,
11
- COLON,
12
- COMMA,
13
- COMMERCIAL_AT,
14
- DOT,
15
- DOUBLE_QUOTE,
16
- EXCLAMATION,
17
- GRAVE_ACCENT,
18
- GREATER_THAN,
19
- isEOL,
20
- isFlowIndicator,
21
- isWhiteSpace,
22
- isWhiteSpaceOrEOL,
23
- LEFT_CURLY_BRACKET,
24
- LEFT_SQUARE_BRACKET,
25
- LINE_FEED,
26
- MINUS,
27
- PERCENT,
28
- PLUS,
29
- QUESTION,
30
- RIGHT_CURLY_BRACKET,
31
- RIGHT_SQUARE_BRACKET,
32
- SHARP,
33
- SINGLE_QUOTE,
34
- SMALLER_THAN,
35
- SPACE,
36
- VERTICAL_LINE,
37
- } from "./_chars.js";
38
-
39
- import { DEFAULT_SCHEMA, type Schema, type TypeMap } from "./_schema.js";
40
- import type { KindType, Type } from "./_type.js";
41
- import { isObject, isPlainObject } from "./_utils.js";
42
-
43
- const CONTEXT_FLOW_IN = 1;
44
- const CONTEXT_FLOW_OUT = 2;
45
- const CONTEXT_BLOCK_IN = 3;
46
- const CONTEXT_BLOCK_OUT = 4;
47
-
48
- const CHOMPING_CLIP = 1;
49
- const CHOMPING_STRIP = 2;
50
- const CHOMPING_KEEP = 3;
51
-
52
- const PATTERN_NON_PRINTABLE_REGEXP =
53
- // deno-lint-ignore no-control-regex
54
- /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
55
- const PATTERN_NON_ASCII_LINE_BREAKS_REGEXP = /[\x85\u2028\u2029]/;
56
- const PATTERN_FLOW_INDICATORS_REGEXP = /[,\[\]\{\}]/;
57
- const PATTERN_TAG_HANDLE_REGEXP = /^(?:!|!!|![a-z\-]+!)$/i;
58
- const PATTERN_TAG_URI_REGEXP =
59
- /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
60
-
61
- export interface LoaderStateOptions {
62
- /** specifies a schema to use. */
63
- schema?: Schema;
64
- /** compatibility with JSON.parse behaviour. */
65
- allowDuplicateKeys?: boolean;
66
- /** function to call on warning messages. */
67
- onWarning?(error: Error): void;
68
- }
69
-
70
- const ESCAPED_HEX_LENGTHS = new Map<number, number>([
71
- [0x78, 2], // x
72
- [0x75, 4], // u
73
- [0x55, 8], // U
74
- ]);
75
-
76
- const SIMPLE_ESCAPE_SEQUENCES = new Map<number, string>([
77
- [0x30, "\x00"], // 0
78
- [0x61, "\x07"], // a
79
- [0x62, "\x08"], // b
80
- [0x74, "\x09"], // t
81
- [0x09, "\x09"], // Tab
82
- [0x6e, "\x0A"], // n
83
- [0x76, "\x0B"], // v
84
- [0x66, "\x0C"], // f
85
- [0x72, "\x0D"], // r
86
- [0x65, "\x1B"], // e
87
- [0x20, " "], // Space
88
- [0x22, '"'], // "
89
- [0x2f, "/"], // /
90
- [0x5c, "\\"], // \
91
- [0x4e, "\x85"], // N
92
- [0x5f, "\xA0"], // _
93
- [0x4c, "\u2028"], // L
94
- [0x50, "\u2029"], // P
95
- ]);
96
-
97
- /**
98
- * Converts a hexadecimal character code to its decimal value.
99
- */
100
- function hexCharCodeToNumber(charCode: number) {
101
- // Check if the character code is in the range for '0' to '9'
102
- if (0x30 <= charCode && charCode <= 0x39) return charCode - 0x30; // Convert '0'-'9' to 0-9
103
-
104
- // Normalize the character code to lowercase if it's a letter
105
- const lc = charCode | 0x20;
106
-
107
- // Check if the character code is in the range for 'a' to 'f'
108
- if (0x61 <= lc && lc <= 0x66) return lc - 0x61 + 10; // Convert 'a'-'f' to 10-15
109
-
110
- return -1;
111
- }
112
-
113
- /**
114
- * Converts a decimal character code to its decimal value.
115
- */
116
- function decimalCharCodeToNumber(charCode: number): number {
117
- // Check if the character code is in the range for '0' to '9'
118
- if (0x30 <= charCode && charCode <= 0x39) return charCode - 0x30; // Convert '0'-'9' to 0-9
119
- return -1;
120
- }
121
-
122
- /**
123
- * Converts a Unicode code point to a string.
124
- */
125
- function codepointToChar(codepoint: number): string {
126
- // Check if the code point is within the Basic Multilingual Plane (BMP)
127
- if (codepoint <= 0xffff) return String.fromCharCode(codepoint); // Convert BMP code point to character
128
-
129
- // Encode UTF-16 surrogate pair for code points beyond BMP
130
- // Reference: https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
131
- return String.fromCharCode(
132
- ((codepoint - 0x010000) >> 10) + 0xd800, // High surrogate
133
- ((codepoint - 0x010000) & 0x03ff) + 0xdc00, // Low surrogate
134
- );
135
- }
136
-
137
- const INDENT = 4;
138
- const MAX_LENGTH = 75;
139
- const DELIMITERS = "\x00\r\n\x85\u2028\u2029";
140
-
141
- function getSnippet(buffer: string, position: number): string | null {
142
- if (!buffer) return null;
143
- let start = position;
144
- let end = position;
145
- let head = "";
146
- let tail = "";
147
-
148
- while (start > 0 && !DELIMITERS.includes(buffer.charAt(start - 1))) {
149
- start--;
150
- if (position - start > MAX_LENGTH / 2 - 1) {
151
- head = " ... ";
152
- start += 5;
153
- break;
154
- }
155
- }
156
-
157
- while (end < buffer.length && !DELIMITERS.includes(buffer.charAt(end))) {
158
- end++;
159
- if (end - position > MAX_LENGTH / 2 - 1) {
160
- tail = " ... ";
161
- end -= 5;
162
- break;
163
- }
164
- }
165
-
166
- const snippet = buffer.slice(start, end);
167
- const indent = " ".repeat(INDENT);
168
- const caretIndent = " ".repeat(INDENT + position - start + head.length);
169
- return `${indent + head + snippet + tail}\n${caretIndent}^`;
170
- }
171
-
172
- function markToString(
173
- buffer: string,
174
- position: number,
175
- line: number,
176
- column: number,
177
- ): string {
178
- let where = `at line ${line + 1}, column ${column + 1}`;
179
- const snippet = getSnippet(buffer, position);
180
- if (snippet) where += `:\n${snippet}`;
181
- return where;
182
- }
183
-
184
- function getIndentStatus(lineIndent: number, parentIndent: number) {
185
- if (lineIndent > parentIndent) return 1;
186
- if (lineIndent < parentIndent) return -1;
187
- return 0;
188
- }
189
-
190
- function writeFoldedLines(count: number) {
191
- if (count === 1) return " ";
192
- if (count > 1) return "\n".repeat(count - 1);
193
- return "";
194
- }
195
-
196
- class Scanner {
197
- source: string;
198
- #length: number;
199
- position = 0;
200
-
201
- constructor(source: string) {
202
- // Use 0 as string terminator. That significantly simplifies bounds check.
203
- source += "\0";
204
- this.source = source;
205
- this.#length = source.length;
206
- }
207
-
208
- peek(offset = 0) {
209
- return this.source.charCodeAt(this.position + offset);
210
- }
211
-
212
- next() {
213
- this.position += 1;
214
- }
215
-
216
- eof() {
217
- return this.position >= this.#length - 1;
218
- }
219
- }
220
-
221
- interface State {
222
- tag: string | null;
223
- anchor: string | null;
224
- kind: KindType | null;
225
- result: unknown[] | Record<string, unknown> | string | null;
226
- }
227
- export class LoaderState {
228
- #scanner: Scanner;
229
- lineIndent = 0;
230
- lineStart = 0;
231
- line = 0;
232
- onWarning: ((error: Error) => void) | undefined;
233
- allowDuplicateKeys: boolean;
234
- implicitTypes: Type<"scalar">[];
235
- typeMap: TypeMap;
236
-
237
- checkLineBreaks = false;
238
- tagMap = new Map();
239
- anchorMap = new Map();
240
-
241
- constructor(
242
- input: string,
243
- {
244
- schema = DEFAULT_SCHEMA,
245
- onWarning,
246
- allowDuplicateKeys = false,
247
- }: LoaderStateOptions,
248
- ) {
249
- this.#scanner = new Scanner(input);
250
- this.onWarning = onWarning;
251
- this.allowDuplicateKeys = allowDuplicateKeys;
252
- this.implicitTypes = schema.implicitTypes;
253
- this.typeMap = schema.typeMap;
254
-
255
- this.readIndent();
256
- }
257
-
258
- skipWhitespaces() {
259
- let ch = this.#scanner.peek();
260
- while (isWhiteSpace(ch)) {
261
- this.#scanner.next();
262
- ch = this.#scanner.peek();
263
- }
264
- }
265
-
266
- skipComment() {
267
- let ch = this.#scanner.peek();
268
- if (ch !== SHARP) return;
269
- this.#scanner.next();
270
- ch = this.#scanner.peek();
271
- while (ch !== 0 && !isEOL(ch)) {
272
- this.#scanner.next();
273
- ch = this.#scanner.peek();
274
- }
275
- }
276
-
277
- readIndent() {
278
- let ch = this.#scanner.peek();
279
- while (ch === SPACE) {
280
- this.lineIndent += 1;
281
- this.#scanner.next();
282
- ch = this.#scanner.peek();
283
- }
284
- }
285
-
286
- #createError(message: string): SyntaxError {
287
- const mark = markToString(
288
- this.#scanner.source,
289
- this.#scanner.position,
290
- this.line,
291
- this.#scanner.position - this.lineStart,
292
- );
293
- return new SyntaxError(`${message} ${mark}`);
294
- }
295
-
296
- dispatchWarning(message: string) {
297
- const error = this.#createError(message);
298
- this.onWarning?.(error);
299
- }
300
-
301
- yamlDirectiveHandler(args: string[]): string | null {
302
- if (args.length !== 1) {
303
- throw this.#createError(
304
- "Cannot handle YAML directive: YAML directive accepts exactly one argument",
305
- );
306
- }
307
-
308
- const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]!);
309
- if (match === null) {
310
- throw this.#createError(
311
- "Cannot handle YAML directive: ill-formed argument",
312
- );
313
- }
314
-
315
- const major = parseInt(match[1]!, 10);
316
- const minor = parseInt(match[2]!, 10);
317
- if (major !== 1) {
318
- throw this.#createError(
319
- "Cannot handle YAML directive: unacceptable YAML version",
320
- );
321
- }
322
- this.checkLineBreaks = minor < 2;
323
- if (minor !== 1 && minor !== 2) {
324
- this.dispatchWarning(
325
- "Cannot handle YAML directive: unsupported YAML version",
326
- );
327
- }
328
- return args[0] ?? null;
329
- }
330
- tagDirectiveHandler(args: string[]) {
331
- if (args.length !== 2) {
332
- throw this.#createError(
333
- `Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`,
334
- );
335
- }
336
-
337
- const handle = args[0]!;
338
- const prefix = args[1]!;
339
-
340
- if (!PATTERN_TAG_HANDLE_REGEXP.test(handle)) {
341
- throw this.#createError(
342
- `Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`,
343
- );
344
- }
345
-
346
- if (this.tagMap.has(handle)) {
347
- throw this.#createError(
348
- `Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`,
349
- );
350
- }
351
-
352
- if (!PATTERN_TAG_URI_REGEXP.test(prefix)) {
353
- throw this.#createError(
354
- "Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive",
355
- );
356
- }
357
-
358
- this.tagMap.set(handle, prefix);
359
- }
360
- captureSegment(start: number, end: number, checkJson: boolean) {
361
- if (start < end) {
362
- const result = this.#scanner.source.slice(start, end);
363
-
364
- if (checkJson) {
365
- for (let position = 0; position < result.length; position++) {
366
- const character = result.charCodeAt(position);
367
- if (
368
- !(character === 0x09 ||
369
- (0x20 <= character && character <= 0x10ffff))
370
- ) {
371
- throw this.#createError(
372
- `Expected valid JSON character: received "${character}"`,
373
- );
374
- }
375
- }
376
- } else if (PATTERN_NON_PRINTABLE_REGEXP.test(result)) {
377
- throw this.#createError("Stream contains non-printable characters");
378
- }
379
-
380
- return result;
381
- }
382
- }
383
- readBlockSequence(
384
- tag: string | null,
385
- anchor: string | null,
386
- nodeIndent: number,
387
- ): State | void {
388
- let detected = false;
389
-
390
- const result: unknown[] = [];
391
-
392
- if (anchor !== null) this.anchorMap.set(anchor, result);
393
-
394
- let ch = this.#scanner.peek();
395
-
396
- while (ch !== 0) {
397
- if (ch !== MINUS) {
398
- break;
399
- }
400
-
401
- const following = this.#scanner.peek(1);
402
-
403
- if (!isWhiteSpaceOrEOL(following)) {
404
- break;
405
- }
406
-
407
- detected = true;
408
- this.#scanner.next();
409
-
410
- if (this.skipSeparationSpace(true, -1)) {
411
- if (this.lineIndent <= nodeIndent) {
412
- result.push(null);
413
- ch = this.#scanner.peek();
414
- continue;
415
- }
416
- }
417
-
418
- const line = this.line;
419
- const newState = this.composeNode({
420
- parentIndent: nodeIndent,
421
- nodeContext: CONTEXT_BLOCK_IN,
422
- allowToSeek: false,
423
- allowCompact: true,
424
- });
425
- if (newState) result.push(newState.result);
426
- this.skipSeparationSpace(true, -1);
427
-
428
- ch = this.#scanner.peek();
429
-
430
- if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
431
- throw this.#createError(
432
- "Cannot read block sequence: bad indentation of a sequence entry",
433
- );
434
- } else if (this.lineIndent < nodeIndent) {
435
- break;
436
- }
437
- }
438
-
439
- if (detected) return { tag, anchor, kind: "sequence", result };
440
- }
441
- mergeMappings(
442
- destination: Record<string, unknown>,
443
- source: Record<string, unknown>,
444
- overridableKeys: Set<string>,
445
- ) {
446
- if (!isObject(source)) {
447
- throw this.#createError(
448
- "Cannot merge mappings: the provided source object is unacceptable",
449
- );
450
- }
451
-
452
- for (const [key, value] of Object.entries(source)) {
453
- if (Object.hasOwn(destination, key)) continue;
454
- Object.defineProperty(destination, key, {
455
- value,
456
- writable: true,
457
- enumerable: true,
458
- configurable: true,
459
- });
460
- overridableKeys.add(key);
461
- }
462
- }
463
- storeMappingPair(
464
- result: Record<string, unknown>,
465
- overridableKeys: Set<string>,
466
- keyTag: string | null,
467
- keyNode: Record<PropertyKey, unknown> | unknown[] | string | null,
468
- valueNode: unknown,
469
- startLine?: number,
470
- startPos?: number,
471
- ): Record<string, unknown> {
472
- // The output is a plain object here, so keys can only be strings.
473
- // We need to convert keyNode to a string, but doing so can hang the process
474
- // (deeply nested arrays that explode exponentially using aliases).
475
- if (Array.isArray(keyNode)) {
476
- keyNode = Array.prototype.slice.call(keyNode);
477
-
478
- for (let index = 0; index < keyNode.length; index++) {
479
- if (Array.isArray(keyNode[index])) {
480
- throw this.#createError(
481
- "Cannot store mapping pair: nested arrays are not supported inside keys",
482
- );
483
- }
484
-
485
- if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
486
- keyNode[index] = "[object Object]";
487
- }
488
- }
489
- }
490
-
491
- // Avoid code execution in load() via toString property
492
- // (still use its own toString for arrays, timestamps,
493
- // and whatever user schema extensions happen to have @@toStringTag)
494
- if (typeof keyNode === "object" && isPlainObject(keyNode)) {
495
- keyNode = "[object Object]";
496
- }
497
-
498
- keyNode = String(keyNode);
499
-
500
- if (keyTag === "tag:yaml.org,2002:merge") {
501
- if (Array.isArray(valueNode)) {
502
- for (
503
- let index = 0;
504
- index < valueNode.length;
505
- index++
506
- ) {
507
- this.mergeMappings(result, valueNode[index], overridableKeys);
508
- }
509
- } else {
510
- this.mergeMappings(
511
- result,
512
- valueNode as Record<string, unknown>,
513
- overridableKeys,
514
- );
515
- }
516
- } else {
517
- if (
518
- !this.allowDuplicateKeys &&
519
- !overridableKeys.has(keyNode) &&
520
- Object.hasOwn(result, keyNode)
521
- ) {
522
- this.line = startLine || this.line;
523
- this.#scanner.position = startPos || this.#scanner.position;
524
- throw this.#createError("Cannot store mapping pair: duplicated key");
525
- }
526
- Object.defineProperty(result, keyNode, {
527
- value: valueNode,
528
- writable: true,
529
- enumerable: true,
530
- configurable: true,
531
- });
532
- overridableKeys.delete(keyNode);
533
- }
534
-
535
- return result;
536
- }
537
- readLineBreak() {
538
- const ch = this.#scanner.peek();
539
-
540
- if (ch === LINE_FEED) {
541
- this.#scanner.next();
542
- } else if (ch === CARRIAGE_RETURN) {
543
- this.#scanner.next();
544
- if (this.#scanner.peek() === LINE_FEED) {
545
- this.#scanner.next();
546
- }
547
- } else {
548
- throw this.#createError("Cannot read line: line break not found");
549
- }
550
-
551
- this.line += 1;
552
- this.lineStart = this.#scanner.position;
553
- }
554
- skipSeparationSpace(allowComments: boolean, checkIndent: number): number {
555
- let lineBreaks = 0;
556
- let ch = this.#scanner.peek();
557
-
558
- while (ch !== 0) {
559
- this.skipWhitespaces();
560
- ch = this.#scanner.peek();
561
-
562
- if (allowComments) {
563
- this.skipComment();
564
- ch = this.#scanner.peek();
565
- }
566
-
567
- if (isEOL(ch)) {
568
- this.readLineBreak();
569
-
570
- ch = this.#scanner.peek();
571
- lineBreaks++;
572
- this.lineIndent = 0;
573
-
574
- this.readIndent();
575
- ch = this.#scanner.peek();
576
- } else {
577
- break;
578
- }
579
- }
580
-
581
- if (
582
- checkIndent !== -1 &&
583
- lineBreaks !== 0 &&
584
- this.lineIndent < checkIndent
585
- ) {
586
- this.dispatchWarning("deficient indentation");
587
- }
588
-
589
- return lineBreaks;
590
- }
591
- testDocumentSeparator(): boolean {
592
- let ch = this.#scanner.peek();
593
-
594
- // Condition this.#scanner.position === this.lineStart is tested
595
- // in parent on each call, for efficiency. No needs to test here again.
596
- if (
597
- (ch === MINUS || ch === DOT) &&
598
- ch === this.#scanner.peek(1) &&
599
- ch === this.#scanner.peek(2)
600
- ) {
601
- ch = this.#scanner.peek(3);
602
-
603
- if (ch === 0 || isWhiteSpaceOrEOL(ch)) {
604
- return true;
605
- }
606
- }
607
-
608
- return false;
609
- }
610
-
611
- readPlainScalar(
612
- tag: string | null,
613
- anchor: string | null,
614
- nodeIndent: number,
615
- withinFlowCollection: boolean,
616
- ): State | void {
617
- let ch = this.#scanner.peek();
618
-
619
- if (
620
- isWhiteSpaceOrEOL(ch) ||
621
- isFlowIndicator(ch) ||
622
- ch === SHARP ||
623
- ch === AMPERSAND ||
624
- ch === ASTERISK ||
625
- ch === EXCLAMATION ||
626
- ch === VERTICAL_LINE ||
627
- ch === GREATER_THAN ||
628
- ch === SINGLE_QUOTE ||
629
- ch === DOUBLE_QUOTE ||
630
- ch === PERCENT ||
631
- ch === COMMERCIAL_AT ||
632
- ch === GRAVE_ACCENT
633
- ) {
634
- return;
635
- }
636
-
637
- let following: number;
638
- if (ch === QUESTION || ch === MINUS) {
639
- following = this.#scanner.peek(1);
640
-
641
- if (
642
- isWhiteSpaceOrEOL(following) ||
643
- (withinFlowCollection && isFlowIndicator(following))
644
- ) {
645
- return;
646
- }
647
- }
648
-
649
- let result = "";
650
-
651
- let captureEnd = this.#scanner.position;
652
- let captureStart = this.#scanner.position;
653
- let hasPendingContent = false;
654
- let line = 0;
655
- while (ch !== 0) {
656
- if (ch === COLON) {
657
- following = this.#scanner.peek(1);
658
-
659
- if (
660
- isWhiteSpaceOrEOL(following) ||
661
- (withinFlowCollection && isFlowIndicator(following))
662
- ) {
663
- break;
664
- }
665
- } else if (ch === SHARP) {
666
- const preceding = this.#scanner.peek(-1);
667
-
668
- if (isWhiteSpaceOrEOL(preceding)) {
669
- break;
670
- }
671
- } else if (
672
- (this.#scanner.position === this.lineStart &&
673
- this.testDocumentSeparator()) ||
674
- (withinFlowCollection && isFlowIndicator(ch))
675
- ) {
676
- break;
677
- } else if (isEOL(ch)) {
678
- line = this.line;
679
- const lineStart = this.lineStart;
680
- const lineIndent = this.lineIndent;
681
- this.skipSeparationSpace(false, -1);
682
-
683
- if (this.lineIndent >= nodeIndent) {
684
- hasPendingContent = true;
685
- ch = this.#scanner.peek();
686
- continue;
687
- } else {
688
- this.#scanner.position = captureEnd;
689
- this.line = line;
690
- this.lineStart = lineStart;
691
- this.lineIndent = lineIndent;
692
- break;
693
- }
694
- }
695
-
696
- if (hasPendingContent) {
697
- const segment = this.captureSegment(captureStart, captureEnd, false);
698
- if (segment) result += segment;
699
- result += writeFoldedLines(this.line - line);
700
- captureStart = captureEnd = this.#scanner.position;
701
- hasPendingContent = false;
702
- }
703
-
704
- if (!isWhiteSpace(ch)) {
705
- captureEnd = this.#scanner.position + 1;
706
- }
707
-
708
- this.#scanner.next();
709
- ch = this.#scanner.peek();
710
- }
711
-
712
- const segment = this.captureSegment(captureStart, captureEnd, false);
713
- if (segment) result += segment;
714
- if (anchor !== null) this.anchorMap.set(anchor, result);
715
- if (result) return { tag, anchor, kind: "scalar", result };
716
- }
717
- readSingleQuotedScalar(
718
- tag: string | null,
719
- anchor: string | null,
720
- nodeIndent: number,
721
- ): State | void {
722
- let ch = this.#scanner.peek();
723
-
724
- if (ch !== SINGLE_QUOTE) return;
725
-
726
- let result = "";
727
- this.#scanner.next();
728
- let captureStart = this.#scanner.position;
729
- let captureEnd = this.#scanner.position;
730
-
731
- ch = this.#scanner.peek();
732
- while (ch !== 0) {
733
- if (ch === SINGLE_QUOTE) {
734
- const segment = this.captureSegment(
735
- captureStart,
736
- this.#scanner.position,
737
- true,
738
- );
739
- if (segment) result += segment;
740
- this.#scanner.next();
741
- ch = this.#scanner.peek();
742
-
743
- if (ch === SINGLE_QUOTE) {
744
- captureStart = this.#scanner.position;
745
- this.#scanner.next();
746
- captureEnd = this.#scanner.position;
747
- } else {
748
- if (anchor !== null) this.anchorMap.set(anchor, result);
749
- return { tag, anchor, kind: "scalar", result };
750
- }
751
- } else if (isEOL(ch)) {
752
- const segment = this.captureSegment(captureStart, captureEnd, true);
753
- if (segment) result += segment;
754
- result += writeFoldedLines(
755
- this.skipSeparationSpace(false, nodeIndent),
756
- );
757
- captureStart = captureEnd = this.#scanner.position;
758
- } else if (
759
- this.#scanner.position === this.lineStart &&
760
- this.testDocumentSeparator()
761
- ) {
762
- throw this.#createError(
763
- "Unexpected end of the document within a single quoted scalar",
764
- );
765
- } else {
766
- this.#scanner.next();
767
- captureEnd = this.#scanner.position;
768
- }
769
- ch = this.#scanner.peek();
770
- }
771
-
772
- throw this.#createError(
773
- "Unexpected end of the stream within a single quoted scalar",
774
- );
775
- }
776
- readDoubleQuotedScalar(
777
- tag: string | null,
778
- anchor: string | null,
779
- nodeIndent: number,
780
- ): State | void {
781
- let ch = this.#scanner.peek();
782
-
783
- if (ch !== DOUBLE_QUOTE) return;
784
-
785
- let result = "";
786
- this.#scanner.next();
787
- let captureEnd = this.#scanner.position;
788
- let captureStart = this.#scanner.position;
789
- let tmp: number;
790
- ch = this.#scanner.peek();
791
- while (ch !== 0) {
792
- if (ch === DOUBLE_QUOTE) {
793
- const segment = this.captureSegment(
794
- captureStart,
795
- this.#scanner.position,
796
- true,
797
- );
798
- if (segment) result += segment;
799
- this.#scanner.next();
800
- if (anchor !== null) this.anchorMap.set(anchor, result);
801
- return { tag, anchor, kind: "scalar", result };
802
- }
803
- if (ch === BACKSLASH) {
804
- const segment = this.captureSegment(
805
- captureStart,
806
- this.#scanner.position,
807
- true,
808
- );
809
- if (segment) result += segment;
810
- this.#scanner.next();
811
- ch = this.#scanner.peek();
812
-
813
- if (isEOL(ch)) {
814
- this.skipSeparationSpace(false, nodeIndent);
815
- } else if (ch < 256 && SIMPLE_ESCAPE_SEQUENCES.has(ch)) {
816
- result += SIMPLE_ESCAPE_SEQUENCES.get(ch);
817
- this.#scanner.next();
818
- } else if ((tmp = ESCAPED_HEX_LENGTHS.get(ch) ?? 0) > 0) {
819
- let hexLength = tmp;
820
- let hexResult = 0;
821
-
822
- for (; hexLength > 0; hexLength--) {
823
- this.#scanner.next();
824
- ch = this.#scanner.peek();
825
-
826
- if ((tmp = hexCharCodeToNumber(ch)) >= 0) {
827
- hexResult = (hexResult << 4) + tmp;
828
- } else {
829
- throw this.#createError(
830
- "Cannot read double quoted scalar: expected hexadecimal character",
831
- );
832
- }
833
- }
834
-
835
- result += codepointToChar(hexResult);
836
-
837
- this.#scanner.next();
838
- } else {
839
- throw this.#createError(
840
- "Cannot read double quoted scalar: unknown escape sequence",
841
- );
842
- }
843
-
844
- captureStart = captureEnd = this.#scanner.position;
845
- } else if (isEOL(ch)) {
846
- const segment = this.captureSegment(captureStart, captureEnd, true);
847
- if (segment) result += segment;
848
- result += writeFoldedLines(
849
- this.skipSeparationSpace(false, nodeIndent),
850
- );
851
- captureStart = captureEnd = this.#scanner.position;
852
- } else if (
853
- this.#scanner.position === this.lineStart &&
854
- this.testDocumentSeparator()
855
- ) {
856
- throw this.#createError(
857
- "Unexpected end of the document within a double quoted scalar",
858
- );
859
- } else {
860
- this.#scanner.next();
861
- captureEnd = this.#scanner.position;
862
- }
863
- ch = this.#scanner.peek();
864
- }
865
-
866
- throw this.#createError(
867
- "Unexpected end of the stream within a double quoted scalar",
868
- );
869
- }
870
- readFlowCollection(
871
- tag: string | null,
872
- anchor: string | null,
873
- nodeIndent: number,
874
- ): State | void {
875
- let ch = this.#scanner.peek();
876
- let terminator: number;
877
- let isMapping = true;
878
- let result = {};
879
- if (ch === LEFT_SQUARE_BRACKET) {
880
- terminator = RIGHT_SQUARE_BRACKET;
881
- isMapping = false;
882
- result = [];
883
- } else if (ch === LEFT_CURLY_BRACKET) {
884
- terminator = RIGHT_CURLY_BRACKET;
885
- } else {
886
- return;
887
- }
888
-
889
- if (anchor !== null) this.anchorMap.set(anchor, result);
890
-
891
- this.#scanner.next();
892
- ch = this.#scanner.peek();
893
-
894
- let readNext = true;
895
- let valueNode = null;
896
- let keyNode = null;
897
- let keyTag: string | null = null;
898
- let isExplicitPair = false;
899
- let isPair = false;
900
- let following = 0;
901
- let line = 0;
902
- const overridableKeys = new Set<string>();
903
- while (ch !== 0) {
904
- this.skipSeparationSpace(true, nodeIndent);
905
-
906
- ch = this.#scanner.peek();
907
-
908
- if (ch === terminator) {
909
- this.#scanner.next();
910
- const kind = isMapping ? "mapping" : "sequence";
911
- return { tag, anchor, kind, result };
912
- }
913
- if (!readNext) {
914
- throw this.#createError(
915
- "Cannot read flow collection: missing comma between flow collection entries",
916
- );
917
- }
918
-
919
- keyTag = keyNode = valueNode = null;
920
- isPair = isExplicitPair = false;
921
-
922
- if (ch === QUESTION) {
923
- following = this.#scanner.peek(1);
924
-
925
- if (isWhiteSpaceOrEOL(following)) {
926
- isPair = isExplicitPair = true;
927
- this.#scanner.next();
928
- this.skipSeparationSpace(true, nodeIndent);
929
- }
930
- }
931
-
932
- line = this.line;
933
- const newState = this.composeNode({
934
- parentIndent: nodeIndent,
935
- nodeContext: CONTEXT_FLOW_IN,
936
- allowToSeek: false,
937
- allowCompact: true,
938
- });
939
- if (newState) {
940
- keyTag = newState.tag || null;
941
- keyNode = newState.result;
942
- }
943
- this.skipSeparationSpace(true, nodeIndent);
944
-
945
- ch = this.#scanner.peek();
946
-
947
- if ((isExplicitPair || this.line === line) && ch === COLON) {
948
- isPair = true;
949
- this.#scanner.next();
950
- ch = this.#scanner.peek();
951
- this.skipSeparationSpace(true, nodeIndent);
952
- const newState = this.composeNode({
953
- parentIndent: nodeIndent,
954
- nodeContext: CONTEXT_FLOW_IN,
955
- allowToSeek: false,
956
- allowCompact: true,
957
- });
958
- if (newState) valueNode = newState.result;
959
- }
960
-
961
- if (isMapping) {
962
- this.storeMappingPair(
963
- result as Record<string, unknown>,
964
- overridableKeys,
965
- keyTag,
966
- keyNode,
967
- valueNode,
968
- );
969
- } else if (isPair) {
970
- (result as Record<string, unknown>[]).push(
971
- this.storeMappingPair(
972
- {},
973
- overridableKeys,
974
- keyTag,
975
- keyNode,
976
- valueNode,
977
- ),
978
- );
979
- } else {
980
- (result as unknown[]).push(keyNode);
981
- }
982
-
983
- this.skipSeparationSpace(true, nodeIndent);
984
-
985
- ch = this.#scanner.peek();
986
-
987
- if (ch === COMMA) {
988
- readNext = true;
989
- this.#scanner.next();
990
- ch = this.#scanner.peek();
991
- } else {
992
- readNext = false;
993
- }
994
- }
995
-
996
- throw this.#createError(
997
- "Cannot read flow collection: unexpected end of the stream within a flow collection",
998
- );
999
- }
1000
- // Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
1001
- // https://yaml.org/spec/1.2.2/#81-block-scalar-styles
1002
- readBlockScalar(
1003
- tag: string | null,
1004
- anchor: string | null,
1005
- nodeIndent: number,
1006
- ): State | void {
1007
- let chomping = CHOMPING_CLIP;
1008
- let didReadContent = false;
1009
- let detectedIndent = false;
1010
- let textIndent = nodeIndent;
1011
- let emptyLines = 0;
1012
- let atMoreIndented = false;
1013
-
1014
- let ch = this.#scanner.peek();
1015
-
1016
- let folding = false;
1017
- if (ch === VERTICAL_LINE) {
1018
- folding = false;
1019
- } else if (ch === GREATER_THAN) {
1020
- folding = true;
1021
- } else {
1022
- return;
1023
- }
1024
-
1025
- let result = "";
1026
-
1027
- let tmp = 0;
1028
- while (ch !== 0) {
1029
- this.#scanner.next();
1030
- ch = this.#scanner.peek();
1031
-
1032
- if (ch === PLUS || ch === MINUS) {
1033
- if (CHOMPING_CLIP === chomping) {
1034
- chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
1035
- } else {
1036
- throw this.#createError(
1037
- "Cannot read block: chomping mode identifier repeated",
1038
- );
1039
- }
1040
- } else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
1041
- if (tmp === 0) {
1042
- throw this.#createError(
1043
- "Cannot read block: indentation width must be greater than 0",
1044
- );
1045
- } else if (!detectedIndent) {
1046
- textIndent = nodeIndent + tmp - 1;
1047
- detectedIndent = true;
1048
- } else {
1049
- throw this.#createError(
1050
- "Cannot read block: indentation width identifier repeated",
1051
- );
1052
- }
1053
- } else {
1054
- break;
1055
- }
1056
- }
1057
-
1058
- if (isWhiteSpace(ch)) {
1059
- this.skipWhitespaces();
1060
- this.skipComment();
1061
- ch = this.#scanner.peek();
1062
- }
1063
-
1064
- while (ch !== 0) {
1065
- this.readLineBreak();
1066
- this.lineIndent = 0;
1067
-
1068
- ch = this.#scanner.peek();
1069
-
1070
- while (
1071
- (!detectedIndent || this.lineIndent < textIndent) &&
1072
- ch === SPACE
1073
- ) {
1074
- this.lineIndent++;
1075
- this.#scanner.next();
1076
- ch = this.#scanner.peek();
1077
- }
1078
-
1079
- if (!detectedIndent && this.lineIndent > textIndent) {
1080
- textIndent = this.lineIndent;
1081
- }
1082
-
1083
- if (isEOL(ch)) {
1084
- emptyLines++;
1085
- continue;
1086
- }
1087
-
1088
- // End of the scalar.
1089
- if (this.lineIndent < textIndent) {
1090
- // Perform the chomping.
1091
- if (chomping === CHOMPING_KEEP) {
1092
- result += "\n".repeat(
1093
- didReadContent ? 1 + emptyLines : emptyLines,
1094
- );
1095
- } else if (chomping === CHOMPING_CLIP) {
1096
- if (didReadContent) {
1097
- // i.e. only if the scalar is not empty.
1098
- result += "\n";
1099
- }
1100
- }
1101
-
1102
- // Break this `while` cycle and go to the function's epilogue.
1103
- break;
1104
- }
1105
-
1106
- // Folded style: use fancy rules to handle line breaks.
1107
- if (folding) {
1108
- // Lines starting with white space characters (more-indented lines) are not folded.
1109
- if (isWhiteSpace(ch)) {
1110
- atMoreIndented = true;
1111
- // except for the first content line (cf. Example 8.1)
1112
- result += "\n".repeat(
1113
- didReadContent ? 1 + emptyLines : emptyLines,
1114
- );
1115
-
1116
- // End of more-indented block.
1117
- } else if (atMoreIndented) {
1118
- atMoreIndented = false;
1119
- result += "\n".repeat(emptyLines + 1);
1120
-
1121
- // Just one line break - perceive as the same line.
1122
- } else if (emptyLines === 0) {
1123
- if (didReadContent) {
1124
- // i.e. only if we have already read some scalar content.
1125
- result += " ";
1126
- }
1127
-
1128
- // Several line breaks - perceive as different lines.
1129
- } else {
1130
- result += "\n".repeat(emptyLines);
1131
- }
1132
-
1133
- // Literal style: just add exact number of line breaks between content lines.
1134
- } else {
1135
- // Keep all line breaks except the header line break.
1136
- result += "\n".repeat(
1137
- didReadContent ? 1 + emptyLines : emptyLines,
1138
- );
1139
- }
1140
-
1141
- didReadContent = true;
1142
- detectedIndent = true;
1143
- emptyLines = 0;
1144
- const captureStart = this.#scanner.position;
1145
-
1146
- while (!isEOL(ch) && ch !== 0) {
1147
- this.#scanner.next();
1148
- ch = this.#scanner.peek();
1149
- }
1150
-
1151
- const segment = this.captureSegment(
1152
- captureStart,
1153
- this.#scanner.position,
1154
- false,
1155
- );
1156
- if (segment) result += segment;
1157
- }
1158
-
1159
- if (anchor !== null) this.anchorMap.set(anchor, result);
1160
- return { tag, anchor, kind: "scalar", result };
1161
- }
1162
- readBlockMapping(
1163
- tag: string | null,
1164
- anchor: string | null,
1165
- nodeIndent: number,
1166
- flowIndent: number,
1167
- ): State | void {
1168
- const result = {};
1169
- const overridableKeys = new Set<string>();
1170
-
1171
- let allowCompact = false;
1172
- let line: number;
1173
- let pos: number;
1174
- let keyTag = null;
1175
- let keyNode = null;
1176
- let valueNode = null;
1177
- let atExplicitKey = false;
1178
- let detected = false;
1179
-
1180
- if (anchor !== null) this.anchorMap.set(anchor, result);
1181
-
1182
- let ch = this.#scanner.peek();
1183
-
1184
- while (ch !== 0) {
1185
- const following = this.#scanner.peek(1);
1186
- line = this.line; // Save the current line.
1187
- pos = this.#scanner.position;
1188
-
1189
- //
1190
- // Explicit notation case. There are two separate blocks:
1191
- // first for the key (denoted by "?") and second for the value (denoted by ":")
1192
- //
1193
- if ((ch === QUESTION || ch === COLON) && isWhiteSpaceOrEOL(following)) {
1194
- if (ch === QUESTION) {
1195
- if (atExplicitKey) {
1196
- this.storeMappingPair(
1197
- result,
1198
- overridableKeys,
1199
- keyTag as string,
1200
- keyNode,
1201
- null,
1202
- );
1203
- keyTag = null;
1204
- keyNode = null;
1205
- valueNode = null;
1206
- }
1207
-
1208
- detected = true;
1209
- atExplicitKey = true;
1210
- allowCompact = true;
1211
- } else if (atExplicitKey) {
1212
- // i.e. 0x3A/* : */ === character after the explicit key.
1213
- atExplicitKey = false;
1214
- allowCompact = true;
1215
- } else {
1216
- throw this.#createError(
1217
- "Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line",
1218
- );
1219
- }
1220
-
1221
- this.#scanner.next();
1222
- ch = following;
1223
-
1224
- //
1225
- // Implicit notation case. Flow-style node as the key first, then ":", and the value.
1226
- //
1227
- } else {
1228
- const newState = this.composeNode({
1229
- parentIndent: flowIndent,
1230
- nodeContext: CONTEXT_FLOW_OUT,
1231
- allowToSeek: false,
1232
- allowCompact: true,
1233
- });
1234
- if (!newState) break; // Reading is done. Go to the epilogue.
1235
- if (this.line === line) {
1236
- ch = this.#scanner.peek();
1237
-
1238
- this.skipWhitespaces();
1239
- ch = this.#scanner.peek();
1240
-
1241
- if (ch === COLON) {
1242
- this.#scanner.next();
1243
- ch = this.#scanner.peek();
1244
-
1245
- if (!isWhiteSpaceOrEOL(ch)) {
1246
- throw this.#createError(
1247
- "Cannot read block: a whitespace character is expected after the key-value separator within a block mapping",
1248
- );
1249
- }
1250
-
1251
- if (atExplicitKey) {
1252
- this.storeMappingPair(
1253
- result,
1254
- overridableKeys,
1255
- keyTag as string,
1256
- keyNode,
1257
- null,
1258
- );
1259
- keyTag = null;
1260
- keyNode = null;
1261
- valueNode = null;
1262
- }
1263
-
1264
- detected = true;
1265
- atExplicitKey = false;
1266
- allowCompact = false;
1267
- keyTag = newState.tag;
1268
- keyNode = newState.result;
1269
- } else if (detected) {
1270
- throw this.#createError(
1271
- "Cannot read an implicit mapping pair: missing colon",
1272
- );
1273
- } else {
1274
- const { kind, result } = newState;
1275
- return { tag, anchor, kind, result }; // Keep the result of `composeNode`.
1276
- }
1277
- } else if (detected) {
1278
- throw this.#createError(
1279
- "Cannot read a block mapping entry: a multiline key may not be an implicit key",
1280
- );
1281
- } else {
1282
- const { kind, result } = newState;
1283
- return { tag, anchor, kind, result }; // Keep the result of `composeNode`.
1284
- }
1285
- }
1286
-
1287
- //
1288
- // Common reading code for both explicit and implicit notations.
1289
- //
1290
- if (this.line === line || this.lineIndent > nodeIndent) {
1291
- const newState = this.composeNode({
1292
- parentIndent: nodeIndent,
1293
- nodeContext: CONTEXT_BLOCK_OUT,
1294
- allowToSeek: true,
1295
- allowCompact,
1296
- });
1297
- if (newState) {
1298
- if (atExplicitKey) {
1299
- keyNode = newState.result;
1300
- } else {
1301
- valueNode = newState.result;
1302
- }
1303
- }
1304
-
1305
- if (!atExplicitKey) {
1306
- this.storeMappingPair(
1307
- result,
1308
- overridableKeys,
1309
- keyTag as string,
1310
- keyNode,
1311
- valueNode,
1312
- line,
1313
- pos,
1314
- );
1315
- keyTag = keyNode = valueNode = null;
1316
- }
1317
-
1318
- this.skipSeparationSpace(true, -1);
1319
- ch = this.#scanner.peek();
1320
- }
1321
-
1322
- if (this.lineIndent > nodeIndent && ch !== 0) {
1323
- throw this.#createError(
1324
- "Cannot read block: bad indentation of a mapping entry",
1325
- );
1326
- } else if (this.lineIndent < nodeIndent) {
1327
- break;
1328
- }
1329
- }
1330
-
1331
- //
1332
- // Epilogue.
1333
- //
1334
-
1335
- // Special case: last mapping's node contains only the key in explicit notation.
1336
- if (atExplicitKey) {
1337
- this.storeMappingPair(
1338
- result,
1339
- overridableKeys,
1340
- keyTag as string,
1341
- keyNode,
1342
- null,
1343
- );
1344
- }
1345
-
1346
- // Expose the resulting mapping.
1347
- if (detected) return { tag, anchor, kind: "mapping", result };
1348
- }
1349
- readTagProperty(tag: string | null): string | void {
1350
- let isVerbatim = false;
1351
- let isNamed = false;
1352
- let tagHandle = "";
1353
- let tagName: string;
1354
-
1355
- let ch = this.#scanner.peek();
1356
-
1357
- if (ch !== EXCLAMATION) return;
1358
-
1359
- if (tag !== null) {
1360
- throw this.#createError(
1361
- "Cannot read tag property: duplication of a tag property",
1362
- );
1363
- }
1364
-
1365
- this.#scanner.next();
1366
- ch = this.#scanner.peek();
1367
-
1368
- if (ch === SMALLER_THAN) {
1369
- isVerbatim = true;
1370
- this.#scanner.next();
1371
- ch = this.#scanner.peek();
1372
- } else if (ch === EXCLAMATION) {
1373
- isNamed = true;
1374
- tagHandle = "!!";
1375
- this.#scanner.next();
1376
- ch = this.#scanner.peek();
1377
- } else {
1378
- tagHandle = "!";
1379
- }
1380
-
1381
- let position = this.#scanner.position;
1382
-
1383
- if (isVerbatim) {
1384
- do {
1385
- this.#scanner.next();
1386
- ch = this.#scanner.peek();
1387
- } while (ch !== 0 && ch !== GREATER_THAN);
1388
-
1389
- if (!this.#scanner.eof()) {
1390
- tagName = this.#scanner.source.slice(position, this.#scanner.position);
1391
- this.#scanner.next();
1392
- ch = this.#scanner.peek();
1393
- } else {
1394
- throw this.#createError(
1395
- "Cannot read tag property: unexpected end of stream",
1396
- );
1397
- }
1398
- } else {
1399
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
1400
- if (ch === EXCLAMATION) {
1401
- if (!isNamed) {
1402
- tagHandle = this.#scanner.source.slice(
1403
- position - 1,
1404
- this.#scanner.position + 1,
1405
- );
1406
-
1407
- if (!PATTERN_TAG_HANDLE_REGEXP.test(tagHandle)) {
1408
- throw this.#createError(
1409
- "Cannot read tag property: named tag handle contains invalid characters",
1410
- );
1411
- }
1412
-
1413
- isNamed = true;
1414
- position = this.#scanner.position + 1;
1415
- } else {
1416
- throw this.#createError(
1417
- "Cannot read tag property: tag suffix cannot contain an exclamation mark",
1418
- );
1419
- }
1420
- }
1421
-
1422
- this.#scanner.next();
1423
- ch = this.#scanner.peek();
1424
- }
1425
-
1426
- tagName = this.#scanner.source.slice(position, this.#scanner.position);
1427
-
1428
- if (PATTERN_FLOW_INDICATORS_REGEXP.test(tagName)) {
1429
- throw this.#createError(
1430
- "Cannot read tag property: tag suffix cannot contain flow indicator characters",
1431
- );
1432
- }
1433
- }
1434
-
1435
- if (tagName && !PATTERN_TAG_URI_REGEXP.test(tagName)) {
1436
- throw this.#createError(
1437
- `Cannot read tag property: invalid characters in tag name "${tagName}"`,
1438
- );
1439
- }
1440
-
1441
- if (isVerbatim) {
1442
- return tagName;
1443
- } else if (this.tagMap.has(tagHandle)) {
1444
- return this.tagMap.get(tagHandle) + tagName;
1445
- } else if (tagHandle === "!") {
1446
- return `!${tagName}`;
1447
- } else if (tagHandle === "!!") {
1448
- return `tag:yaml.org,2002:${tagName}`;
1449
- }
1450
-
1451
- throw this.#createError(
1452
- `Cannot read tag property: undeclared tag handle "${tagHandle}"`,
1453
- );
1454
- }
1455
- readAnchorProperty(anchor: string | null): string | void {
1456
- let ch = this.#scanner.peek();
1457
- if (ch !== AMPERSAND) return;
1458
-
1459
- if (anchor !== null) {
1460
- throw this.#createError(
1461
- "Cannot read anchor property: duplicate anchor property",
1462
- );
1463
- }
1464
- this.#scanner.next();
1465
- ch = this.#scanner.peek();
1466
-
1467
- const position = this.#scanner.position;
1468
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) {
1469
- this.#scanner.next();
1470
- ch = this.#scanner.peek();
1471
- }
1472
-
1473
- if (this.#scanner.position === position) {
1474
- throw this.#createError(
1475
- "Cannot read anchor property: name of an anchor node must contain at least one character",
1476
- );
1477
- }
1478
-
1479
- return this.#scanner.source.slice(position, this.#scanner.position);
1480
- }
1481
- readAlias(): string | void {
1482
- if (this.#scanner.peek() !== ASTERISK) return;
1483
-
1484
- this.#scanner.next();
1485
- let ch = this.#scanner.peek();
1486
-
1487
- const position = this.#scanner.position;
1488
-
1489
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) {
1490
- this.#scanner.next();
1491
- ch = this.#scanner.peek();
1492
- }
1493
-
1494
- if (this.#scanner.position === position) {
1495
- throw this.#createError(
1496
- "Cannot read alias: alias name must contain at least one character",
1497
- );
1498
- }
1499
-
1500
- const alias = this.#scanner.source.slice(position, this.#scanner.position);
1501
- if (!this.anchorMap.has(alias)) {
1502
- throw this.#createError(
1503
- `Cannot read alias: unidentified alias "${alias}"`,
1504
- );
1505
- }
1506
-
1507
- this.skipSeparationSpace(true, -1);
1508
-
1509
- return this.anchorMap.get(alias);
1510
- }
1511
- resolveTag(state: State) {
1512
- switch (state.tag) {
1513
- case null:
1514
- case "!":
1515
- return state;
1516
- case "?": {
1517
- for (const type of this.implicitTypes) {
1518
- // Implicit resolving is not allowed for non-scalar types, and '?'
1519
- // non-specific tag is only assigned to plain scalars. So, it isn't
1520
- // needed to check for 'kind' conformity.
1521
-
1522
- if (!type.resolve(state.result)) continue;
1523
- // `state.result` updated in resolver if matched
1524
- const result = type.construct(state.result);
1525
- state.result = result;
1526
- state.tag = type.tag;
1527
- const { anchor } = state;
1528
- if (anchor !== null) this.anchorMap.set(anchor, result);
1529
- return state;
1530
- }
1531
- return state;
1532
- }
1533
- }
1534
-
1535
- const kind = state.kind ?? "fallback";
1536
-
1537
- const map = this.typeMap[kind];
1538
- const type = map.get(state.tag);
1539
-
1540
- if (!type) {
1541
- throw this.#createError(
1542
- `Cannot resolve unknown tag !<${state.tag}>`,
1543
- );
1544
- }
1545
-
1546
- if (state.result !== null && type.kind !== state.kind) {
1547
- throw this.#createError(
1548
- `Unacceptable node kind for !<${state.tag}> tag: it should be "${type.kind}", not "${state.kind}"`,
1549
- );
1550
- }
1551
-
1552
- if (!type.resolve(state.result)) {
1553
- // `state.result` updated in resolver if matched
1554
- throw this.#createError(
1555
- `Cannot resolve a node with !<${state.tag}> explicit tag`,
1556
- );
1557
- }
1558
-
1559
- const result = type.construct(state.result);
1560
- state.result = result;
1561
- const { anchor } = state;
1562
- if (anchor !== null) this.anchorMap.set(anchor, result);
1563
- return state;
1564
- }
1565
- composeNode({ parentIndent, nodeContext, allowToSeek, allowCompact }: {
1566
- parentIndent: number;
1567
- nodeContext: number;
1568
- allowToSeek: boolean;
1569
- allowCompact: boolean;
1570
- }): State | void {
1571
- let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
1572
- let atNewLine = false;
1573
-
1574
- const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext ||
1575
- CONTEXT_BLOCK_IN === nodeContext;
1576
-
1577
- let allowBlockCollections = allowBlockScalars;
1578
- const allowBlockStyles = allowBlockScalars;
1579
-
1580
- if (allowToSeek) {
1581
- if (this.skipSeparationSpace(true, -1)) {
1582
- atNewLine = true;
1583
- indentStatus = getIndentStatus(this.lineIndent, parentIndent);
1584
- }
1585
- }
1586
-
1587
- let tag: string | null = null;
1588
- let anchor: string | null = null;
1589
-
1590
- if (indentStatus === 1) {
1591
- while (true) {
1592
- const newTag = this.readTagProperty(tag);
1593
- if (newTag) {
1594
- tag = newTag;
1595
- } else {
1596
- const newAnchor = this.readAnchorProperty(anchor);
1597
- if (!newAnchor) break;
1598
- anchor = newAnchor;
1599
- }
1600
- if (this.skipSeparationSpace(true, -1)) {
1601
- atNewLine = true;
1602
- allowBlockCollections = allowBlockStyles;
1603
- indentStatus = getIndentStatus(this.lineIndent, parentIndent);
1604
- } else {
1605
- allowBlockCollections = false;
1606
- }
1607
- }
1608
- }
1609
-
1610
- if (allowBlockCollections) {
1611
- allowBlockCollections = atNewLine || allowCompact;
1612
- }
1613
-
1614
- if (indentStatus === 1) {
1615
- const cond = CONTEXT_FLOW_IN === nodeContext ||
1616
- CONTEXT_FLOW_OUT === nodeContext;
1617
- const flowIndent = cond ? parentIndent : parentIndent + 1;
1618
-
1619
- if (allowBlockCollections) {
1620
- const blockIndent = this.#scanner.position - this.lineStart;
1621
- const blockSequenceState = this.readBlockSequence(
1622
- tag,
1623
- anchor,
1624
- blockIndent,
1625
- );
1626
- if (blockSequenceState) return this.resolveTag(blockSequenceState);
1627
-
1628
- const blockMappingState = this.readBlockMapping(
1629
- tag,
1630
- anchor,
1631
- blockIndent,
1632
- flowIndent,
1633
- );
1634
- if (blockMappingState) return this.resolveTag(blockMappingState);
1635
- }
1636
- const flowCollectionState = this.readFlowCollection(
1637
- tag,
1638
- anchor,
1639
- flowIndent,
1640
- );
1641
- if (flowCollectionState) return this.resolveTag(flowCollectionState);
1642
-
1643
- if (allowBlockScalars) {
1644
- const blockScalarState = this.readBlockScalar(
1645
- tag,
1646
- anchor,
1647
- flowIndent,
1648
- );
1649
- if (blockScalarState) return this.resolveTag(blockScalarState);
1650
- }
1651
- const singleQuoteState = this.readSingleQuotedScalar(
1652
- tag,
1653
- anchor,
1654
- flowIndent,
1655
- );
1656
- if (singleQuoteState) return this.resolveTag(singleQuoteState);
1657
-
1658
- const doubleQuoteState = this.readDoubleQuotedScalar(
1659
- tag,
1660
- anchor,
1661
- flowIndent,
1662
- );
1663
- if (doubleQuoteState) return this.resolveTag(doubleQuoteState);
1664
-
1665
- const alias = this.readAlias();
1666
- if (alias) {
1667
- if (tag !== null || anchor !== null) {
1668
- throw this.#createError(
1669
- "Cannot compose node: alias node should not have any properties",
1670
- );
1671
- }
1672
- return this.resolveTag({ tag, anchor, kind: null, result: alias });
1673
- }
1674
- const plainScalarState = this.readPlainScalar(
1675
- tag,
1676
- anchor,
1677
- flowIndent,
1678
- CONTEXT_FLOW_IN === nodeContext,
1679
- );
1680
- if (plainScalarState) {
1681
- plainScalarState.tag ??= "?";
1682
- return this.resolveTag(plainScalarState);
1683
- }
1684
- } else if (
1685
- indentStatus === 0 &&
1686
- CONTEXT_BLOCK_OUT === nodeContext &&
1687
- allowBlockCollections
1688
- ) {
1689
- // Special case: block sequences are allowed to have same indentation level as the parent.
1690
- // http://www.yaml.org/spec/1.2/spec.html#id2799784
1691
- const blockIndent = this.#scanner.position - this.lineStart;
1692
- const newState = this.readBlockSequence(tag, anchor, blockIndent);
1693
- if (newState) return this.resolveTag(newState);
1694
- }
1695
-
1696
- const newState = this.resolveTag({ tag, anchor, kind: null, result: null });
1697
- if (newState.tag !== null || newState.anchor !== null) return newState;
1698
- }
1699
-
1700
- readDirectives() {
1701
- let hasDirectives = false;
1702
- let version = null;
1703
-
1704
- let ch = this.#scanner.peek();
1705
- while (ch !== 0) {
1706
- this.skipSeparationSpace(true, -1);
1707
-
1708
- ch = this.#scanner.peek();
1709
-
1710
- if (this.lineIndent > 0 || ch !== PERCENT) {
1711
- break;
1712
- }
1713
-
1714
- hasDirectives = true;
1715
- this.#scanner.next();
1716
- ch = this.#scanner.peek();
1717
- let position = this.#scanner.position;
1718
-
1719
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
1720
- this.#scanner.next();
1721
- ch = this.#scanner.peek();
1722
- }
1723
-
1724
- const directiveName = this.#scanner.source.slice(
1725
- position,
1726
- this.#scanner.position,
1727
- );
1728
- const directiveArgs = [];
1729
-
1730
- if (directiveName.length < 1) {
1731
- throw this.#createError(
1732
- "Cannot read document: directive name length must be greater than zero",
1733
- );
1734
- }
1735
-
1736
- while (ch !== 0) {
1737
- this.skipWhitespaces();
1738
- this.skipComment();
1739
- ch = this.#scanner.peek();
1740
-
1741
- if (isEOL(ch)) break;
1742
-
1743
- position = this.#scanner.position;
1744
-
1745
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
1746
- this.#scanner.next();
1747
- ch = this.#scanner.peek();
1748
- }
1749
-
1750
- directiveArgs.push(
1751
- this.#scanner.source.slice(position, this.#scanner.position),
1752
- );
1753
- }
1754
-
1755
- if (ch !== 0) this.readLineBreak();
1756
-
1757
- switch (directiveName) {
1758
- case "YAML":
1759
- if (version !== null) {
1760
- throw this.#createError(
1761
- "Cannot handle YAML directive: duplication of %YAML directive",
1762
- );
1763
- }
1764
- version = this.yamlDirectiveHandler(directiveArgs);
1765
- break;
1766
- case "TAG":
1767
- this.tagDirectiveHandler(directiveArgs);
1768
- break;
1769
- default:
1770
- this.dispatchWarning(`unknown document directive "${directiveName}"`);
1771
- break;
1772
- }
1773
-
1774
- ch = this.#scanner.peek();
1775
- }
1776
- return hasDirectives;
1777
- }
1778
-
1779
- readDocument() {
1780
- const documentStart = this.#scanner.position;
1781
-
1782
- this.checkLineBreaks = false;
1783
- this.tagMap = new Map();
1784
- this.anchorMap = new Map();
1785
-
1786
- const hasDirectives = this.readDirectives();
1787
-
1788
- this.skipSeparationSpace(true, -1);
1789
-
1790
- let result = null;
1791
-
1792
- if (
1793
- this.lineIndent === 0 &&
1794
- this.#scanner.peek() === MINUS &&
1795
- this.#scanner.peek(1) === MINUS &&
1796
- this.#scanner.peek(2) === MINUS
1797
- ) {
1798
- this.#scanner.position += 3;
1799
- this.skipSeparationSpace(true, -1);
1800
- } else if (hasDirectives) {
1801
- throw this.#createError(
1802
- "Cannot read document: directives end mark is expected",
1803
- );
1804
- }
1805
-
1806
- const newState = this.composeNode({
1807
- parentIndent: this.lineIndent - 1,
1808
- nodeContext: CONTEXT_BLOCK_OUT,
1809
- allowToSeek: false,
1810
- allowCompact: true,
1811
- });
1812
- if (newState) result = newState.result;
1813
- this.skipSeparationSpace(true, -1);
1814
-
1815
- if (
1816
- this.checkLineBreaks &&
1817
- PATTERN_NON_ASCII_LINE_BREAKS_REGEXP.test(
1818
- this.#scanner.source.slice(documentStart, this.#scanner.position),
1819
- )
1820
- ) {
1821
- this.dispatchWarning("non-ASCII line breaks are interpreted as content");
1822
- }
1823
-
1824
- if (
1825
- this.#scanner.position === this.lineStart && this.testDocumentSeparator()
1826
- ) {
1827
- if (this.#scanner.peek() === DOT) {
1828
- this.#scanner.position += 3;
1829
- this.skipSeparationSpace(true, -1);
1830
- }
1831
- } else if (!this.#scanner.eof()) {
1832
- throw this.#createError(
1833
- "Cannot read document: end of the stream or a document separator is expected",
1834
- );
1835
- }
1836
-
1837
- return result;
1838
- }
1839
-
1840
- *readDocuments() {
1841
- while (!this.#scanner.eof()) {
1842
- yield this.readDocument();
1843
- }
1844
- }
1845
- }