eve 0.5.4 → 0.6.0-beta.3

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 (1743) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +2 -2
  3. package/NOTICE +5 -0
  4. package/README.md +120 -108
  5. package/bin/eve.d.ts +66 -0
  6. package/bin/eve.js +285 -0
  7. package/dist/docs/public/README.md +89 -0
  8. package/dist/docs/public/advanced/auth-and-route-protection.md +270 -0
  9. package/dist/docs/public/advanced/context-control.md +109 -0
  10. package/dist/docs/public/advanced/default-harness.md +94 -0
  11. package/dist/docs/public/advanced/deployment.md +113 -0
  12. package/dist/docs/public/advanced/dev-tui.md +37 -0
  13. package/dist/docs/public/advanced/dynamic-capabilities.md +129 -0
  14. package/dist/docs/public/advanced/dynamic-workflows.md +55 -0
  15. package/dist/docs/public/advanced/evals.md +121 -0
  16. package/dist/docs/public/advanced/execution-model-and-durability.md +48 -0
  17. package/dist/docs/public/advanced/hooks.md +154 -0
  18. package/dist/docs/public/advanced/instrumentation.md +165 -0
  19. package/dist/docs/public/advanced/meta.json +21 -0
  20. package/dist/docs/public/advanced/remote-agents.md +60 -0
  21. package/dist/docs/public/advanced/security-model.md +79 -0
  22. package/dist/docs/public/advanced/session-context.md +149 -0
  23. package/dist/docs/public/advanced/sessions-runs-and-streaming.md +127 -0
  24. package/dist/docs/public/advanced/state.md +62 -0
  25. package/dist/docs/public/agent-config.md +80 -0
  26. package/dist/docs/public/channels/custom.mdx +275 -0
  27. package/dist/docs/public/channels/discord.mdx +74 -0
  28. package/dist/docs/public/channels/eve.mdx +82 -0
  29. package/dist/docs/public/channels/github.mdx +56 -0
  30. package/dist/docs/public/channels/linear.mdx +168 -0
  31. package/dist/docs/public/channels/meta.json +15 -0
  32. package/dist/docs/public/channels/overview.mdx +53 -0
  33. package/dist/docs/public/channels/slack.mdx +92 -0
  34. package/dist/docs/public/channels/teams.mdx +55 -0
  35. package/dist/docs/public/channels/telegram.mdx +56 -0
  36. package/dist/docs/public/channels/twilio.mdx +62 -0
  37. package/dist/docs/public/client/continuations.mdx +126 -0
  38. package/dist/docs/public/client/messages.mdx +152 -0
  39. package/dist/docs/public/client/meta.json +4 -0
  40. package/dist/docs/public/client/output-schema.mdx +135 -0
  41. package/dist/docs/public/client/overview.mdx +116 -0
  42. package/dist/docs/public/client/streaming.mdx +143 -0
  43. package/dist/docs/public/connections.mdx +196 -0
  44. package/dist/docs/public/frontend/meta.json +4 -0
  45. package/dist/docs/public/frontend/nextjs.mdx +79 -0
  46. package/dist/docs/public/frontend/nuxt.mdx +82 -0
  47. package/dist/docs/public/frontend/overview.mdx +234 -0
  48. package/dist/docs/public/frontend/sveltekit.mdx +94 -0
  49. package/dist/docs/public/frontend/use-eve-agent-svelte.mdx +111 -0
  50. package/dist/docs/public/frontend/use-eve-agent-vue.mdx +123 -0
  51. package/dist/docs/public/getting-started.mdx +176 -0
  52. package/dist/docs/public/instructions.mdx +58 -0
  53. package/dist/docs/public/introduction.md +102 -0
  54. package/dist/docs/public/meta.json +22 -0
  55. package/dist/docs/public/reference/cli.md +123 -0
  56. package/dist/docs/public/reference/faqs.md +48 -0
  57. package/dist/docs/public/reference/meta.json +4 -0
  58. package/dist/docs/public/reference/project-layout.md +111 -0
  59. package/dist/docs/public/reference/typescript-api.md +97 -0
  60. package/dist/docs/public/sandbox.mdx +198 -0
  61. package/dist/docs/public/schedules.mdx +104 -0
  62. package/dist/docs/public/skills.mdx +79 -0
  63. package/dist/docs/public/subagents.mdx +76 -0
  64. package/dist/docs/public/tools.mdx +111 -0
  65. package/dist/docs/public/tutorial/connect-a-warehouse.mdx +47 -0
  66. package/dist/docs/public/tutorial/first-agent.mdx +61 -0
  67. package/dist/docs/public/tutorial/guard-the-spend.mdx +59 -0
  68. package/dist/docs/public/tutorial/how-it-runs.mdx +24 -0
  69. package/dist/docs/public/tutorial/meta.json +14 -0
  70. package/dist/docs/public/tutorial/query-sample-data.mdx +81 -0
  71. package/dist/docs/public/tutorial/remember-definitions.mdx +72 -0
  72. package/dist/docs/public/tutorial/run-analysis.mdx +86 -0
  73. package/dist/docs/public/tutorial/ship-it.mdx +100 -0
  74. package/dist/docs/public/tutorial/team-playbooks.mdx +63 -0
  75. package/dist/src/_virtual/_rolldown/runtime.js +1 -0
  76. package/dist/src/channel/adapter-context.d.ts +11 -0
  77. package/dist/src/channel/adapter-context.js +1 -0
  78. package/dist/src/channel/adapter.d.ts +160 -0
  79. package/dist/src/channel/adapter.js +1 -0
  80. package/dist/src/channel/compiled-channel.d.ts +21 -0
  81. package/dist/src/channel/compiled-channel.js +1 -0
  82. package/dist/src/channel/cross-channel-receive.d.ts +70 -0
  83. package/dist/src/channel/cross-channel-receive.js +2 -0
  84. package/dist/src/channel/http.d.ts +29 -0
  85. package/dist/src/channel/http.js +1 -0
  86. package/dist/src/channel/instrumentation.d.ts +10 -0
  87. package/dist/src/channel/instrumentation.js +1 -0
  88. package/dist/src/channel/receive-target.d.ts +17 -0
  89. package/dist/src/channel/receive-target.js +1 -0
  90. package/dist/src/channel/resolve-text.d.ts +19 -0
  91. package/dist/src/channel/resolve-text.js +1 -0
  92. package/dist/src/channel/routes.d.ts +217 -0
  93. package/dist/src/channel/routes.js +1 -0
  94. package/dist/src/channel/schedule.d.ts +66 -0
  95. package/dist/src/channel/schedule.js +1 -0
  96. package/dist/src/channel/send.d.ts +4 -0
  97. package/dist/src/channel/send.js +1 -0
  98. package/dist/src/channel/session-callback.d.ts +10 -0
  99. package/dist/src/channel/session-callback.js +1 -0
  100. package/dist/src/channel/session.d.ts +46 -0
  101. package/dist/src/channel/session.js +1 -0
  102. package/dist/src/channel/types.d.ts +303 -0
  103. package/dist/src/channel/types.js +1 -0
  104. package/dist/src/channel/websocket-upgrade-server.d.ts +26 -0
  105. package/dist/src/channel/websocket-upgrade-server.js +1 -0
  106. package/dist/src/chunks/use-eve-agent-9vL56Fjy.js +1195 -0
  107. package/dist/src/chunks/use-eve-agent-DTWI5Lji.js +1225 -0
  108. package/dist/src/cli/commands/channel-add-conflicts.d.ts +21 -0
  109. package/dist/src/cli/commands/channel-add-conflicts.js +1 -0
  110. package/dist/src/cli/commands/channels.d.ts +26 -0
  111. package/dist/src/cli/commands/channels.js +1 -0
  112. package/dist/src/cli/commands/info.d.ts +53 -0
  113. package/dist/src/cli/commands/info.js +2 -0
  114. package/dist/src/cli/dev/environment.d.ts +20 -0
  115. package/dist/src/cli/dev/environment.js +1 -0
  116. package/dist/src/cli/dev/repl/input-requests.d.ts +38 -0
  117. package/dist/src/cli/dev/repl/input-requests.js +1 -0
  118. package/dist/src/cli/dev/repl/input.d.ts +19 -0
  119. package/dist/src/cli/dev/repl/input.js +1 -0
  120. package/dist/src/cli/dev/repl/repl.d.ts +62 -0
  121. package/dist/src/cli/dev/repl/repl.js +2 -0
  122. package/dist/src/cli/dev/repl/terminal.d.ts +21 -0
  123. package/dist/src/cli/dev/repl/terminal.js +5 -0
  124. package/dist/src/cli/dev/tui/layout.d.ts +24 -0
  125. package/dist/src/cli/dev/tui/layout.js +3 -0
  126. package/dist/src/cli/dev/tui/markdown.d.ts +14 -0
  127. package/dist/src/cli/dev/tui/markdown.js +3 -0
  128. package/dist/src/cli/dev/tui/runner.d.ts +211 -0
  129. package/dist/src/cli/dev/tui/runner.js +1 -0
  130. package/dist/src/cli/dev/tui/terminal-frame-buffer.d.ts +21 -0
  131. package/dist/src/cli/dev/tui/terminal-frame-buffer.js +2 -0
  132. package/dist/src/cli/dev/tui/terminal-renderer.d.ts +111 -0
  133. package/dist/src/cli/dev/tui/terminal-renderer.js +12 -0
  134. package/dist/src/cli/dev/tui/terminal-text.d.ts +6 -0
  135. package/dist/src/cli/dev/tui/terminal-text.js +1 -0
  136. package/dist/src/cli/dev/tui/test/index.d.ts +11 -0
  137. package/dist/src/cli/dev/tui/test/index.js +1 -0
  138. package/dist/src/cli/dev/tui/test/mock-terminal.d.ts +28 -0
  139. package/dist/src/cli/dev/tui/test/mock-terminal.js +3 -0
  140. package/dist/src/cli/dev/tui/tui.d.ts +32 -0
  141. package/dist/src/cli/dev/tui/tui.js +1 -0
  142. package/dist/src/cli/dev/tui/types.d.ts +68 -0
  143. package/dist/src/cli/dev/tui/types.js +1 -0
  144. package/dist/src/cli/dev/url.d.ts +4 -0
  145. package/dist/src/cli/dev/url.js +1 -0
  146. package/dist/src/cli/run.d.ts +112 -0
  147. package/dist/src/cli/run.js +3 -0
  148. package/dist/src/cli/ui/output.d.ts +62 -0
  149. package/dist/src/cli/ui/output.js +8 -0
  150. package/dist/src/client/client-error.d.ts +14 -0
  151. package/dist/src/client/client-error.js +1 -0
  152. package/dist/src/client/client.d.ts +28 -0
  153. package/dist/src/client/client.js +1 -0
  154. package/dist/src/client/eve-agent-store.d.ts +89 -0
  155. package/dist/src/client/eve-agent-store.js +2 -0
  156. package/dist/src/client/index.d.ts +15 -0
  157. package/dist/src/client/index.js +1 -0
  158. package/dist/src/client/message-reducer-types.d.ts +174 -0
  159. package/dist/src/client/message-reducer-types.js +1 -0
  160. package/dist/src/client/message-reducer.d.ts +14 -0
  161. package/dist/src/client/message-reducer.js +1 -0
  162. package/dist/src/client/message-response.d.ts +42 -0
  163. package/dist/src/client/message-response.js +1 -0
  164. package/dist/src/client/ndjson.d.ts +16 -0
  165. package/dist/src/client/ndjson.js +3 -0
  166. package/dist/src/client/open-stream.d.ts +18 -0
  167. package/dist/src/client/open-stream.js +1 -0
  168. package/dist/src/client/output-schema.d.ts +12 -0
  169. package/dist/src/client/output-schema.js +1 -0
  170. package/dist/src/client/reducer.d.ts +63 -0
  171. package/dist/src/client/reducer.js +1 -0
  172. package/dist/src/client/session-utils.d.ts +29 -0
  173. package/dist/src/client/session-utils.js +1 -0
  174. package/dist/src/client/session.d.ts +49 -0
  175. package/dist/src/client/session.js +1 -0
  176. package/dist/src/client/types.d.ts +165 -0
  177. package/dist/src/client/types.js +1 -0
  178. package/dist/src/client/url.d.ts +8 -0
  179. package/dist/src/client/url.js +1 -0
  180. package/dist/src/compiled/.vendor-stamp.json +32 -0
  181. package/dist/src/compiled/@ai-sdk/anthropic/LICENSE +13 -0
  182. package/dist/src/compiled/@ai-sdk/anthropic/_provider-utils.d.ts +15 -0
  183. package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +1262 -0
  184. package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -0
  185. package/dist/src/compiled/@ai-sdk/google/LICENSE +13 -0
  186. package/dist/src/compiled/@ai-sdk/google/_provider-utils.d.ts +11 -0
  187. package/dist/src/compiled/@ai-sdk/google/index.d.ts +627 -0
  188. package/dist/src/compiled/@ai-sdk/google/index.js +11 -0
  189. package/dist/src/compiled/@ai-sdk/mcp/LICENSE +13 -0
  190. package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +37 -0
  191. package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -0
  192. package/dist/src/compiled/@ai-sdk/openai/LICENSE +13 -0
  193. package/dist/src/compiled/@ai-sdk/openai/_provider-utils.d.ts +15 -0
  194. package/dist/src/compiled/@ai-sdk/openai/index.d.ts +1296 -0
  195. package/dist/src/compiled/@ai-sdk/openai/index.js +11 -0
  196. package/dist/src/compiled/@ai-sdk/otel/LICENSE +13 -0
  197. package/dist/src/compiled/@ai-sdk/otel/index.d.ts +32 -0
  198. package/dist/src/compiled/@ai-sdk/otel/index.js +3 -0
  199. package/dist/src/compiled/@ai-sdk/provider/LICENSE +13 -0
  200. package/dist/src/compiled/@ai-sdk/provider/_json-schema.d.ts +5 -0
  201. package/dist/src/compiled/@ai-sdk/provider/index.d.ts +7138 -0
  202. package/dist/src/compiled/@ai-sdk/provider/index.js +3 -0
  203. package/dist/src/compiled/@chat-adapter/slack/LICENSE +9 -0
  204. package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +9 -0
  205. package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +7 -0
  206. package/dist/src/compiled/@chat-adapter/slack/index.d.ts +950 -0
  207. package/dist/src/compiled/@chat-adapter/slack/index.js +48 -0
  208. package/dist/src/compiled/@chat-adapter/state-memory/LICENSE +9 -0
  209. package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +50 -0
  210. package/dist/src/compiled/@chat-adapter/state-memory/index.js +1 -0
  211. package/dist/src/compiled/@opentelemetry/api/LICENSE +201 -0
  212. package/dist/src/compiled/@opentelemetry/api/index.d.ts +47 -0
  213. package/dist/src/compiled/@opentelemetry/api/index.js +1 -0
  214. package/dist/src/compiled/@standard-schema/spec/LICENSE +21 -0
  215. package/dist/src/compiled/@standard-schema/spec/index.d.ts +119 -0
  216. package/dist/src/compiled/@standard-schema/spec/index.js +1 -0
  217. package/dist/src/compiled/@vercel/oidc/LICENSE +202 -0
  218. package/dist/src/compiled/@vercel/oidc/index.d.ts +21 -0
  219. package/dist/src/compiled/@vercel/oidc/index.js +2 -0
  220. package/dist/src/compiled/@vercel/sandbox/LICENSE +201 -0
  221. package/dist/src/compiled/@vercel/sandbox/index.d.ts +128 -0
  222. package/dist/src/compiled/@vercel/sandbox/index.js +108 -0
  223. package/dist/src/compiled/@vercel/sandbox/network-policy.d.ts +161 -0
  224. package/dist/src/compiled/@workflow/core/LICENSE.md +201 -0
  225. package/dist/src/compiled/@workflow/core/_ms.d.ts +4 -0
  226. package/dist/src/compiled/@workflow/core/_workflow-serde.d.ts +5 -0
  227. package/dist/src/compiled/@workflow/core/_workflow-utils.d.ts +8 -0
  228. package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +7 -0
  229. package/dist/src/compiled/@workflow/core/capabilities.d.ts +45 -0
  230. package/dist/src/compiled/@workflow/core/capture-stack.d.ts +16 -0
  231. package/dist/src/compiled/@workflow/core/class-serialization.d.ts +31 -0
  232. package/dist/src/compiled/@workflow/core/classify-error.d.ts +20 -0
  233. package/dist/src/compiled/@workflow/core/context-errors.d.ts +27 -0
  234. package/dist/src/compiled/@workflow/core/context-violation-error.d.ts +97 -0
  235. package/dist/src/compiled/@workflow/core/create-hook.d.ts +179 -0
  236. package/dist/src/compiled/@workflow/core/define-hook.d.ts +68 -0
  237. package/dist/src/compiled/@workflow/core/describe-error.d.ts +70 -0
  238. package/dist/src/compiled/@workflow/core/encryption.d.ts +66 -0
  239. package/dist/src/compiled/@workflow/core/events-consumer.d.ts +72 -0
  240. package/dist/src/compiled/@workflow/core/flushable-stream.d.ts +82 -0
  241. package/dist/src/compiled/@workflow/core/global.d.ts +48 -0
  242. package/dist/src/compiled/@workflow/core/index.d.ts +20 -0
  243. package/dist/src/compiled/@workflow/core/index.js +2 -0
  244. package/dist/src/compiled/@workflow/core/log-format.d.ts +25 -0
  245. package/dist/src/compiled/@workflow/core/logger.d.ts +29 -0
  246. package/dist/src/compiled/@workflow/core/private.d.ts +135 -0
  247. package/dist/src/compiled/@workflow/core/private.js +1 -0
  248. package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +52 -0
  249. package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +10 -0
  250. package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +32 -0
  251. package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +105 -0
  252. package/dist/src/compiled/@workflow/core/runtime/replay-budget.d.ts +98 -0
  253. package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +77 -0
  254. package/dist/src/compiled/@workflow/core/runtime/run.d.ts +134 -0
  255. package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +50 -0
  256. package/dist/src/compiled/@workflow/core/runtime/start.d.ts +59 -0
  257. package/dist/src/compiled/@workflow/core/runtime/step-executor.d.ts +42 -0
  258. package/dist/src/compiled/@workflow/core/runtime/step-handler.d.ts +2 -0
  259. package/dist/src/compiled/@workflow/core/runtime/suspension-handler.d.ts +42 -0
  260. package/dist/src/compiled/@workflow/core/runtime/world-init.d.ts +75 -0
  261. package/dist/src/compiled/@workflow/core/runtime/world.d.ts +32 -0
  262. package/dist/src/compiled/@workflow/core/runtime.d.ts +22 -0
  263. package/dist/src/compiled/@workflow/core/runtime.js +141 -0
  264. package/dist/src/compiled/@workflow/core/schemas.d.ts +15 -0
  265. package/dist/src/compiled/@workflow/core/serialization/client.d.ts +17 -0
  266. package/dist/src/compiled/@workflow/core/serialization/codec-devalue.d.ts +14 -0
  267. package/dist/src/compiled/@workflow/core/serialization/codec.d.ts +90 -0
  268. package/dist/src/compiled/@workflow/core/serialization/encryption.d.ts +33 -0
  269. package/dist/src/compiled/@workflow/core/serialization/errors.d.ts +34 -0
  270. package/dist/src/compiled/@workflow/core/serialization/format.d.ts +60 -0
  271. package/dist/src/compiled/@workflow/core/serialization/index.d.ts +18 -0
  272. package/dist/src/compiled/@workflow/core/serialization/reducers/class.d.ts +11 -0
  273. package/dist/src/compiled/@workflow/core/serialization/reducers/common.d.ts +16 -0
  274. package/dist/src/compiled/@workflow/core/serialization/reducers/step-function.d.ts +35 -0
  275. package/dist/src/compiled/@workflow/core/serialization/step.d.ts +17 -0
  276. package/dist/src/compiled/@workflow/core/serialization/types.d.ts +228 -0
  277. package/dist/src/compiled/@workflow/core/serialization/workflow.d.ts +29 -0
  278. package/dist/src/compiled/@workflow/core/serialization-format.d.ts +171 -0
  279. package/dist/src/compiled/@workflow/core/serialization.d.ts +344 -0
  280. package/dist/src/compiled/@workflow/core/set-attributes.d.ts +13 -0
  281. package/dist/src/compiled/@workflow/core/sleep.d.ts +33 -0
  282. package/dist/src/compiled/@workflow/core/source-map.d.ts +10 -0
  283. package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +29 -0
  284. package/dist/src/compiled/@workflow/core/step/get-closure-vars.d.ts +9 -0
  285. package/dist/src/compiled/@workflow/core/step/get-step-metadata.d.ts +42 -0
  286. package/dist/src/compiled/@workflow/core/step/get-workflow-metadata.d.ts +7 -0
  287. package/dist/src/compiled/@workflow/core/step/writable-stream.d.ts +22 -0
  288. package/dist/src/compiled/@workflow/core/step.d.ts +4 -0
  289. package/dist/src/compiled/@workflow/core/symbols.d.ts +42 -0
  290. package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +283 -0
  291. package/dist/src/compiled/@workflow/core/telemetry.d.ts +53 -0
  292. package/dist/src/compiled/@workflow/core/types.d.ts +20 -0
  293. package/dist/src/compiled/@workflow/core/util.d.ts +40 -0
  294. package/dist/src/compiled/@workflow/core/version.d.ts +2 -0
  295. package/dist/src/compiled/@workflow/core/vm/index.d.ts +17 -0
  296. package/dist/src/compiled/@workflow/core/vm/uint8array-base64.d.ts +21 -0
  297. package/dist/src/compiled/@workflow/core/vm/uuid.d.ts +10 -0
  298. package/dist/src/compiled/@workflow/core/workflow/abort-controller.d.ts +65 -0
  299. package/dist/src/compiled/@workflow/core/workflow/create-hook.d.ts +7 -0
  300. package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +10 -0
  301. package/dist/src/compiled/@workflow/core/workflow/get-workflow-metadata.d.ts +32 -0
  302. package/dist/src/compiled/@workflow/core/workflow/hook.d.ts +4 -0
  303. package/dist/src/compiled/@workflow/core/workflow/index.d.ts +12 -0
  304. package/dist/src/compiled/@workflow/core/workflow/set-attributes.d.ts +74 -0
  305. package/dist/src/compiled/@workflow/core/workflow/sleep.d.ts +4 -0
  306. package/dist/src/compiled/@workflow/core/workflow/world-init-stub.d.ts +15 -0
  307. package/dist/src/compiled/@workflow/core/workflow/writable-stream.d.ts +3 -0
  308. package/dist/src/compiled/@workflow/core/workflow.d.ts +1 -0
  309. package/dist/src/compiled/@workflow/core/workflow.js +1 -0
  310. package/dist/src/compiled/@workflow/errors/LICENSE.md +201 -0
  311. package/dist/src/compiled/@workflow/errors/_ms.d.ts +4 -0
  312. package/dist/src/compiled/@workflow/errors/error-codes.d.ts +23 -0
  313. package/dist/src/compiled/@workflow/errors/index.d.ts +536 -0
  314. package/dist/src/compiled/@workflow/errors/index.js +1 -0
  315. package/dist/src/compiled/@workflow/world/LICENSE.md +201 -0
  316. package/dist/src/compiled/@workflow/world/attributes.d.ts +110 -0
  317. package/dist/src/compiled/@workflow/world/events.d.ts +415 -0
  318. package/dist/src/compiled/@workflow/world/hooks.d.ts +72 -0
  319. package/dist/src/compiled/@workflow/world/index.d.ts +25 -0
  320. package/dist/src/compiled/@workflow/world/index.js +1 -0
  321. package/dist/src/compiled/@workflow/world/interfaces.d.ts +264 -0
  322. package/dist/src/compiled/@workflow/world/queue.d.ts +128 -0
  323. package/dist/src/compiled/@workflow/world/recovery.d.ts +13 -0
  324. package/dist/src/compiled/@workflow/world/runs.d.ts +144 -0
  325. package/dist/src/compiled/@workflow/world/serialization.d.ts +25 -0
  326. package/dist/src/compiled/@workflow/world/shared.d.ts +83 -0
  327. package/dist/src/compiled/@workflow/world/spec-version.d.ts +46 -0
  328. package/dist/src/compiled/@workflow/world/steps.d.ts +70 -0
  329. package/dist/src/compiled/@workflow/world/ulid.d.ts +35 -0
  330. package/dist/src/compiled/@workflow/world/waits.d.ts +21 -0
  331. package/dist/src/compiled/_chunks/node/auth-BsyzphzW.js +2 -0
  332. package/dist/src/compiled/_chunks/node/dist-BQYUcBqu.js +90 -0
  333. package/dist/src/compiled/_chunks/node/dist-BdTs18CF.js +1 -0
  334. package/dist/src/compiled/_chunks/node/retry-DkR2H1Y0.js +1 -0
  335. package/dist/src/compiled/_chunks/node/token-ORseRyWn.js +1 -0
  336. package/dist/src/compiled/_chunks/node/version-BGue04qw.js +1 -0
  337. package/dist/src/compiled/_chunks/workflow/chunk-DSjMdhoD.js +1 -0
  338. package/dist/src/compiled/_chunks/workflow/coerce-BTuSKQr5.js +1 -0
  339. package/dist/src/compiled/_chunks/workflow/compat-CG1hDp-3.js +1 -0
  340. package/dist/src/compiled/_chunks/workflow/core-5Woff_dW.js +65 -0
  341. package/dist/src/compiled/_chunks/workflow/dist-6a3viBXZ.js +3 -0
  342. package/dist/src/compiled/_chunks/workflow/dist-D0jyrm7a.js +1 -0
  343. package/dist/src/compiled/_chunks/workflow/dist-gEXVSMPU.js +14 -0
  344. package/dist/src/compiled/_chunks/workflow/resume-hook-0Zk0zSvq.js +12 -0
  345. package/dist/src/compiled/_chunks/workflow/schemas-DWOIBELG.js +1 -0
  346. package/dist/src/compiled/_chunks/workflow/sleep-DXZr2BgM.js +1 -0
  347. package/dist/src/compiled/_chunks/workflow/src-B54rYDvB.js +1 -0
  348. package/dist/src/compiled/_chunks/workflow/symbols-BWCAoPHE.js +48 -0
  349. package/dist/src/compiled/_chunks/workflow/token-CcaAeZHd.js +1 -0
  350. package/dist/src/compiled/_chunks/workflow/token-nK4u-N7w.js +1 -0
  351. package/dist/src/compiled/chat/LICENSE +9 -0
  352. package/dist/src/compiled/chat/_mdast.d.ts +24 -0
  353. package/dist/src/compiled/chat/index.d.ts +714 -0
  354. package/dist/src/compiled/chat/index.js +1 -0
  355. package/dist/src/compiled/chat/jsx-runtime-CFq1K_Ve.d.ts +782 -0
  356. package/dist/src/compiled/chokidar/LICENSE +21 -0
  357. package/dist/src/compiled/chokidar/index.d.ts +33 -0
  358. package/dist/src/compiled/chokidar/index.js +1 -0
  359. package/dist/src/compiled/commander/LICENSE +22 -0
  360. package/dist/src/compiled/commander/index.d.ts +1113 -0
  361. package/dist/src/compiled/commander/index.js +19 -0
  362. package/dist/src/compiled/experimental-ai-sdk-code-mode/LICENSE +21 -0
  363. package/dist/src/compiled/experimental-ai-sdk-code-mode/approval-continuation.d.ts +71 -0
  364. package/dist/src/compiled/experimental-ai-sdk-code-mode/approval.d.ts +32 -0
  365. package/dist/src/compiled/experimental-ai-sdk-code-mode/code-mode-tool.d.ts +16 -0
  366. package/dist/src/compiled/experimental-ai-sdk-code-mode/continuation-capability.d.ts +33 -0
  367. package/dist/src/compiled/experimental-ai-sdk-code-mode/errors.d.ts +114 -0
  368. package/dist/src/compiled/experimental-ai-sdk-code-mode/fetch-policy.d.ts +21 -0
  369. package/dist/src/compiled/experimental-ai-sdk-code-mode/host-interrupt.d.ts +25 -0
  370. package/dist/src/compiled/experimental-ai-sdk-code-mode/index.d.ts +11 -0
  371. package/dist/src/compiled/experimental-ai-sdk-code-mode/index.js +419 -0
  372. package/dist/src/compiled/experimental-ai-sdk-code-mode/interrupt-continuation.d.ts +32 -0
  373. package/dist/src/compiled/experimental-ai-sdk-code-mode/options.d.ts +3 -0
  374. package/dist/src/compiled/experimental-ai-sdk-code-mode/run-code-mode.d.ts +12 -0
  375. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/guest-sources.d.ts +3 -0
  376. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/manager.d.ts +22 -0
  377. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/max-workers.d.ts +20 -0
  378. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/protocol.d.ts +49 -0
  379. package/dist/src/compiled/experimental-ai-sdk-code-mode/runtime/worker-source.d.ts +11 -0
  380. package/dist/src/compiled/experimental-ai-sdk-code-mode/serialization.d.ts +5 -0
  381. package/dist/src/compiled/experimental-ai-sdk-code-mode/source-cache.d.ts +11 -0
  382. package/dist/src/compiled/experimental-ai-sdk-code-mode/telemetry.d.ts +20 -0
  383. package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-invocation.d.ts +24 -0
  384. package/dist/src/compiled/experimental-ai-sdk-code-mode/tool-prompt.d.ts +3 -0
  385. package/dist/src/compiled/experimental-ai-sdk-code-mode/types.d.ts +802 -0
  386. package/dist/src/compiled/gray-matter/LICENSE +21 -0
  387. package/dist/src/compiled/gray-matter/index.d.ts +62 -0
  388. package/dist/src/compiled/gray-matter/index.js +48 -0
  389. package/dist/src/compiled/jose/LICENSE.md +21 -0
  390. package/dist/src/compiled/jose/index.d.ts +40 -0
  391. package/dist/src/compiled/jose/index.js +2 -0
  392. package/dist/src/compiled/jsonc-parser/LICENSE.md +21 -0
  393. package/dist/src/compiled/jsonc-parser/index.d.ts +13 -0
  394. package/dist/src/compiled/jsonc-parser/index.js +15 -0
  395. package/dist/src/compiled/just-bash/LICENSE +201 -0
  396. package/dist/src/compiled/just-bash/index.d.ts +116 -0
  397. package/dist/src/compiled/just-bash/index.js +2200 -0
  398. package/dist/src/compiled/just-bash/network/types.d.ts +155 -0
  399. package/dist/src/compiled/picocolors/LICENSE +15 -0
  400. package/dist/src/compiled/picocolors/index.d.ts +55 -0
  401. package/dist/src/compiled/picocolors/index.js +1 -0
  402. package/dist/src/compiled/turndown/LICENSE +21 -0
  403. package/dist/src/compiled/turndown/index.d.ts +13 -0
  404. package/dist/src/compiled/turndown/index.js +69 -0
  405. package/dist/src/compiled/zod/LICENSE +21 -0
  406. package/dist/src/compiled/zod/index.d.ts +5 -0
  407. package/dist/src/compiled/zod/index.js +1 -0
  408. package/dist/src/compiled/zod-validation-error/LICENSE +9 -0
  409. package/dist/src/compiled/zod-validation-error/index.d.ts +12 -0
  410. package/dist/src/compiled/zod-validation-error/index.js +1 -0
  411. package/dist/src/compiler/artifacts.d.ts +109 -0
  412. package/dist/src/compiler/artifacts.js +1 -0
  413. package/dist/src/compiler/channel-instrumentation-types.d.ts +8 -0
  414. package/dist/src/compiler/channel-instrumentation-types.js +2 -0
  415. package/dist/src/compiler/compile-agent.d.ts +41 -0
  416. package/dist/src/compiler/compile-agent.js +3 -0
  417. package/dist/src/compiler/compile-from-memory.d.ts +76 -0
  418. package/dist/src/compiler/compile-from-memory.js +1 -0
  419. package/dist/src/compiler/manifest.d.ts +504 -0
  420. package/dist/src/compiler/manifest.js +1 -0
  421. package/dist/src/compiler/model-catalog.d.ts +60 -0
  422. package/dist/src/compiler/model-catalog.js +1 -0
  423. package/dist/src/compiler/module-map.d.ts +48 -0
  424. package/dist/src/compiler/module-map.js +5 -0
  425. package/dist/src/compiler/normalize-agent-config.d.ts +18 -0
  426. package/dist/src/compiler/normalize-agent-config.js +1 -0
  427. package/dist/src/compiler/normalize-channel.d.ts +16 -0
  428. package/dist/src/compiler/normalize-channel.js +1 -0
  429. package/dist/src/compiler/normalize-connection.d.ts +21 -0
  430. package/dist/src/compiler/normalize-connection.js +1 -0
  431. package/dist/src/compiler/normalize-helpers.d.ts +28 -0
  432. package/dist/src/compiler/normalize-helpers.js +1 -0
  433. package/dist/src/compiler/normalize-hook.d.ts +12 -0
  434. package/dist/src/compiler/normalize-hook.js +1 -0
  435. package/dist/src/compiler/normalize-instructions.d.ts +35 -0
  436. package/dist/src/compiler/normalize-instructions.js +1 -0
  437. package/dist/src/compiler/normalize-manifest.d.ts +6 -0
  438. package/dist/src/compiler/normalize-manifest.js +3 -0
  439. package/dist/src/compiler/normalize-sandbox.d.ts +7 -0
  440. package/dist/src/compiler/normalize-sandbox.js +1 -0
  441. package/dist/src/compiler/normalize-schedule.d.ts +14 -0
  442. package/dist/src/compiler/normalize-schedule.js +1 -0
  443. package/dist/src/compiler/normalize-skill.d.ts +21 -0
  444. package/dist/src/compiler/normalize-skill.js +1 -0
  445. package/dist/src/compiler/normalize-subagent.d.ts +29 -0
  446. package/dist/src/compiler/normalize-subagent.js +1 -0
  447. package/dist/src/compiler/normalize-tool.d.ts +34 -0
  448. package/dist/src/compiler/normalize-tool.js +1 -0
  449. package/dist/src/compiler/remote-agent-node.d.ts +22 -0
  450. package/dist/src/compiler/remote-agent-node.js +1 -0
  451. package/dist/src/compiler/workspace-resources.d.ts +14 -0
  452. package/dist/src/compiler/workspace-resources.js +1 -0
  453. package/dist/src/context/accessors.d.ts +40 -0
  454. package/dist/src/context/accessors.js +1 -0
  455. package/dist/src/context/build-callback-context.d.ts +8 -0
  456. package/dist/src/context/build-callback-context.js +1 -0
  457. package/dist/src/context/build-dynamic-tools.d.ts +13 -0
  458. package/dist/src/context/build-dynamic-tools.js +1 -0
  459. package/dist/src/context/container.d.ts +60 -0
  460. package/dist/src/context/container.js +1 -0
  461. package/dist/src/context/dynamic-instruction-lifecycle.d.ts +26 -0
  462. package/dist/src/context/dynamic-instruction-lifecycle.js +1 -0
  463. package/dist/src/context/dynamic-resolve-context.d.ts +12 -0
  464. package/dist/src/context/dynamic-resolve-context.js +1 -0
  465. package/dist/src/context/dynamic-skill-lifecycle.d.ts +24 -0
  466. package/dist/src/context/dynamic-skill-lifecycle.js +1 -0
  467. package/dist/src/context/dynamic-tool-lifecycle.d.ts +25 -0
  468. package/dist/src/context/dynamic-tool-lifecycle.js +1 -0
  469. package/dist/src/context/hook-lifecycle.d.ts +14 -0
  470. package/dist/src/context/hook-lifecycle.js +1 -0
  471. package/dist/src/context/key.d.ts +47 -0
  472. package/dist/src/context/key.js +1 -0
  473. package/dist/src/context/keys.d.ts +105 -0
  474. package/dist/src/context/keys.js +1 -0
  475. package/dist/src/context/node.d.ts +7 -0
  476. package/dist/src/context/node.js +1 -0
  477. package/dist/src/context/provider.d.ts +27 -0
  478. package/dist/src/context/provider.js +1 -0
  479. package/dist/src/context/providers/connection.d.ts +12 -0
  480. package/dist/src/context/providers/connection.js +1 -0
  481. package/dist/src/context/providers/sandbox.d.ts +3 -0
  482. package/dist/src/context/providers/sandbox.js +1 -0
  483. package/dist/src/context/providers/session.d.ts +3 -0
  484. package/dist/src/context/providers/session.js +1 -0
  485. package/dist/src/context/run-step.d.ts +23 -0
  486. package/dist/src/context/run-step.js +1 -0
  487. package/dist/src/context/serialize.d.ts +15 -0
  488. package/dist/src/context/serialize.js +1 -0
  489. package/dist/src/discover/connections.d.ts +34 -0
  490. package/dist/src/discover/connections.js +1 -0
  491. package/dist/src/discover/diagnostics.d.ts +53 -0
  492. package/dist/src/discover/diagnostics.js +1 -0
  493. package/dist/src/discover/discover-agent.d.ts +30 -0
  494. package/dist/src/discover/discover-agent.js +1 -0
  495. package/dist/src/discover/discover-subagent.d.ts +36 -0
  496. package/dist/src/discover/discover-subagent.js +1 -0
  497. package/dist/src/discover/filesystem.d.ts +71 -0
  498. package/dist/src/discover/filesystem.js +1 -0
  499. package/dist/src/discover/grammar.d.ts +202 -0
  500. package/dist/src/discover/grammar.js +1 -0
  501. package/dist/src/discover/lib.d.ts +34 -0
  502. package/dist/src/discover/lib.js +1 -0
  503. package/dist/src/discover/manifest.d.ts +250 -0
  504. package/dist/src/discover/manifest.js +1 -0
  505. package/dist/src/discover/markdown.d.ts +19 -0
  506. package/dist/src/discover/markdown.js +1 -0
  507. package/dist/src/discover/named-source-directory.d.ts +97 -0
  508. package/dist/src/discover/named-source-directory.js +1 -0
  509. package/dist/src/discover/project-source.d.ts +107 -0
  510. package/dist/src/discover/project-source.js +1 -0
  511. package/dist/src/discover/project.d.ts +33 -0
  512. package/dist/src/discover/project.js +1 -0
  513. package/dist/src/discover/sandbox.d.ts +37 -0
  514. package/dist/src/discover/sandbox.js +1 -0
  515. package/dist/src/discover/schedules.d.ts +38 -0
  516. package/dist/src/discover/schedules.js +1 -0
  517. package/dist/src/discover/skills.d.ts +38 -0
  518. package/dist/src/discover/skills.js +1 -0
  519. package/dist/src/discover/slots.d.ts +30 -0
  520. package/dist/src/discover/slots.js +1 -0
  521. package/dist/src/evals/cli/eval.d.ts +18 -0
  522. package/dist/src/evals/cli/eval.js +1 -0
  523. package/dist/src/evals/define-eval-suite.d.ts +16 -0
  524. package/dist/src/evals/define-eval-suite.js +1 -0
  525. package/dist/src/evals/index.d.ts +3 -0
  526. package/dist/src/evals/index.js +1 -0
  527. package/dist/src/evals/loaders/index.d.ts +2 -0
  528. package/dist/src/evals/loaders/index.js +1 -0
  529. package/dist/src/evals/loaders/json.d.ts +12 -0
  530. package/dist/src/evals/loaders/json.js +1 -0
  531. package/dist/src/evals/loaders/yaml.d.ts +16 -0
  532. package/dist/src/evals/loaders/yaml.js +1 -0
  533. package/dist/src/evals/reporters/index.d.ts +2 -0
  534. package/dist/src/evals/reporters/index.js +1 -0
  535. package/dist/src/evals/runner/artifacts.d.ts +11 -0
  536. package/dist/src/evals/runner/artifacts.js +3 -0
  537. package/dist/src/evals/runner/derive-run-facts.d.ts +9 -0
  538. package/dist/src/evals/runner/derive-run-facts.js +1 -0
  539. package/dist/src/evals/runner/discover.d.ts +20 -0
  540. package/dist/src/evals/runner/discover.js +1 -0
  541. package/dist/src/evals/runner/execute-case.d.ts +23 -0
  542. package/dist/src/evals/runner/execute-case.js +1 -0
  543. package/dist/src/evals/runner/execute-suite.d.ts +24 -0
  544. package/dist/src/evals/runner/execute-suite.js +1 -0
  545. package/dist/src/evals/runner/reporters/braintrust.d.ts +27 -0
  546. package/dist/src/evals/runner/reporters/braintrust.js +2 -0
  547. package/dist/src/evals/runner/reporters/console.d.ts +15 -0
  548. package/dist/src/evals/runner/reporters/console.js +1 -0
  549. package/dist/src/evals/runner/reporters/types.d.ts +20 -0
  550. package/dist/src/evals/runner/reporters/types.js +1 -0
  551. package/dist/src/evals/runner/resolve-git-metadata.d.ts +16 -0
  552. package/dist/src/evals/runner/resolve-git-metadata.js +1 -0
  553. package/dist/src/evals/scorers/autoevals-client.d.ts +14 -0
  554. package/dist/src/evals/scorers/autoevals-client.js +2 -0
  555. package/dist/src/evals/scorers/autoevals.d.ts +58 -0
  556. package/dist/src/evals/scorers/autoevals.js +1 -0
  557. package/dist/src/evals/scorers/json.d.ts +10 -0
  558. package/dist/src/evals/scorers/json.js +1 -0
  559. package/dist/src/evals/scorers/run.d.ts +18 -0
  560. package/dist/src/evals/scorers/run.js +1 -0
  561. package/dist/src/evals/scorers/sql.d.ts +9 -0
  562. package/dist/src/evals/scorers/sql.js +1 -0
  563. package/dist/src/evals/scorers/text.d.ts +18 -0
  564. package/dist/src/evals/scorers/text.js +1 -0
  565. package/dist/src/evals/scores/index.d.ts +72 -0
  566. package/dist/src/evals/scores/index.js +1 -0
  567. package/dist/src/evals/types.d.ts +272 -0
  568. package/dist/src/evals/types.js +1 -0
  569. package/dist/src/execution/channel-context.d.ts +5 -0
  570. package/dist/src/execution/channel-context.js +1 -0
  571. package/dist/src/execution/connection-auth-tool-result.d.ts +2 -0
  572. package/dist/src/execution/connection-auth-tool-result.js +1 -0
  573. package/dist/src/execution/create-session-step.d.ts +43 -0
  574. package/dist/src/execution/create-session-step.js +1 -0
  575. package/dist/src/execution/delegated-parent-notification.d.ts +15 -0
  576. package/dist/src/execution/delegated-parent-notification.js +1 -0
  577. package/dist/src/execution/delegated-parent-result.d.ts +14 -0
  578. package/dist/src/execution/delegated-parent-result.js +1 -0
  579. package/dist/src/execution/dispatch-code-mode-runtime-actions-step.d.ts +21 -0
  580. package/dist/src/execution/dispatch-code-mode-runtime-actions-step.js +1 -0
  581. package/dist/src/execution/dispatch-runtime-actions-step.d.ts +19 -0
  582. package/dist/src/execution/dispatch-runtime-actions-step.js +1 -0
  583. package/dist/src/execution/durable-session-migrations/chain.d.ts +38 -0
  584. package/dist/src/execution/durable-session-migrations/chain.js +1 -0
  585. package/dist/src/execution/durable-session-migrations/snapshot.d.ts +22 -0
  586. package/dist/src/execution/durable-session-migrations/snapshot.js +1 -0
  587. package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.d.ts +12 -0
  588. package/dist/src/execution/durable-session-migrations/turn-workflow-v0-to-v1.js +1 -0
  589. package/dist/src/execution/durable-session-migrations/turn-workflow.d.ts +40 -0
  590. package/dist/src/execution/durable-session-migrations/turn-workflow.js +1 -0
  591. package/dist/src/execution/durable-session-store.d.ts +113 -0
  592. package/dist/src/execution/durable-session-store.js +1 -0
  593. package/dist/src/execution/eve-workflow-attributes.d.ts +136 -0
  594. package/dist/src/execution/eve-workflow-attributes.js +1 -0
  595. package/dist/src/execution/next-driver-action.d.ts +37 -0
  596. package/dist/src/execution/next-driver-action.js +1 -0
  597. package/dist/src/execution/node-step.d.ts +52 -0
  598. package/dist/src/execution/node-step.js +1 -0
  599. package/dist/src/execution/remote-agent-dispatch.d.ts +15 -0
  600. package/dist/src/execution/remote-agent-dispatch.js +1 -0
  601. package/dist/src/execution/runtime-context.d.ts +10 -0
  602. package/dist/src/execution/runtime-context.js +1 -0
  603. package/dist/src/execution/runtime-errors.d.ts +13 -0
  604. package/dist/src/execution/runtime-errors.js +1 -0
  605. package/dist/src/execution/sandbox/bash-tool.d.ts +30 -0
  606. package/dist/src/execution/sandbox/bash-tool.js +1 -0
  607. package/dist/src/execution/sandbox/bindings/local.d.ts +22 -0
  608. package/dist/src/execution/sandbox/bindings/local.js +1 -0
  609. package/dist/src/execution/sandbox/bindings/vercel.d.ts +28 -0
  610. package/dist/src/execution/sandbox/bindings/vercel.js +1 -0
  611. package/dist/src/execution/sandbox/ensure.d.ts +27 -0
  612. package/dist/src/execution/sandbox/ensure.js +1 -0
  613. package/dist/src/execution/sandbox/glob-tool.d.ts +22 -0
  614. package/dist/src/execution/sandbox/glob-tool.js +3 -0
  615. package/dist/src/execution/sandbox/grep-tool.d.ts +26 -0
  616. package/dist/src/execution/sandbox/grep-tool.js +3 -0
  617. package/dist/src/execution/sandbox/lazy-backend.d.ts +15 -0
  618. package/dist/src/execution/sandbox/lazy-backend.js +1 -0
  619. package/dist/src/execution/sandbox/prewarm.d.ts +57 -0
  620. package/dist/src/execution/sandbox/prewarm.js +1 -0
  621. package/dist/src/execution/sandbox/read-file-tool.d.ts +28 -0
  622. package/dist/src/execution/sandbox/read-file-tool.js +3 -0
  623. package/dist/src/execution/sandbox/require-sandbox.d.ts +15 -0
  624. package/dist/src/execution/sandbox/require-sandbox.js +1 -0
  625. package/dist/src/execution/sandbox/ripgrep-probe.d.ts +9 -0
  626. package/dist/src/execution/sandbox/ripgrep-probe.js +1 -0
  627. package/dist/src/execution/sandbox/session.d.ts +17 -0
  628. package/dist/src/execution/sandbox/session.js +3 -0
  629. package/dist/src/execution/sandbox/shell-quote.d.ts +12 -0
  630. package/dist/src/execution/sandbox/shell-quote.js +1 -0
  631. package/dist/src/execution/sandbox/stream-utils.d.ts +9 -0
  632. package/dist/src/execution/sandbox/stream-utils.js +1 -0
  633. package/dist/src/execution/sandbox/truncate-output.d.ts +72 -0
  634. package/dist/src/execution/sandbox/truncate-output.js +3 -0
  635. package/dist/src/execution/sandbox/write-file-tool.d.ts +23 -0
  636. package/dist/src/execution/sandbox/write-file-tool.js +1 -0
  637. package/dist/src/execution/session-callback-step.d.ts +16 -0
  638. package/dist/src/execution/session-callback-step.js +1 -0
  639. package/dist/src/execution/session.d.ts +81 -0
  640. package/dist/src/execution/session.js +5 -0
  641. package/dist/src/execution/skills/instructions.d.ts +19 -0
  642. package/dist/src/execution/skills/instructions.js +2 -0
  643. package/dist/src/execution/skills/types.d.ts +22 -0
  644. package/dist/src/execution/skills/types.js +1 -0
  645. package/dist/src/execution/subagent-adapter.d.ts +43 -0
  646. package/dist/src/execution/subagent-adapter.js +1 -0
  647. package/dist/src/execution/subagent-hitl-proxy.d.ts +37 -0
  648. package/dist/src/execution/subagent-hitl-proxy.js +1 -0
  649. package/dist/src/execution/subagent-invocation.d.ts +16 -0
  650. package/dist/src/execution/subagent-invocation.js +2 -0
  651. package/dist/src/execution/subagent-tool.d.ts +39 -0
  652. package/dist/src/execution/subagent-tool.js +1 -0
  653. package/dist/src/execution/tool-auth.d.ts +42 -0
  654. package/dist/src/execution/tool-auth.js +1 -0
  655. package/dist/src/execution/tool-compaction.d.ts +9 -0
  656. package/dist/src/execution/tool-compaction.js +1 -0
  657. package/dist/src/execution/turn-workflow.d.ts +30 -0
  658. package/dist/src/execution/turn-workflow.js +1 -0
  659. package/dist/src/execution/web-fetch/html.d.ts +15 -0
  660. package/dist/src/execution/web-fetch/html.js +7 -0
  661. package/dist/src/execution/web-fetch/tool.d.ts +34 -0
  662. package/dist/src/execution/web-fetch/tool.js +1 -0
  663. package/dist/src/execution/workflow-callback-url.d.ts +12 -0
  664. package/dist/src/execution/workflow-callback-url.js +1 -0
  665. package/dist/src/execution/workflow-entry.d.ts +26 -0
  666. package/dist/src/execution/workflow-entry.js +1 -0
  667. package/dist/src/execution/workflow-errors.d.ts +14 -0
  668. package/dist/src/execution/workflow-errors.js +1 -0
  669. package/dist/src/execution/workflow-runtime.d.ts +48 -0
  670. package/dist/src/execution/workflow-runtime.js +3 -0
  671. package/dist/src/execution/workflow-steps.d.ts +103 -0
  672. package/dist/src/execution/workflow-steps.js +1 -0
  673. package/dist/src/harness/action-result-helpers.d.ts +40 -0
  674. package/dist/src/harness/action-result-helpers.js +1 -0
  675. package/dist/src/harness/attachment-staging.d.ts +30 -0
  676. package/dist/src/harness/attachment-staging.js +1 -0
  677. package/dist/src/harness/authorization.d.ts +116 -0
  678. package/dist/src/harness/authorization.js +1 -0
  679. package/dist/src/harness/code-mode-interrupt-state.d.ts +26 -0
  680. package/dist/src/harness/code-mode-interrupt-state.js +1 -0
  681. package/dist/src/harness/code-mode-lifecycle.d.ts +16 -0
  682. package/dist/src/harness/code-mode-lifecycle.js +1 -0
  683. package/dist/src/harness/code-mode-runtime-action-state.d.ts +6 -0
  684. package/dist/src/harness/code-mode-runtime-action-state.js +1 -0
  685. package/dist/src/harness/code-mode.d.ts +26 -0
  686. package/dist/src/harness/code-mode.js +1 -0
  687. package/dist/src/harness/compaction.d.ts +43 -0
  688. package/dist/src/harness/compaction.js +4 -0
  689. package/dist/src/harness/emission.d.ts +124 -0
  690. package/dist/src/harness/emission.js +1 -0
  691. package/dist/src/harness/execute-tool.d.ts +28 -0
  692. package/dist/src/harness/execute-tool.js +1 -0
  693. package/dist/src/harness/input-extraction.d.ts +17 -0
  694. package/dist/src/harness/input-extraction.js +1 -0
  695. package/dist/src/harness/input-requests.d.ts +75 -0
  696. package/dist/src/harness/input-requests.js +1 -0
  697. package/dist/src/harness/instrumentation-config.d.ts +18 -0
  698. package/dist/src/harness/instrumentation-config.js +1 -0
  699. package/dist/src/harness/instrumentation-runtime-context.d.ts +23 -0
  700. package/dist/src/harness/instrumentation-runtime-context.js +1 -0
  701. package/dist/src/harness/messages.d.ts +41 -0
  702. package/dist/src/harness/messages.js +1 -0
  703. package/dist/src/harness/model-call-error.d.ts +53 -0
  704. package/dist/src/harness/model-call-error.js +1 -0
  705. package/dist/src/harness/otel-integration.d.ts +9 -0
  706. package/dist/src/harness/otel-integration.js +1 -0
  707. package/dist/src/harness/prompt-cache.d.ts +83 -0
  708. package/dist/src/harness/prompt-cache.js +1 -0
  709. package/dist/src/harness/provider-tools.d.ts +62 -0
  710. package/dist/src/harness/provider-tools.js +1 -0
  711. package/dist/src/harness/proxy-input-requests.d.ts +32 -0
  712. package/dist/src/harness/proxy-input-requests.js +1 -0
  713. package/dist/src/harness/runtime-actions.d.ts +106 -0
  714. package/dist/src/harness/runtime-actions.js +1 -0
  715. package/dist/src/harness/sandbox-surface.d.ts +68 -0
  716. package/dist/src/harness/sandbox-surface.js +1 -0
  717. package/dist/src/harness/step-hooks.d.ts +109 -0
  718. package/dist/src/harness/step-hooks.js +1 -0
  719. package/dist/src/harness/tool-interrupts.d.ts +22 -0
  720. package/dist/src/harness/tool-interrupts.js +1 -0
  721. package/dist/src/harness/tool-loop.d.ts +2 -0
  722. package/dist/src/harness/tool-loop.js +1 -0
  723. package/dist/src/harness/tool-result-pruning.d.ts +8 -0
  724. package/dist/src/harness/tool-result-pruning.js +1 -0
  725. package/dist/src/harness/tools.d.ts +69 -0
  726. package/dist/src/harness/tools.js +1 -0
  727. package/dist/src/harness/turn-tag-state.d.ts +50 -0
  728. package/dist/src/harness/turn-tag-state.js +1 -0
  729. package/dist/src/harness/types.d.ts +229 -0
  730. package/dist/src/harness/types.js +1 -0
  731. package/dist/src/harness/workflow-stream-error.d.ts +29 -0
  732. package/dist/src/harness/workflow-stream-error.js +1 -0
  733. package/dist/src/harness/workflow-tool-description.d.ts +17 -0
  734. package/dist/src/harness/workflow-tool-description.js +23 -0
  735. package/dist/src/index.d.ts +1 -0
  736. package/dist/src/index.js +1 -0
  737. package/dist/src/internal/application/cache-metadata.d.ts +9 -0
  738. package/dist/src/internal/application/cache-metadata.js +1 -0
  739. package/dist/src/internal/application/compiled-artifacts.d.ts +33 -0
  740. package/dist/src/internal/application/compiled-artifacts.js +4 -0
  741. package/dist/src/internal/application/import-specifier.d.ts +17 -0
  742. package/dist/src/internal/application/import-specifier.js +1 -0
  743. package/dist/src/internal/application/package.d.ts +34 -0
  744. package/dist/src/internal/application/package.js +1 -0
  745. package/dist/src/internal/application/paths.d.ts +47 -0
  746. package/dist/src/internal/application/paths.js +1 -0
  747. package/dist/src/internal/application/runtime-compiled-artifacts-source.d.ts +6 -0
  748. package/dist/src/internal/application/runtime-compiled-artifacts-source.js +1 -0
  749. package/dist/src/internal/attachments/data.d.ts +18 -0
  750. package/dist/src/internal/attachments/data.js +1 -0
  751. package/dist/src/internal/attachments/errors.d.ts +38 -0
  752. package/dist/src/internal/attachments/errors.js +1 -0
  753. package/dist/src/internal/attachments/refs.d.ts +55 -0
  754. package/dist/src/internal/attachments/refs.js +1 -0
  755. package/dist/src/internal/attachments/sandbox-refs.d.ts +46 -0
  756. package/dist/src/internal/attachments/sandbox-refs.js +1 -0
  757. package/dist/src/internal/attachments/url-refs.d.ts +17 -0
  758. package/dist/src/internal/attachments/url-refs.js +1 -0
  759. package/dist/src/internal/authored-asset-import-plugin.d.ts +5 -0
  760. package/dist/src/internal/authored-asset-import-plugin.js +1 -0
  761. package/dist/src/internal/authored-definition/channel.d.ts +16 -0
  762. package/dist/src/internal/authored-definition/channel.js +1 -0
  763. package/dist/src/internal/authored-definition/connection.d.ts +18 -0
  764. package/dist/src/internal/authored-definition/connection.js +1 -0
  765. package/dist/src/internal/authored-definition/core.d.ts +46 -0
  766. package/dist/src/internal/authored-definition/core.js +1 -0
  767. package/dist/src/internal/authored-definition/sandbox.d.ts +17 -0
  768. package/dist/src/internal/authored-definition/sandbox.js +1 -0
  769. package/dist/src/internal/authored-definition/schema-backed.d.ts +36 -0
  770. package/dist/src/internal/authored-definition/schema-backed.js +1 -0
  771. package/dist/src/internal/authored-module-bundle.d.ts +4 -0
  772. package/dist/src/internal/authored-module-bundle.js +2 -0
  773. package/dist/src/internal/authored-module-loader.d.ts +6 -0
  774. package/dist/src/internal/authored-module-loader.js +2 -0
  775. package/dist/src/internal/authored-module-map-loader.d.ts +10 -0
  776. package/dist/src/internal/authored-module-map-loader.js +1 -0
  777. package/dist/src/internal/authored-module.d.ts +42 -0
  778. package/dist/src/internal/authored-module.js +1 -0
  779. package/dist/src/internal/authored-package-tsconfig-paths.d.ts +9 -0
  780. package/dist/src/internal/authored-package-tsconfig-paths.js +1 -0
  781. package/dist/src/internal/bundler/nitro-rolldown.d.ts +26 -0
  782. package/dist/src/internal/bundler/nitro-rolldown.js +1 -0
  783. package/dist/src/internal/helpers/markdown.d.ts +45 -0
  784. package/dist/src/internal/helpers/markdown.js +3 -0
  785. package/dist/src/internal/instrumentation.d.ts +40 -0
  786. package/dist/src/internal/instrumentation.js +1 -0
  787. package/dist/src/internal/json-schema.d.ts +1 -0
  788. package/dist/src/internal/json-schema.js +1 -0
  789. package/dist/src/internal/logging.d.ts +100 -0
  790. package/dist/src/internal/logging.js +1 -0
  791. package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +32 -0
  792. package/dist/src/internal/nitro/dev-runtime-artifacts.js +1 -0
  793. package/dist/src/internal/nitro/host/artifacts-config.d.ts +16 -0
  794. package/dist/src/internal/nitro/host/artifacts-config.js +1 -0
  795. package/dist/src/internal/nitro/host/build-application.d.ts +4 -0
  796. package/dist/src/internal/nitro/host/build-application.js +1 -0
  797. package/dist/src/internal/nitro/host/build-vercel-agent-summary.d.ts +40 -0
  798. package/dist/src/internal/nitro/host/build-vercel-agent-summary.js +1 -0
  799. package/dist/src/internal/nitro/host/channel-routes.d.ts +38 -0
  800. package/dist/src/internal/nitro/host/channel-routes.js +3 -0
  801. package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.d.ts +1 -0
  802. package/dist/src/internal/nitro/host/code-mode-runtime-dependency-plugin.js +1 -0
  803. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +13 -0
  804. package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +2 -0
  805. package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts +9 -0
  806. package/dist/src/internal/nitro/host/configure-nitro-routes.js +4 -0
  807. package/dist/src/internal/nitro/host/create-application-nitro.d.ts +14 -0
  808. package/dist/src/internal/nitro/host/create-application-nitro.js +1 -0
  809. package/dist/src/internal/nitro/host/cron-handler-route.d.ts +41 -0
  810. package/dist/src/internal/nitro/host/cron-handler-route.js +1 -0
  811. package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts +29 -0
  812. package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +1 -0
  813. package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.d.ts +41 -0
  814. package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.js +1 -0
  815. package/dist/src/internal/nitro/host/nitro-bundler-config.d.ts +5 -0
  816. package/dist/src/internal/nitro/host/nitro-bundler-config.js +1 -0
  817. package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.d.ts +6 -0
  818. package/dist/src/internal/nitro/host/nitro-routing-import-specifier-plugin.js +1 -0
  819. package/dist/src/internal/nitro/host/prepare-application-host.d.ts +8 -0
  820. package/dist/src/internal/nitro/host/prepare-application-host.js +1 -0
  821. package/dist/src/internal/nitro/host/schedule-task-routes.d.ts +60 -0
  822. package/dist/src/internal/nitro/host/schedule-task-routes.js +2 -0
  823. package/dist/src/internal/nitro/host/server-external-packages.d.ts +5 -0
  824. package/dist/src/internal/nitro/host/server-external-packages.js +1 -0
  825. package/dist/src/internal/nitro/host/start-development-server.d.ts +20 -0
  826. package/dist/src/internal/nitro/host/start-development-server.js +1 -0
  827. package/dist/src/internal/nitro/host/start-production-server.d.ts +8 -0
  828. package/dist/src/internal/nitro/host/start-production-server.js +3 -0
  829. package/dist/src/internal/nitro/host/types.d.ts +31 -0
  830. package/dist/src/internal/nitro/host/types.js +1 -0
  831. package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +8 -0
  832. package/dist/src/internal/nitro/host/vercel-build-output-config.js +1 -0
  833. package/dist/src/internal/nitro/host/vercel-build-prewarm.d.ts +19 -0
  834. package/dist/src/internal/nitro/host/vercel-build-prewarm.js +1 -0
  835. package/dist/src/internal/nitro/host.d.ts +4 -0
  836. package/dist/src/internal/nitro/host.js +1 -0
  837. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +86 -0
  838. package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.js +6 -0
  839. package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +26 -0
  840. package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.js +1 -0
  841. package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +22 -0
  842. package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -0
  843. package/dist/src/internal/nitro/routes/dev-runtime-artifacts.d.ts +10 -0
  844. package/dist/src/internal/nitro/routes/dev-runtime-artifacts.js +1 -0
  845. package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +15 -0
  846. package/dist/src/internal/nitro/routes/dev-schedule-dispatch.js +1 -0
  847. package/dist/src/internal/nitro/routes/health.d.ts +14 -0
  848. package/dist/src/internal/nitro/routes/health.js +1 -0
  849. package/dist/src/internal/nitro/routes/index.d.ts +12 -0
  850. package/dist/src/internal/nitro/routes/index.js +151 -0
  851. package/dist/src/internal/nitro/routes/info.d.ts +16 -0
  852. package/dist/src/internal/nitro/routes/info.js +1 -0
  853. package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +17 -0
  854. package/dist/src/internal/nitro/routes/runtime-artifacts.js +1 -0
  855. package/dist/src/internal/nitro/routes/runtime-stack.d.ts +26 -0
  856. package/dist/src/internal/nitro/routes/runtime-stack.js +1 -0
  857. package/dist/src/internal/nitro/routes/schedule-task.d.ts +12 -0
  858. package/dist/src/internal/nitro/routes/schedule-task.js +1 -0
  859. package/dist/src/internal/node-esm-compat-banner.d.ts +46 -0
  860. package/dist/src/internal/node-esm-compat-banner.js +4 -0
  861. package/dist/src/internal/package-name.d.ts +8 -0
  862. package/dist/src/internal/package-name.js +1 -0
  863. package/dist/src/internal/process/pnpm.d.ts +28 -0
  864. package/dist/src/internal/process/pnpm.js +1 -0
  865. package/dist/src/internal/runtime-model.d.ts +13 -0
  866. package/dist/src/internal/runtime-model.js +1 -0
  867. package/dist/src/internal/runtime-registry.d.ts +77 -0
  868. package/dist/src/internal/runtime-registry.js +1 -0
  869. package/dist/src/internal/vercel-agent-summary.d.ts +210 -0
  870. package/dist/src/internal/vercel-agent-summary.js +1 -0
  871. package/dist/src/internal/workflow/builtins.d.ts +41 -0
  872. package/dist/src/internal/workflow/builtins.js +1 -0
  873. package/dist/src/internal/workflow/index.d.ts +6 -0
  874. package/dist/src/internal/workflow/index.js +1 -0
  875. package/dist/src/internal/workflow-bundle/builder-support.d.ts +71 -0
  876. package/dist/src/internal/workflow-bundle/builder-support.js +9 -0
  877. package/dist/src/internal/workflow-bundle/builder.d.ts +36 -0
  878. package/dist/src/internal/workflow-bundle/builder.js +5 -0
  879. package/dist/src/internal/workflow-bundle/dynamic-tool-transform.d.ts +39 -0
  880. package/dist/src/internal/workflow-bundle/dynamic-tool-transform.js +4 -0
  881. package/dist/src/internal/workflow-bundle/eve-service-route-output.d.ts +4 -0
  882. package/dist/src/internal/workflow-bundle/eve-service-route-output.js +54 -0
  883. package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +17 -0
  884. package/dist/src/internal/workflow-bundle/nitro-step-entry.js +2 -0
  885. package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts +66 -0
  886. package/dist/src/internal/workflow-bundle/vercel-workflow-output.js +3 -0
  887. package/dist/src/internal/workflow-bundle/workflow-builders.d.ts +44 -0
  888. package/dist/src/internal/workflow-bundle/workflow-builders.js +1 -0
  889. package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +82 -0
  890. package/dist/src/internal/workflow-bundle/workflow-core-shim.js +1 -0
  891. package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +25 -0
  892. package/dist/src/internal/workflow-bundle/workflow-transformer.js +5 -0
  893. package/dist/src/node_modules/.pnpm/@clack_core@1.3.1/node_modules/@clack/core/dist/index.js +10 -0
  894. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js +1 -0
  895. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  896. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +2 -0
  897. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +1 -0
  898. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +1 -0
  899. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +1 -0
  900. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +1 -0
  901. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +1 -0
  902. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +1 -0
  903. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +1 -0
  904. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +1 -0
  905. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +1 -0
  906. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +1 -0
  907. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +4 -0
  908. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +1 -0
  909. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +1 -0
  910. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +1 -0
  911. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +1 -0
  912. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +1 -0
  913. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +1 -0
  914. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.js +1 -0
  915. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +1 -0
  916. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +1 -0
  917. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +1 -0
  918. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +1 -0
  919. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +1 -0
  920. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +1 -0
  921. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +1 -0
  922. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +1 -0
  923. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +1 -0
  924. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +4 -0
  925. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +1 -0
  926. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -0
  927. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +1 -0
  928. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +1 -0
  929. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +1 -0
  930. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +1 -0
  931. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +1 -0
  932. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +1 -0
  933. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +1 -0
  934. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +1 -0
  935. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +1 -0
  936. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +1 -0
  937. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +1 -0
  938. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +1 -0
  939. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +1 -0
  940. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -0
  941. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -0
  942. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js +1 -0
  943. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +1 -0
  944. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +1 -0
  945. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +1 -0
  946. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +1 -0
  947. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +1 -0
  948. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +1 -0
  949. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +1 -0
  950. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +1 -0
  951. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +1 -0
  952. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -0
  953. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +1 -0
  954. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +1 -0
  955. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +1 -0
  956. package/dist/src/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +1 -0
  957. package/dist/src/node_modules/.pnpm/autoevals@0.0.132_ws@8.21.0/node_modules/autoevals/jsdist/index.js +384 -0
  958. package/dist/src/node_modules/.pnpm/compute-cosine-similarity@1.1.0/node_modules/compute-cosine-similarity/lib/index.js +1 -0
  959. package/dist/src/node_modules/.pnpm/compute-dot@1.1.0/node_modules/compute-dot/lib/index.js +1 -0
  960. package/dist/src/node_modules/.pnpm/compute-l2norm@1.1.0/node_modules/compute-l2norm/lib/index.js +1 -0
  961. package/dist/src/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +1 -0
  962. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js +1 -0
  963. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js +1 -0
  964. package/dist/src/node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js +1 -0
  965. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +1 -0
  966. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +1 -0
  967. package/dist/src/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +1 -0
  968. package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js +5 -0
  969. package/dist/src/node_modules/.pnpm/js-levenshtein@1.1.6/node_modules/js-levenshtein/index.js +1 -0
  970. package/dist/src/node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.js +32 -0
  971. package/dist/src/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +1 -0
  972. package/dist/src/node_modules/.pnpm/mustache@4.2.0/node_modules/mustache/mustache.js +4 -0
  973. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/_vendor/partial-json-parser/parser.js +2 -0
  974. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/auth/workload-identity-auth.js +1 -0
  975. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/azure.js +1 -0
  976. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/client.js +11 -0
  977. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/api-promise.js +1 -0
  978. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/error.js +1 -0
  979. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/pagination.js +1 -0
  980. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/resource.js +1 -0
  981. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/streaming.js +3 -0
  982. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/core/uploads.js +1 -0
  983. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/error.js +1 -0
  984. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/index.js +1 -0
  985. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/decoders/line.js +3 -0
  986. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/detect-platform.js +1 -0
  987. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/errors.js +1 -0
  988. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/headers.js +1 -0
  989. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/parse.js +1 -0
  990. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/formats.js +1 -0
  991. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/stringify.js +1 -0
  992. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/qs/utils.js +1 -0
  993. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/request-options.js +1 -0
  994. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/shims.js +1 -0
  995. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/to-file.js +1 -0
  996. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/tslib.js +1 -0
  997. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/uploads.js +1 -0
  998. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/base64.js +1 -0
  999. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/bytes.js +1 -0
  1000. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/env.js +1 -0
  1001. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/log.js +1 -0
  1002. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/path.js +2 -0
  1003. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/query.js +1 -0
  1004. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/sleep.js +1 -0
  1005. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/uuid.js +1 -0
  1006. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils/values.js +1 -0
  1007. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/internal/utils.js +1 -0
  1008. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AbstractChatCompletionRunner.js +1 -0
  1009. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/AssistantStream.js +1 -0
  1010. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionRunner.js +1 -0
  1011. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStream.js +1 -0
  1012. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ChatCompletionStreamingRunner.js +1 -0
  1013. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/EventStream.js +1 -0
  1014. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/ResponsesParser.js +1 -0
  1015. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/RunnableFunction.js +1 -0
  1016. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/Util.js +1 -0
  1017. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/chatCompletionUtils.js +1 -0
  1018. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/parser.js +1 -0
  1019. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/lib/responses/ResponseStream.js +1 -0
  1020. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/admin.js +1 -0
  1021. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/admin-api-keys.js +1 -0
  1022. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/audit-logs.js +1 -0
  1023. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/certificates.js +1 -0
  1024. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/data-retention.js +1 -0
  1025. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/groups.js +1 -0
  1026. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/roles.js +1 -0
  1027. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/groups/users.js +1 -0
  1028. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/invites.js +1 -0
  1029. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/organization.js +1 -0
  1030. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/api-keys.js +1 -0
  1031. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/certificates.js +1 -0
  1032. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/data-retention.js +1 -0
  1033. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/groups.js +1 -0
  1034. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/groups/roles.js +1 -0
  1035. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +1 -0
  1036. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/model-permissions.js +1 -0
  1037. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/projects.js +1 -0
  1038. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/rate-limits.js +1 -0
  1039. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/roles.js +1 -0
  1040. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/service-accounts.js +1 -0
  1041. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +1 -0
  1042. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/roles.js +1 -0
  1043. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/projects/users/users.js +1 -0
  1044. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/roles.js +1 -0
  1045. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/spend-alerts.js +1 -0
  1046. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/usage.js +1 -0
  1047. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/roles.js +1 -0
  1048. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/admin/organization/users/users.js +1 -0
  1049. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/audio.js +1 -0
  1050. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/speech.js +1 -0
  1051. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/transcriptions.js +1 -0
  1052. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/audio/translations.js +1 -0
  1053. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/batches.js +1 -0
  1054. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/assistants.js +1 -0
  1055. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/beta.js +1 -0
  1056. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/chatkit.js +1 -0
  1057. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/sessions.js +1 -0
  1058. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/chatkit/threads.js +1 -0
  1059. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/realtime.js +1 -0
  1060. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/sessions.js +1 -0
  1061. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/realtime/transcription-sessions.js +1 -0
  1062. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/messages.js +1 -0
  1063. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/runs.js +1 -0
  1064. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/runs/steps.js +1 -0
  1065. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/beta/threads/threads.js +1 -0
  1066. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/chat.js +1 -0
  1067. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/completions.js +1 -0
  1068. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/index.js +1 -0
  1069. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/completions/messages.js +1 -0
  1070. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/chat/index.js +1 -0
  1071. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/completions.js +1 -0
  1072. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/containers.js +1 -0
  1073. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/content.js +1 -0
  1074. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/containers/files/files.js +1 -0
  1075. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/conversations.js +1 -0
  1076. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/conversations/items.js +1 -0
  1077. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/embeddings.js +1 -0
  1078. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/evals.js +1 -0
  1079. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/output-items.js +1 -0
  1080. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/evals/runs/runs.js +1 -0
  1081. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/files.js +1 -0
  1082. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/alpha.js +1 -0
  1083. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/alpha/graders.js +1 -0
  1084. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +1 -0
  1085. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +1 -0
  1086. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/fine-tuning.js +1 -0
  1087. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +1 -0
  1088. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/jobs/jobs.js +1 -0
  1089. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/fine-tuning/methods.js +1 -0
  1090. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/grader-models.js +1 -0
  1091. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/graders/graders.js +1 -0
  1092. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/images.js +1 -0
  1093. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/index.js +1 -0
  1094. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/models.js +1 -0
  1095. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/moderations.js +1 -0
  1096. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/calls.js +1 -0
  1097. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/client-secrets.js +1 -0
  1098. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/realtime/realtime.js +1 -0
  1099. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-items.js +1 -0
  1100. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/input-tokens.js +1 -0
  1101. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/responses/responses.js +1 -0
  1102. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/shared.js +1 -0
  1103. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/content.js +1 -0
  1104. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/skills.js +1 -0
  1105. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/content.js +1 -0
  1106. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/skills/versions/versions.js +1 -0
  1107. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/parts.js +1 -0
  1108. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/uploads/uploads.js +1 -0
  1109. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/file-batches.js +1 -0
  1110. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/files.js +1 -0
  1111. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/vector-stores/vector-stores.js +1 -0
  1112. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/videos.js +1 -0
  1113. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/index.js +1 -0
  1114. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks/webhooks.js +1 -0
  1115. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/resources/webhooks.js +1 -0
  1116. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/streaming.js +1 -0
  1117. package/dist/src/node_modules/.pnpm/openai@6.39.1_ws@8.21.0_zod@3.25.76/node_modules/openai/version.js +1 -0
  1118. package/dist/src/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +1 -0
  1119. package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js +1 -0
  1120. package/dist/src/node_modules/.pnpm/validate.io-array@1.0.6/node_modules/validate.io-array/lib/index.js +1 -0
  1121. package/dist/src/node_modules/.pnpm/validate.io-function@1.0.2/node_modules/validate.io-function/lib/index.js +1 -0
  1122. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -0
  1123. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js +1 -0
  1124. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +1 -0
  1125. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +1 -0
  1126. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js +1 -0
  1127. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js +1 -0
  1128. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  1129. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +1 -0
  1130. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +1 -0
  1131. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +1 -0
  1132. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +1 -0
  1133. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +1 -0
  1134. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +1 -0
  1135. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +1 -0
  1136. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +1 -0
  1137. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +1 -0
  1138. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +1 -0
  1139. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +1 -0
  1140. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +1 -0
  1141. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +1 -0
  1142. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +1 -0
  1143. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +1 -0
  1144. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +1 -0
  1145. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +1 -0
  1146. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +1 -0
  1147. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +1 -0
  1148. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +1 -0
  1149. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +1 -0
  1150. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +1 -0
  1151. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +1 -0
  1152. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +1 -0
  1153. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +1 -0
  1154. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +3 -0
  1155. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +1 -0
  1156. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +1 -0
  1157. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +1 -0
  1158. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +1 -0
  1159. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js +1 -0
  1160. package/dist/src/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +1 -0
  1161. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js +1 -0
  1162. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +1 -0
  1163. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +1 -0
  1164. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js +1 -0
  1165. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +1 -0
  1166. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +1 -0
  1167. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1168. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +1 -0
  1169. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/index.js +1 -0
  1170. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +1 -0
  1171. package/dist/src/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +1 -0
  1172. package/dist/src/packages/eve-catalog/src/index.js +1 -0
  1173. package/dist/src/packages/eve-scaffold/src/channels-catalog.js +1 -0
  1174. package/dist/src/packages/eve-scaffold/src/channels.js +7 -0
  1175. package/dist/src/packages/eve-scaffold/src/cli/channel-add-prompter.js +1 -0
  1176. package/dist/src/packages/eve-scaffold/src/cli/channel-setup-prompter.js +1 -0
  1177. package/dist/src/packages/eve-scaffold/src/cli/command-output.js +1 -0
  1178. package/dist/src/packages/eve-scaffold/src/cli/connection-add-prompter.js +1 -0
  1179. package/dist/src/packages/eve-scaffold/src/cli/index.js +1 -0
  1180. package/dist/src/packages/eve-scaffold/src/cli/prompt-ui.js +5 -0
  1181. package/dist/src/packages/eve-scaffold/src/cli/rail-log.js +2 -0
  1182. package/dist/src/packages/eve-scaffold/src/cli/select-component.js +1 -0
  1183. package/dist/src/packages/eve-scaffold/src/cli/select-state.js +1 -0
  1184. package/dist/src/packages/eve-scaffold/src/connections/catalog.js +1 -0
  1185. package/dist/src/packages/eve-scaffold/src/connections.js +21 -0
  1186. package/dist/src/packages/eve-scaffold/src/files.js +1 -0
  1187. package/dist/src/packages/eve-scaffold/src/human-action.js +1 -0
  1188. package/dist/src/packages/eve-scaffold/src/index.js +1 -0
  1189. package/dist/src/packages/eve-scaffold/src/module-files.js +1 -0
  1190. package/dist/src/packages/eve-scaffold/src/package-json.js +1 -0
  1191. package/dist/src/packages/eve-scaffold/src/pnpm-workspace.js +11 -0
  1192. package/dist/src/packages/eve-scaffold/src/primitives/detect-deployment.js +1 -0
  1193. package/dist/src/packages/eve-scaffold/src/primitives/index.js +1 -0
  1194. package/dist/src/packages/eve-scaffold/src/primitives/pnpm-invocation.js +1 -0
  1195. package/dist/src/packages/eve-scaffold/src/primitives/process-output.js +1 -0
  1196. package/dist/src/packages/eve-scaffold/src/primitives/run-pnpm.js +1 -0
  1197. package/dist/src/packages/eve-scaffold/src/primitives/run-vercel.js +1 -0
  1198. package/dist/src/packages/eve-scaffold/src/primitives/update-connection-connector.js +1 -0
  1199. package/dist/src/packages/eve-scaffold/src/primitives/update-slack-channel.js +1 -0
  1200. package/dist/src/packages/eve-scaffold/src/project.js +1 -0
  1201. package/dist/src/packages/eve-scaffold/src/steps/deploy-to-vercel.js +1 -0
  1202. package/dist/src/packages/eve-scaffold/src/steps/index.js +1 -0
  1203. package/dist/src/packages/eve-scaffold/src/steps/project-resolution.js +1 -0
  1204. package/dist/src/packages/eve-scaffold/src/steps/run-add-connection.js +1 -0
  1205. package/dist/src/packages/eve-scaffold/src/steps/run-add-to-agent.js +2 -0
  1206. package/dist/src/packages/eve-scaffold/src/steps/setup-connection.js +1 -0
  1207. package/dist/src/packages/eve-scaffold/src/steps/setup-slackbot.js +1 -0
  1208. package/dist/src/packages/eve-scaffold/src/web-template.js +4691 -0
  1209. package/dist/src/protocol/message.d.ts +732 -0
  1210. package/dist/src/protocol/message.js +2 -0
  1211. package/dist/src/protocol/routes.d.ts +108 -0
  1212. package/dist/src/protocol/routes.js +1 -0
  1213. package/dist/src/public/agents/auth.d.ts +46 -0
  1214. package/dist/src/public/agents/auth.js +1 -0
  1215. package/dist/src/public/channels/auth.d.ts +416 -0
  1216. package/dist/src/public/channels/auth.js +1 -0
  1217. package/dist/src/public/channels/discord/api.d.ts +106 -0
  1218. package/dist/src/public/channels/discord/api.js +2 -0
  1219. package/dist/src/public/channels/discord/defaults.d.ts +15 -0
  1220. package/dist/src/public/channels/discord/defaults.js +3 -0
  1221. package/dist/src/public/channels/discord/discordChannel.d.ts +134 -0
  1222. package/dist/src/public/channels/discord/discordChannel.js +1 -0
  1223. package/dist/src/public/channels/discord/hitl.d.ts +47 -0
  1224. package/dist/src/public/channels/discord/hitl.js +1 -0
  1225. package/dist/src/public/channels/discord/inbound.d.ts +106 -0
  1226. package/dist/src/public/channels/discord/inbound.js +2 -0
  1227. package/dist/src/public/channels/discord/index.d.ts +23 -0
  1228. package/dist/src/public/channels/discord/index.js +1 -0
  1229. package/dist/src/public/channels/discord/responses.d.ts +11 -0
  1230. package/dist/src/public/channels/discord/responses.js +1 -0
  1231. package/dist/src/public/channels/discord/verify.d.ts +46 -0
  1232. package/dist/src/public/channels/discord/verify.js +1 -0
  1233. package/dist/src/public/channels/discord/verifyInbound.d.ts +6 -0
  1234. package/dist/src/public/channels/discord/verifyInbound.js +1 -0
  1235. package/dist/src/public/channels/eve.d.ts +81 -0
  1236. package/dist/src/public/channels/eve.js +2 -0
  1237. package/dist/src/public/channels/github/api.d.ts +177 -0
  1238. package/dist/src/public/channels/github/api.js +1 -0
  1239. package/dist/src/public/channels/github/auth.d.ts +82 -0
  1240. package/dist/src/public/channels/github/auth.js +2 -0
  1241. package/dist/src/public/channels/github/binding.d.ts +59 -0
  1242. package/dist/src/public/channels/github/binding.js +1 -0
  1243. package/dist/src/public/channels/github/checkout.d.ts +48 -0
  1244. package/dist/src/public/channels/github/checkout.js +1 -0
  1245. package/dist/src/public/channels/github/constants.d.ts +2 -0
  1246. package/dist/src/public/channels/github/constants.js +1 -0
  1247. package/dist/src/public/channels/github/defaults.d.ts +26 -0
  1248. package/dist/src/public/channels/github/defaults.js +3 -0
  1249. package/dist/src/public/channels/github/dispatch.d.ts +34 -0
  1250. package/dist/src/public/channels/github/dispatch.js +1 -0
  1251. package/dist/src/public/channels/github/githubChannel.d.ts +126 -0
  1252. package/dist/src/public/channels/github/githubChannel.js +1 -0
  1253. package/dist/src/public/channels/github/inbound.d.ts +183 -0
  1254. package/dist/src/public/channels/github/inbound.js +2 -0
  1255. package/dist/src/public/channels/github/index.d.ts +9 -0
  1256. package/dist/src/public/channels/github/index.js +1 -0
  1257. package/dist/src/public/channels/github/limits.d.ts +4 -0
  1258. package/dist/src/public/channels/github/limits.js +2 -0
  1259. package/dist/src/public/channels/github/pr-context.d.ts +46 -0
  1260. package/dist/src/public/channels/github/pr-context.js +5 -0
  1261. package/dist/src/public/channels/github/state.d.ts +60 -0
  1262. package/dist/src/public/channels/github/state.js +1 -0
  1263. package/dist/src/public/channels/github/verify.d.ts +35 -0
  1264. package/dist/src/public/channels/github/verify.js +1 -0
  1265. package/dist/src/public/channels/index.d.ts +89 -0
  1266. package/dist/src/public/channels/index.js +1 -0
  1267. package/dist/src/public/channels/linear/api.d.ts +122 -0
  1268. package/dist/src/public/channels/linear/api.js +69 -0
  1269. package/dist/src/public/channels/linear/auth.d.ts +22 -0
  1270. package/dist/src/public/channels/linear/auth.js +1 -0
  1271. package/dist/src/public/channels/linear/constants.d.ts +2 -0
  1272. package/dist/src/public/channels/linear/constants.js +1 -0
  1273. package/dist/src/public/channels/linear/defaults.d.ts +16 -0
  1274. package/dist/src/public/channels/linear/defaults.js +3 -0
  1275. package/dist/src/public/channels/linear/hitl.d.ts +14 -0
  1276. package/dist/src/public/channels/linear/hitl.js +4 -0
  1277. package/dist/src/public/channels/linear/inbound.d.ts +88 -0
  1278. package/dist/src/public/channels/linear/inbound.js +2 -0
  1279. package/dist/src/public/channels/linear/index.d.ts +8 -0
  1280. package/dist/src/public/channels/linear/index.js +1 -0
  1281. package/dist/src/public/channels/linear/linearChannel.d.ts +138 -0
  1282. package/dist/src/public/channels/linear/linearChannel.js +1 -0
  1283. package/dist/src/public/channels/linear/verify.d.ts +22 -0
  1284. package/dist/src/public/channels/linear/verify.js +1 -0
  1285. package/dist/src/public/channels/slack/api-encoding.d.ts +5 -0
  1286. package/dist/src/public/channels/slack/api-encoding.js +1 -0
  1287. package/dist/src/public/channels/slack/api.d.ts +258 -0
  1288. package/dist/src/public/channels/slack/api.js +1 -0
  1289. package/dist/src/public/channels/slack/attachments.d.ts +51 -0
  1290. package/dist/src/public/channels/slack/attachments.js +1 -0
  1291. package/dist/src/public/channels/slack/auth.d.ts +16 -0
  1292. package/dist/src/public/channels/slack/auth.js +1 -0
  1293. package/dist/src/public/channels/slack/blocks.d.ts +45 -0
  1294. package/dist/src/public/channels/slack/blocks.js +3 -0
  1295. package/dist/src/public/channels/slack/connections.d.ts +53 -0
  1296. package/dist/src/public/channels/slack/connections.js +1 -0
  1297. package/dist/src/public/channels/slack/constants.d.ts +7 -0
  1298. package/dist/src/public/channels/slack/constants.js +1 -0
  1299. package/dist/src/public/channels/slack/defaults.d.ts +36 -0
  1300. package/dist/src/public/channels/slack/defaults.js +4 -0
  1301. package/dist/src/public/channels/slack/hitl.d.ts +141 -0
  1302. package/dist/src/public/channels/slack/hitl.js +1 -0
  1303. package/dist/src/public/channels/slack/inbound.d.ts +122 -0
  1304. package/dist/src/public/channels/slack/inbound.js +2 -0
  1305. package/dist/src/public/channels/slack/index.d.ts +22 -0
  1306. package/dist/src/public/channels/slack/index.js +1 -0
  1307. package/dist/src/public/channels/slack/interactions.d.ts +64 -0
  1308. package/dist/src/public/channels/slack/interactions.js +1 -0
  1309. package/dist/src/public/channels/slack/limits.d.ts +62 -0
  1310. package/dist/src/public/channels/slack/limits.js +1 -0
  1311. package/dist/src/public/channels/slack/mrkdwn.d.ts +38 -0
  1312. package/dist/src/public/channels/slack/mrkdwn.js +1 -0
  1313. package/dist/src/public/channels/slack/slackChannel.d.ts +303 -0
  1314. package/dist/src/public/channels/slack/slackChannel.js +1 -0
  1315. package/dist/src/public/channels/slack/thread.d.ts +33 -0
  1316. package/dist/src/public/channels/slack/thread.js +1 -0
  1317. package/dist/src/public/channels/slack/utils.d.ts +1 -0
  1318. package/dist/src/public/channels/slack/utils.js +1 -0
  1319. package/dist/src/public/channels/slack/verify.d.ts +48 -0
  1320. package/dist/src/public/channels/slack/verify.js +1 -0
  1321. package/dist/src/public/channels/teams/api.d.ts +155 -0
  1322. package/dist/src/public/channels/teams/api.js +4 -0
  1323. package/dist/src/public/channels/teams/attachments.d.ts +35 -0
  1324. package/dist/src/public/channels/teams/attachments.js +1 -0
  1325. package/dist/src/public/channels/teams/defaults.d.ts +24 -0
  1326. package/dist/src/public/channels/teams/defaults.js +3 -0
  1327. package/dist/src/public/channels/teams/hitl.d.ts +49 -0
  1328. package/dist/src/public/channels/teams/hitl.js +1 -0
  1329. package/dist/src/public/channels/teams/inbound.d.ts +85 -0
  1330. package/dist/src/public/channels/teams/inbound.js +3 -0
  1331. package/dist/src/public/channels/teams/index.d.ts +19 -0
  1332. package/dist/src/public/channels/teams/index.js +1 -0
  1333. package/dist/src/public/channels/teams/limits.d.ts +8 -0
  1334. package/dist/src/public/channels/teams/limits.js +1 -0
  1335. package/dist/src/public/channels/teams/teamsChannel.d.ts +164 -0
  1336. package/dist/src/public/channels/teams/teamsChannel.js +1 -0
  1337. package/dist/src/public/channels/teams/verify.d.ts +50 -0
  1338. package/dist/src/public/channels/teams/verify.js +1 -0
  1339. package/dist/src/public/channels/telegram/api.d.ts +120 -0
  1340. package/dist/src/public/channels/telegram/api.js +2 -0
  1341. package/dist/src/public/channels/telegram/attachments.d.ts +31 -0
  1342. package/dist/src/public/channels/telegram/attachments.js +1 -0
  1343. package/dist/src/public/channels/telegram/defaults.d.ts +9 -0
  1344. package/dist/src/public/channels/telegram/defaults.js +3 -0
  1345. package/dist/src/public/channels/telegram/hitl.d.ts +59 -0
  1346. package/dist/src/public/channels/telegram/hitl.js +1 -0
  1347. package/dist/src/public/channels/telegram/inbound.d.ts +102 -0
  1348. package/dist/src/public/channels/telegram/inbound.js +2 -0
  1349. package/dist/src/public/channels/telegram/index.d.ts +19 -0
  1350. package/dist/src/public/channels/telegram/index.js +1 -0
  1351. package/dist/src/public/channels/telegram/telegramChannel.d.ts +127 -0
  1352. package/dist/src/public/channels/telegram/telegramChannel.js +1 -0
  1353. package/dist/src/public/channels/telegram/verify.d.ts +35 -0
  1354. package/dist/src/public/channels/telegram/verify.js +1 -0
  1355. package/dist/src/public/channels/twilio/api.d.ts +74 -0
  1356. package/dist/src/public/channels/twilio/api.js +1 -0
  1357. package/dist/src/public/channels/twilio/defaults.d.ts +17 -0
  1358. package/dist/src/public/channels/twilio/defaults.js +3 -0
  1359. package/dist/src/public/channels/twilio/inbound.d.ts +60 -0
  1360. package/dist/src/public/channels/twilio/inbound.js +2 -0
  1361. package/dist/src/public/channels/twilio/index.d.ts +5 -0
  1362. package/dist/src/public/channels/twilio/index.js +1 -0
  1363. package/dist/src/public/channels/twilio/twilioChannel.d.ts +195 -0
  1364. package/dist/src/public/channels/twilio/twilioChannel.js +1 -0
  1365. package/dist/src/public/channels/twilio/twiml.d.ts +37 -0
  1366. package/dist/src/public/channels/twilio/twiml.js +1 -0
  1367. package/dist/src/public/channels/twilio/verify.d.ts +50 -0
  1368. package/dist/src/public/channels/twilio/verify.js +1 -0
  1369. package/dist/src/public/channels/upload-policy.d.ts +101 -0
  1370. package/dist/src/public/channels/upload-policy.js +1 -0
  1371. package/dist/src/public/connections/errors.d.ts +117 -0
  1372. package/dist/src/public/connections/errors.js +1 -0
  1373. package/dist/src/public/connections/index.d.ts +9 -0
  1374. package/dist/src/public/connections/index.js +1 -0
  1375. package/dist/src/public/context/index.d.ts +14 -0
  1376. package/dist/src/public/context/index.js +1 -0
  1377. package/dist/src/public/definitions/agent.d.ts +24 -0
  1378. package/dist/src/public/definitions/agent.js +1 -0
  1379. package/dist/src/public/definitions/callback-context.d.ts +33 -0
  1380. package/dist/src/public/definitions/callback-context.js +1 -0
  1381. package/dist/src/public/definitions/channel.d.ts +126 -0
  1382. package/dist/src/public/definitions/channel.js +1 -0
  1383. package/dist/src/public/definitions/connections/mcp.d.ts +82 -0
  1384. package/dist/src/public/definitions/connections/mcp.js +1 -0
  1385. package/dist/src/public/definitions/connections/openapi.d.ts +99 -0
  1386. package/dist/src/public/definitions/connections/openapi.js +1 -0
  1387. package/dist/src/public/definitions/connections/protocol.d.ts +12 -0
  1388. package/dist/src/public/definitions/connections/protocol.js +1 -0
  1389. package/dist/src/public/definitions/defineChannel.d.ts +145 -0
  1390. package/dist/src/public/definitions/defineChannel.js +1 -0
  1391. package/dist/src/public/definitions/exact.d.ts +7 -0
  1392. package/dist/src/public/definitions/exact.js +1 -0
  1393. package/dist/src/public/definitions/hook.d.ts +60 -0
  1394. package/dist/src/public/definitions/hook.js +1 -0
  1395. package/dist/src/public/definitions/instructions.d.ts +31 -0
  1396. package/dist/src/public/definitions/instructions.js +1 -0
  1397. package/dist/src/public/definitions/instrumentation.d.ts +1 -0
  1398. package/dist/src/public/definitions/instrumentation.js +1 -0
  1399. package/dist/src/public/definitions/remote-agent.d.ts +49 -0
  1400. package/dist/src/public/definitions/remote-agent.js +1 -0
  1401. package/dist/src/public/definitions/sandbox-backend.d.ts +17 -0
  1402. package/dist/src/public/definitions/sandbox-backend.js +1 -0
  1403. package/dist/src/public/definitions/sandbox.d.ts +24 -0
  1404. package/dist/src/public/definitions/sandbox.js +1 -0
  1405. package/dist/src/public/definitions/schedule.d.ts +96 -0
  1406. package/dist/src/public/definitions/schedule.js +1 -0
  1407. package/dist/src/public/definitions/skill.d.ts +21 -0
  1408. package/dist/src/public/definitions/skill.js +1 -0
  1409. package/dist/src/public/definitions/source.d.ts +8 -0
  1410. package/dist/src/public/definitions/source.js +1 -0
  1411. package/dist/src/public/definitions/state.d.ts +37 -0
  1412. package/dist/src/public/definitions/state.js +1 -0
  1413. package/dist/src/public/definitions/tool.d.ts +285 -0
  1414. package/dist/src/public/definitions/tool.js +1 -0
  1415. package/dist/src/public/hooks/index.d.ts +8 -0
  1416. package/dist/src/public/hooks/index.js +1 -0
  1417. package/dist/src/public/index.d.ts +5 -0
  1418. package/dist/src/public/index.js +1 -0
  1419. package/dist/src/public/instructions/index.d.ts +7 -0
  1420. package/dist/src/public/instructions/index.js +1 -0
  1421. package/dist/src/public/instrumentation/index.d.ts +144 -0
  1422. package/dist/src/public/instrumentation/index.js +1 -0
  1423. package/dist/src/public/next/index.d.ts +86 -0
  1424. package/dist/src/public/next/index.js +1 -0
  1425. package/dist/src/public/next/server.d.ts +6 -0
  1426. package/dist/src/public/next/server.js +1 -0
  1427. package/dist/src/public/next/vercel-output-config.d.ts +9 -0
  1428. package/dist/src/public/next/vercel-output-config.js +1 -0
  1429. package/dist/src/public/nuxt/dev-server.d.ts +24 -0
  1430. package/dist/src/public/nuxt/dev-server.js +1 -0
  1431. package/dist/src/public/nuxt/index.d.ts +1 -0
  1432. package/dist/src/public/nuxt/index.js +1 -0
  1433. package/dist/src/public/nuxt/module.d.ts +43 -0
  1434. package/dist/src/public/nuxt/module.js +1 -0
  1435. package/dist/src/public/nuxt/routing.d.ts +55 -0
  1436. package/dist/src/public/nuxt/routing.js +1 -0
  1437. package/dist/src/public/nuxt/vercel-json.d.ts +17 -0
  1438. package/dist/src/public/nuxt/vercel-json.js +1 -0
  1439. package/dist/src/public/sandbox/backends/default.d.ts +22 -0
  1440. package/dist/src/public/sandbox/backends/default.js +1 -0
  1441. package/dist/src/public/sandbox/backends/local.d.ts +17 -0
  1442. package/dist/src/public/sandbox/backends/local.js +1 -0
  1443. package/dist/src/public/sandbox/backends/vercel.d.ts +24 -0
  1444. package/dist/src/public/sandbox/backends/vercel.js +1 -0
  1445. package/dist/src/public/sandbox/index.d.ts +13 -0
  1446. package/dist/src/public/sandbox/index.js +1 -0
  1447. package/dist/src/public/sandbox/local-sandbox.d.ts +7 -0
  1448. package/dist/src/public/sandbox/local-sandbox.js +1 -0
  1449. package/dist/src/public/sandbox/vercel-sandbox.d.ts +42 -0
  1450. package/dist/src/public/sandbox/vercel-sandbox.js +1 -0
  1451. package/dist/src/public/schedules/index.d.ts +4 -0
  1452. package/dist/src/public/schedules/index.js +1 -0
  1453. package/dist/src/public/skills/index.d.ts +7 -0
  1454. package/dist/src/public/skills/index.js +1 -0
  1455. package/dist/src/public/sveltekit/dev-server.d.ts +24 -0
  1456. package/dist/src/public/sveltekit/dev-server.js +1 -0
  1457. package/dist/src/public/sveltekit/index.d.ts +44 -0
  1458. package/dist/src/public/sveltekit/index.js +1 -0
  1459. package/dist/src/public/sveltekit/routing.d.ts +32 -0
  1460. package/dist/src/public/sveltekit/routing.js +1 -0
  1461. package/dist/src/public/sveltekit/vercel-json.d.ts +17 -0
  1462. package/dist/src/public/sveltekit/vercel-json.js +1 -0
  1463. package/dist/src/public/tool-result-narrowing.d.ts +74 -0
  1464. package/dist/src/public/tool-result-narrowing.js +1 -0
  1465. package/dist/src/public/tools/approval/approval-helpers.d.ts +19 -0
  1466. package/dist/src/public/tools/approval/approval-helpers.js +1 -0
  1467. package/dist/src/public/tools/approval/index.d.ts +5 -0
  1468. package/dist/src/public/tools/approval/index.js +1 -0
  1469. package/dist/src/public/tools/defaults.d.ts +60 -0
  1470. package/dist/src/public/tools/defaults.js +1 -0
  1471. package/dist/src/public/tools/define-bash-tool.d.ts +21 -0
  1472. package/dist/src/public/tools/define-bash-tool.js +1 -0
  1473. package/dist/src/public/tools/define-glob-tool.d.ts +22 -0
  1474. package/dist/src/public/tools/define-glob-tool.js +1 -0
  1475. package/dist/src/public/tools/define-grep-tool.d.ts +22 -0
  1476. package/dist/src/public/tools/define-grep-tool.js +1 -0
  1477. package/dist/src/public/tools/define-read-file-tool.d.ts +27 -0
  1478. package/dist/src/public/tools/define-read-file-tool.js +1 -0
  1479. package/dist/src/public/tools/define-write-file-tool.d.ts +22 -0
  1480. package/dist/src/public/tools/define-write-file-tool.js +1 -0
  1481. package/dist/src/public/tools/index.d.ts +12 -0
  1482. package/dist/src/public/tools/index.js +1 -0
  1483. package/dist/src/public/tools/internal.d.ts +12 -0
  1484. package/dist/src/public/tools/internal.js +1 -0
  1485. package/dist/src/public/types/json.d.ts +28 -0
  1486. package/dist/src/public/types/json.js +1 -0
  1487. package/dist/src/react/index.d.ts +3 -0
  1488. package/dist/src/react/index.js +1 -0
  1489. package/dist/src/react/use-eve-agent.d.ts +76 -0
  1490. package/dist/src/react/use-eve-agent.js +1 -0
  1491. package/dist/src/runtime/actions/keys.d.ts +11 -0
  1492. package/dist/src/runtime/actions/keys.js +1 -0
  1493. package/dist/src/runtime/actions/types.d.ts +150 -0
  1494. package/dist/src/runtime/actions/types.js +1 -0
  1495. package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +37 -0
  1496. package/dist/src/runtime/agent/bootstrap-model-utils.js +1 -0
  1497. package/dist/src/runtime/agent/bootstrap-model.d.ts +7 -0
  1498. package/dist/src/runtime/agent/bootstrap-model.js +1 -0
  1499. package/dist/src/runtime/agent/bootstrap.d.ts +44 -0
  1500. package/dist/src/runtime/agent/bootstrap.js +1 -0
  1501. package/dist/src/runtime/agent/mock-model-adapter.d.ts +21 -0
  1502. package/dist/src/runtime/agent/mock-model-adapter.js +5 -0
  1503. package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +9 -0
  1504. package/dist/src/runtime/agent/mock-model-skill-selection.js +4 -0
  1505. package/dist/src/runtime/agent/mock-structured-output.d.ts +5 -0
  1506. package/dist/src/runtime/agent/mock-structured-output.js +1 -0
  1507. package/dist/src/runtime/agent/resolve-model.d.ts +11 -0
  1508. package/dist/src/runtime/agent/resolve-model.js +1 -0
  1509. package/dist/src/runtime/attributes/emit.d.ts +73 -0
  1510. package/dist/src/runtime/attributes/emit.js +1 -0
  1511. package/dist/src/runtime/cache-key.d.ts +9 -0
  1512. package/dist/src/runtime/cache-key.js +1 -0
  1513. package/dist/src/runtime/channels/registry.d.ts +27 -0
  1514. package/dist/src/runtime/channels/registry.js +1 -0
  1515. package/dist/src/runtime/compiled-artifacts-source.d.ts +44 -0
  1516. package/dist/src/runtime/compiled-artifacts-source.js +1 -0
  1517. package/dist/src/runtime/connections/authorization-complete-page.d.ts +11 -0
  1518. package/dist/src/runtime/connections/authorization-complete-page.js +53 -0
  1519. package/dist/src/runtime/connections/authorization-tokens.d.ts +51 -0
  1520. package/dist/src/runtime/connections/authorization-tokens.js +1 -0
  1521. package/dist/src/runtime/connections/callback-route.d.ts +55 -0
  1522. package/dist/src/runtime/connections/callback-route.js +1 -0
  1523. package/dist/src/runtime/connections/mcp-client.d.ts +74 -0
  1524. package/dist/src/runtime/connections/mcp-client.js +1 -0
  1525. package/dist/src/runtime/connections/openapi-client.d.ts +43 -0
  1526. package/dist/src/runtime/connections/openapi-client.js +1 -0
  1527. package/dist/src/runtime/connections/openapi-operations.d.ts +30 -0
  1528. package/dist/src/runtime/connections/openapi-operations.js +1 -0
  1529. package/dist/src/runtime/connections/openapi-schema.d.ts +39 -0
  1530. package/dist/src/runtime/connections/openapi-schema.js +1 -0
  1531. package/dist/src/runtime/connections/openapi-security.d.ts +41 -0
  1532. package/dist/src/runtime/connections/openapi-security.js +1 -0
  1533. package/dist/src/runtime/connections/openapi-spec.d.ts +20 -0
  1534. package/dist/src/runtime/connections/openapi-spec.js +1 -0
  1535. package/dist/src/runtime/connections/principal.d.ts +66 -0
  1536. package/dist/src/runtime/connections/principal.js +1 -0
  1537. package/dist/src/runtime/connections/registry.d.ts +36 -0
  1538. package/dist/src/runtime/connections/registry.js +1 -0
  1539. package/dist/src/runtime/connections/scoped-authorization.d.ts +61 -0
  1540. package/dist/src/runtime/connections/scoped-authorization.js +1 -0
  1541. package/dist/src/runtime/connections/types.d.ts +349 -0
  1542. package/dist/src/runtime/connections/types.js +1 -0
  1543. package/dist/src/runtime/connections/validate-authorization.d.ts +21 -0
  1544. package/dist/src/runtime/connections/validate-authorization.js +1 -0
  1545. package/dist/src/runtime/framework-channels/index.d.ts +11 -0
  1546. package/dist/src/runtime/framework-channels/index.js +1 -0
  1547. package/dist/src/runtime/framework-tools/ask-question.d.ts +21 -0
  1548. package/dist/src/runtime/framework-tools/ask-question.js +1 -0
  1549. package/dist/src/runtime/framework-tools/bash.d.ts +17 -0
  1550. package/dist/src/runtime/framework-tools/bash.js +1 -0
  1551. package/dist/src/runtime/framework-tools/code-mode-connection-auth.d.ts +29 -0
  1552. package/dist/src/runtime/framework-tools/code-mode-connection-auth.js +1 -0
  1553. package/dist/src/runtime/framework-tools/connection-search-dynamic.d.ts +35 -0
  1554. package/dist/src/runtime/framework-tools/connection-search-dynamic.js +1 -0
  1555. package/dist/src/runtime/framework-tools/file-state.d.ts +62 -0
  1556. package/dist/src/runtime/framework-tools/file-state.js +1 -0
  1557. package/dist/src/runtime/framework-tools/final-output.d.ts +14 -0
  1558. package/dist/src/runtime/framework-tools/final-output.js +1 -0
  1559. package/dist/src/runtime/framework-tools/glob.d.ts +17 -0
  1560. package/dist/src/runtime/framework-tools/glob.js +2 -0
  1561. package/dist/src/runtime/framework-tools/grep.d.ts +17 -0
  1562. package/dist/src/runtime/framework-tools/grep.js +2 -0
  1563. package/dist/src/runtime/framework-tools/index.d.ts +26 -0
  1564. package/dist/src/runtime/framework-tools/index.js +1 -0
  1565. package/dist/src/runtime/framework-tools/read-file.d.ts +17 -0
  1566. package/dist/src/runtime/framework-tools/read-file.js +2 -0
  1567. package/dist/src/runtime/framework-tools/skill.d.ts +4 -0
  1568. package/dist/src/runtime/framework-tools/skill.js +1 -0
  1569. package/dist/src/runtime/framework-tools/todo.d.ts +39 -0
  1570. package/dist/src/runtime/framework-tools/todo.js +3 -0
  1571. package/dist/src/runtime/framework-tools/web-fetch.d.ts +5 -0
  1572. package/dist/src/runtime/framework-tools/web-fetch.js +2 -0
  1573. package/dist/src/runtime/framework-tools/web-search.d.ts +26 -0
  1574. package/dist/src/runtime/framework-tools/web-search.js +1 -0
  1575. package/dist/src/runtime/framework-tools/write-file.d.ts +17 -0
  1576. package/dist/src/runtime/framework-tools/write-file.js +2 -0
  1577. package/dist/src/runtime/governance/auth/http-basic.d.ts +8 -0
  1578. package/dist/src/runtime/governance/auth/http-basic.js +1 -0
  1579. package/dist/src/runtime/governance/auth/jwt-ecdsa.d.ts +8 -0
  1580. package/dist/src/runtime/governance/auth/jwt-ecdsa.js +1 -0
  1581. package/dist/src/runtime/governance/auth/jwt-hmac.d.ts +8 -0
  1582. package/dist/src/runtime/governance/auth/jwt-hmac.js +1 -0
  1583. package/dist/src/runtime/governance/auth/oidc.d.ts +8 -0
  1584. package/dist/src/runtime/governance/auth/oidc.js +1 -0
  1585. package/dist/src/runtime/governance/auth/token-claims.d.ts +17 -0
  1586. package/dist/src/runtime/governance/auth/token-claims.js +1 -0
  1587. package/dist/src/runtime/governance/auth/types.d.ts +104 -0
  1588. package/dist/src/runtime/governance/auth/types.js +1 -0
  1589. package/dist/src/runtime/governance/network/ip-allow-list.d.ts +17 -0
  1590. package/dist/src/runtime/governance/network/ip-allow-list.js +1 -0
  1591. package/dist/src/runtime/graph.d.ts +46 -0
  1592. package/dist/src/runtime/graph.js +1 -0
  1593. package/dist/src/runtime/hooks/registry.d.ts +40 -0
  1594. package/dist/src/runtime/hooks/registry.js +1 -0
  1595. package/dist/src/runtime/input/types.d.ts +78 -0
  1596. package/dist/src/runtime/input/types.js +1 -0
  1597. package/dist/src/runtime/loaders/artifact-paths.d.ts +18 -0
  1598. package/dist/src/runtime/loaders/artifact-paths.js +1 -0
  1599. package/dist/src/runtime/loaders/bundled-artifacts.d.ts +36 -0
  1600. package/dist/src/runtime/loaders/bundled-artifacts.js +1 -0
  1601. package/dist/src/runtime/loaders/compile-metadata.d.ts +14 -0
  1602. package/dist/src/runtime/loaders/compile-metadata.js +1 -0
  1603. package/dist/src/runtime/loaders/manifest.d.ts +21 -0
  1604. package/dist/src/runtime/loaders/manifest.js +1 -0
  1605. package/dist/src/runtime/loaders/module-map.d.ts +21 -0
  1606. package/dist/src/runtime/loaders/module-map.js +1 -0
  1607. package/dist/src/runtime/prompt/compose.d.ts +19 -0
  1608. package/dist/src/runtime/prompt/compose.js +2 -0
  1609. package/dist/src/runtime/prompt/connections.d.ts +9 -0
  1610. package/dist/src/runtime/prompt/connections.js +2 -0
  1611. package/dist/src/runtime/resolve-agent-graph.d.ts +17 -0
  1612. package/dist/src/runtime/resolve-agent-graph.js +1 -0
  1613. package/dist/src/runtime/resolve-agent.d.ts +16 -0
  1614. package/dist/src/runtime/resolve-agent.js +1 -0
  1615. package/dist/src/runtime/resolve-channel.d.ts +17 -0
  1616. package/dist/src/runtime/resolve-channel.js +1 -0
  1617. package/dist/src/runtime/resolve-connection.d.ts +15 -0
  1618. package/dist/src/runtime/resolve-connection.js +1 -0
  1619. package/dist/src/runtime/resolve-dynamic-instructions.d.ts +4 -0
  1620. package/dist/src/runtime/resolve-dynamic-instructions.js +1 -0
  1621. package/dist/src/runtime/resolve-dynamic-skill.d.ts +8 -0
  1622. package/dist/src/runtime/resolve-dynamic-skill.js +1 -0
  1623. package/dist/src/runtime/resolve-dynamic-tool.d.ts +12 -0
  1624. package/dist/src/runtime/resolve-dynamic-tool.js +1 -0
  1625. package/dist/src/runtime/resolve-helpers.d.ts +43 -0
  1626. package/dist/src/runtime/resolve-helpers.js +1 -0
  1627. package/dist/src/runtime/resolve-hook.d.ts +13 -0
  1628. package/dist/src/runtime/resolve-hook.js +1 -0
  1629. package/dist/src/runtime/resolve-sandbox.d.ts +13 -0
  1630. package/dist/src/runtime/resolve-sandbox.js +1 -0
  1631. package/dist/src/runtime/resolve-tool.d.ts +14 -0
  1632. package/dist/src/runtime/resolve-tool.js +1 -0
  1633. package/dist/src/runtime/sandbox/keys.d.ts +38 -0
  1634. package/dist/src/runtime/sandbox/keys.js +1 -0
  1635. package/dist/src/runtime/sandbox/registry.d.ts +61 -0
  1636. package/dist/src/runtime/sandbox/registry.js +1 -0
  1637. package/dist/src/runtime/sandbox/template-plan.d.ts +26 -0
  1638. package/dist/src/runtime/sandbox/template-plan.js +1 -0
  1639. package/dist/src/runtime/schedules/register.d.ts +35 -0
  1640. package/dist/src/runtime/schedules/register.js +1 -0
  1641. package/dist/src/runtime/schedules/resolve-schedule.d.ts +31 -0
  1642. package/dist/src/runtime/schedules/resolve-schedule.js +1 -0
  1643. package/dist/src/runtime/session-callback-route.d.ts +6 -0
  1644. package/dist/src/runtime/session-callback-route.js +1 -0
  1645. package/dist/src/runtime/sessions/auth.d.ts +39 -0
  1646. package/dist/src/runtime/sessions/auth.js +1 -0
  1647. package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +47 -0
  1648. package/dist/src/runtime/sessions/compiled-agent-cache.js +1 -0
  1649. package/dist/src/runtime/sessions/runtime-context-keys.d.ts +11 -0
  1650. package/dist/src/runtime/sessions/runtime-context-keys.js +1 -0
  1651. package/dist/src/runtime/sessions/runtime-session.d.ts +52 -0
  1652. package/dist/src/runtime/sessions/runtime-session.js +1 -0
  1653. package/dist/src/runtime/sessions/turn.d.ts +33 -0
  1654. package/dist/src/runtime/sessions/turn.js +1 -0
  1655. package/dist/src/runtime/skills/fragment-context.d.ts +4 -0
  1656. package/dist/src/runtime/skills/fragment-context.js +1 -0
  1657. package/dist/src/runtime/skills/sandbox-access.d.ts +21 -0
  1658. package/dist/src/runtime/skills/sandbox-access.js +1 -0
  1659. package/dist/src/runtime/subagents/registry.d.ts +32 -0
  1660. package/dist/src/runtime/subagents/registry.js +1 -0
  1661. package/dist/src/runtime/tools/registry.d.ts +30 -0
  1662. package/dist/src/runtime/tools/registry.js +1 -0
  1663. package/dist/src/runtime/types.d.ts +368 -0
  1664. package/dist/src/runtime/types.js +1 -0
  1665. package/dist/src/runtime/validation.d.ts +5 -0
  1666. package/dist/src/runtime/validation.js +1 -0
  1667. package/dist/src/runtime/workspace/seed-files.d.ts +15 -0
  1668. package/dist/src/runtime/workspace/seed-files.js +1 -0
  1669. package/dist/src/runtime/workspace/spec.d.ts +6 -0
  1670. package/dist/src/runtime/workspace/spec.js +2 -0
  1671. package/dist/src/runtime/workspace/types.d.ts +18 -0
  1672. package/dist/src/runtime/workspace/types.js +1 -0
  1673. package/dist/src/sandbox/state.d.ts +33 -0
  1674. package/dist/src/sandbox/state.js +1 -0
  1675. package/dist/src/services/dev-client/request-headers.d.ts +74 -0
  1676. package/dist/src/services/dev-client/request-headers.js +1 -0
  1677. package/dist/src/services/dev-client/stream.d.ts +5 -0
  1678. package/dist/src/services/dev-client/stream.js +1 -0
  1679. package/dist/src/services/dev-client/url.d.ts +11 -0
  1680. package/dist/src/services/dev-client/url.js +1 -0
  1681. package/dist/src/services/dev-client/vercel-auth-error.d.ts +42 -0
  1682. package/dist/src/services/dev-client/vercel-auth-error.js +2 -0
  1683. package/dist/src/services/dev-client.d.ts +75 -0
  1684. package/dist/src/services/dev-client.js +1 -0
  1685. package/dist/src/services/inspect-application.d.ts +23 -0
  1686. package/dist/src/services/inspect-application.js +1 -0
  1687. package/dist/src/shared/agent-definition.d.ts +154 -0
  1688. package/dist/src/shared/agent-definition.js +1 -0
  1689. package/dist/src/shared/code-mode.d.ts +29 -0
  1690. package/dist/src/shared/code-mode.js +1 -0
  1691. package/dist/src/shared/dynamic-tool-definition.d.ts +159 -0
  1692. package/dist/src/shared/dynamic-tool-definition.js +1 -0
  1693. package/dist/src/shared/errors.d.ts +17 -0
  1694. package/dist/src/shared/errors.js +1 -0
  1695. package/dist/src/shared/guards.d.ts +45 -0
  1696. package/dist/src/shared/guards.js +1 -0
  1697. package/dist/src/shared/json-schema.d.ts +9 -0
  1698. package/dist/src/shared/json-schema.js +1 -0
  1699. package/dist/src/shared/json-schemas.d.ts +10 -0
  1700. package/dist/src/shared/json-schemas.js +1 -0
  1701. package/dist/src/shared/json.d.ts +34 -0
  1702. package/dist/src/shared/json.js +1 -0
  1703. package/dist/src/shared/network-address.d.ts +11 -0
  1704. package/dist/src/shared/network-address.js +1 -0
  1705. package/dist/src/shared/node.d.ts +6 -0
  1706. package/dist/src/shared/node.js +1 -0
  1707. package/dist/src/shared/optional.d.ts +3 -0
  1708. package/dist/src/shared/optional.js +1 -0
  1709. package/dist/src/shared/run-mode.d.ts +7 -0
  1710. package/dist/src/shared/run-mode.js +1 -0
  1711. package/dist/src/shared/sandbox-backend.d.ts +149 -0
  1712. package/dist/src/shared/sandbox-backend.js +1 -0
  1713. package/dist/src/shared/sandbox-definition.d.ts +110 -0
  1714. package/dist/src/shared/sandbox-definition.js +1 -0
  1715. package/dist/src/shared/sandbox-network-policy.d.ts +23 -0
  1716. package/dist/src/shared/sandbox-network-policy.js +1 -0
  1717. package/dist/src/shared/sandbox-session.d.ts +144 -0
  1718. package/dist/src/shared/sandbox-session.js +1 -0
  1719. package/dist/src/shared/skill-definition.d.ts +24 -0
  1720. package/dist/src/shared/skill-definition.js +1 -0
  1721. package/dist/src/shared/skill-package.d.ts +50 -0
  1722. package/dist/src/shared/skill-package.js +1 -0
  1723. package/dist/src/shared/source-ref.d.ts +53 -0
  1724. package/dist/src/shared/source-ref.js +1 -0
  1725. package/dist/src/shared/tool-definition.d.ts +58 -0
  1726. package/dist/src/shared/tool-definition.js +1 -0
  1727. package/dist/src/shared/vercel-output-directory.d.ts +2 -0
  1728. package/dist/src/shared/vercel-output-directory.js +1 -0
  1729. package/dist/src/svelte/index.d.ts +3 -0
  1730. package/dist/src/svelte/index.js +3 -0
  1731. package/dist/src/svelte/use-eve-agent.d.ts +105 -0
  1732. package/dist/src/svelte/use-eve-agent.js +3 -0
  1733. package/dist/src/vue/index.d.ts +3 -0
  1734. package/dist/src/vue/index.js +3 -0
  1735. package/dist/src/vue/use-eve-agent.d.ts +103 -0
  1736. package/dist/src/vue/use-eve-agent.js +3 -0
  1737. package/package.json +336 -71
  1738. package/.npmignore +0 -2
  1739. package/component.json +0 -13
  1740. package/dr.json +0 -10
  1741. package/e.html +0 -66
  1742. package/eve.js +0 -435
  1743. package/template.dot +0 -13
@@ -0,0 +1,25 @@
1
+ import type { WorkflowManifest } from "./workflow-builders.js";
2
+ type WorkflowDirectiveMode = "workflow" | "step" | "client" | false;
3
+ export declare function transformWorkflowDirectives(input: {
4
+ filename: string;
5
+ mode: WorkflowDirectiveMode;
6
+ moduleSpecifier: string | undefined;
7
+ source: string;
8
+ /**
9
+ * Package-qualified module specifier without the `@<pkg.version>`
10
+ * stamp. Used to mint workflow ids for functions named in
11
+ * {@link transformWorkflowDirectives.input.stableWorkflowNames} so
12
+ * the bundled id matches the runtime reference on every deployment.
13
+ */
14
+ stableModuleSpecifier?: string | undefined;
15
+ /**
16
+ * Workflow function names whose bundled id should be emitted without
17
+ * the package version stamp. See `STABLE_WORKFLOW_NAMES` in
18
+ * `workflow-runtime.ts` for the canonical set eve itself uses.
19
+ */
20
+ stableWorkflowNames?: ReadonlySet<string>;
21
+ }): Promise<{
22
+ code: string;
23
+ workflowManifest: WorkflowManifest;
24
+ }>;
25
+ export {};
@@ -0,0 +1,5 @@
1
+ import{loadNitroRolldownParseAst}from"#internal/bundler/nitro-rolldown.js";const BUILTIN_STEP_NAMES=new Set([`__builtin_response_array_buffer`,`__builtin_response_json`,`__builtin_response_text`,`__builtin_set_attributes`]);async function transformWorkflowDirectives(e){if(e.mode===!1)return{code:e.source,workflowManifest:{}};let t=await parseWorkflowSource(e.filename,e.source),n=findDirectiveFunctions(t);if(n.length===0)return{code:e.source,workflowManifest:{}};let r=e.moduleSpecifier??`./${stripJavaScriptExtension(e.filename)}`,i=e.stableModuleSpecifier??r,a={},o=[],s=[],c=!1;for(let t of n){if(t.directive===`use step`){let n=createStepId(r,t.name);a.steps??={};let i=a.steps[e.filename]??={};if(i[t.name]={stepId:n},e.mode===`workflow`){let e=t.exportPrefix.length>0?`export `:``;o.push({end:t.rangeEnd,start:t.rangeStart,text:`${e}var ${t.name} = globalThis[Symbol.for("WORKFLOW_USE_STEP")](${JSON.stringify(n)});`})}else o.push({end:t.directiveEnd,start:t.directiveStart,text:``}),e.mode===`step`?(c=!0,s.push(`registerStepFunction(${JSON.stringify(n)}, ${t.name});`)):s.push(`${t.name}.stepId = ${JSON.stringify(n)};`);continue}let n=`workflow//${e.stableWorkflowNames?.has(t.name)===!0?i:r}//${t.name}`;a.workflows??={};let l=a.workflows[e.filename]??={};l[t.name]={workflowId:n},e.mode===`workflow`?(o.push({end:t.directiveEnd,start:t.directiveStart,text:``}),s.push(`${t.name}.workflowId = ${JSON.stringify(n)};`),s.push(`globalThis.__private_workflows.set(${JSON.stringify(n)}, ${t.name});`)):(o.push({end:t.directiveEnd,start:t.directiveStart,text:`throw new Error(${JSON.stringify(`You attempted to execute workflow ${t.name} function directly. To start a workflow, use start(${t.name}) from workflow/api`)});`}),s.push(`${t.name}.workflowId = ${JSON.stringify(n)};`))}let l=`/**__internal_workflows${JSON.stringify(a)}*/;`,u=n.some(e=>e.directive===`use workflow`);if(e.mode===`workflow`&&!u)return{code:`${l}\n${createWorkflowStepProxySource(e.source,t,n,r)}`,workflowManifest:a};let d=applySourceReplacements(e.source,o),f=e.mode===`workflow`?await stripUnusedValueImports(e.filename,d):d;return{code:`${c?`import { registerStepFunction } from "workflow/internal/private";\n${l}\n`:`${l}\n`}${f}${s.length>0?`\n${s.join(`
2
+ `)}\n`:``}`,workflowManifest:a}}async function parseWorkflowSource(t,n){let{parseAst:r}=await loadNitroRolldownParseAst();return r(n,{astType:`ts`,lang:inferParserLanguage(t),range:!0,sourceType:`module`},t)}function createWorkflowStepProxySource(e,t,n,r){let i=findExportedLiteralValueDeclarations(e,t),a=n.filter(e=>e.directive===`use step`).map(e=>{let t=e.exported?`export `:``,n=createStepId(r,e.name);return`${t}var ${e.name} = globalThis[Symbol.for("WORKFLOW_USE_STEP")](${JSON.stringify(n)});`}),o=[...i,...a];return o.length>0?`${o.join(`
3
+ `)}\n`:``}function findDirectiveFunctions(e){let t=[],n=collectLocalNamesReExportedAtModuleLevel(e);for(let r of e.body??[]){let e=readTopLevelFunctionDeclaration(r);if(e===null)continue;let i=e.fn,a=i.id?.name,o=readBlockStatements(i.body);if(i.async!==!0||a===void 0||o===void 0)continue;let s=readFunctionDirective(o[0]);s!==null&&t.push({directive:s.value,directiveEnd:s.end,directiveStart:s.start,exportPrefix:e.exported?`export `:``,exported:e.exported||n.has(a),name:a,rangeEnd:e.end,rangeStart:e.start})}return t}function collectLocalNamesReExportedAtModuleLevel(e){let t=new Set;for(let n of e.body??[])if(n.type===`ExportNamedDeclaration`&&!(n.source!==void 0&&n.source!==null)&&!(n.declaration!==void 0&&n.declaration!==null))for(let e of n.specifiers??[]){let n=e.local?.name;n!==void 0&&t.add(n)}return t}function readTopLevelFunctionDeclaration(e){return e.type===`FunctionDeclaration`?readFunctionDeclarationRange(e,!1,e):e.type!==`ExportNamedDeclaration`||e.declaration?.type!==`FunctionDeclaration`?null:readFunctionDeclarationRange(e.declaration,!0,e)}function readFunctionDeclarationRange(e,t,n){return e.start===void 0||e.end===void 0||n.start===void 0||n.end===void 0?null:{end:n.end,exported:t,fn:e,start:n.start}}function readBlockStatements(e){return e===void 0||Array.isArray(e)?e:e.body}function readFunctionDirective(e){let t=e?.directive??(e?.type===`ExpressionStatement`&&e.expression?.type===`Literal`?e.expression.value:void 0);return t!==`use workflow`&&t!==`use step`||e?.start===void 0||e.end===void 0?null:{end:e.end,start:e.start,value:t}}function applySourceReplacements(e,t){let n=``,r=0;for(let i of[...t].sort((e,t)=>e.start-t.start))n+=e.slice(r,i.start),n+=i.text,r=i.end;return n+e.slice(r)}async function stripUnusedValueImports(e,t){let n=await parseWorkflowSource(e,t),r=collectReferencedIdentifiers(n),i=[];for(let e of n.body??[]){if(e.type!==`ImportDeclaration`||e.start===void 0||e.end===void 0)continue;let n=readValueImportBindings(e);n.length>0&&n.every(e=>!r.has(e))&&i.push({end:extendRemovalEnd(t,e.end),start:e.start,text:``})}return i.length>0?applySourceReplacements(t,i):t}function findExportedLiteralValueDeclarations(e,t){let n=[],r=collectLocalReExportAliases(t);for(let i of t.body??[]){if(i.type===`ExportNamedDeclaration`&&i.declaration?.type===`VariableDeclaration`&&i.declaration.kind===`const`&&i.start!==void 0&&i.end!==void 0&&(i.declaration.declarations??[]).every(isLiteralValueDeclarator)){n.push(e.slice(i.start,i.end).trim());continue}if(i.type===`VariableDeclaration`&&(i.kind===`const`||i.kind===`var`||i.kind===`let`))for(let t of i.declarations??[]){if(!isLiteralValueDeclarator(t)||t.start===void 0||t.end===void 0)continue;let a=t.id?.name;if(a===void 0)continue;let o=r.get(a);if(o===void 0||o.length===0)continue;let s=e.slice(t.start,t.end).trim(),c=o.map(e=>e===a?a:`${a} as ${e}`);n.push(`${i.kind} ${s};\nexport { ${c.join(`, `)} };`)}}return n}function collectLocalReExportAliases(e){let t=new Map;for(let n of e.body??[])if(n.type===`ExportNamedDeclaration`&&!(n.source!==void 0&&n.source!==null)&&!(n.declaration!==void 0&&n.declaration!==null))for(let e of n.specifiers??[]){let n=e.local?.name,r=e.exported?.name??n;if(n!==void 0&&r!==void 0){let e=t.get(n)??[];e.push(r),t.set(n,e)}}return t}function isLiteralValueDeclarator(e){return isLiteralValueExpression(e.init)}function isLiteralValueExpression(e){return e==null?!1:e.type===`Literal`?e.value===null||typeof e.value==`boolean`||typeof e.value==`number`||typeof e.value==`string`:e.type===`TemplateLiteral`&&(e.expressions??[]).length===0?!0:e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`||e.type===`TSNonNullExpression`||e.type===`TSTypeAssertion`?isLiteralValueExpression(e.expression):e.type===`UnaryExpression`&&e.argument?.type===`Literal`?typeof e.argument.value==`number`:!1}function readValueImportBindings(e){return e.importKind===`type`?[]:(e.specifiers??[]).filter(e=>e.importKind!==`type`).map(e=>e.local?.name).filter(e=>e!==void 0)}function collectReferencedIdentifiers(e){let t=new Set;return visitAstNode(e,e=>{e.type===`Identifier`&&typeof e.name==`string`&&t.add(e.name)}),t}function visitAstNode(e,t){if(!(e.type===`ImportDeclaration`||e.type?.startsWith(`TS`))){t(e);for(let n of Object.values(e))if(Array.isArray(n))for(let e of n)isAstNode(e)&&visitAstNode(e,t);else isAstNode(n)&&visitAstNode(n,t)}}function isAstNode(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function extendRemovalEnd(e,t){let n=t;for(;n<e.length&&(e[n]===` `||e[n]===` `);)n+=1;return e[n]===`\r`&&e[n+1]===`
4
+ `?n+2:e[n]===`
5
+ `?n+1:n}function inferParserLanguage(e){return e.endsWith(`.tsx`)?`tsx`:e.endsWith(`.jsx`)?`jsx`:/\.[cm]?ts$/.test(e)?`ts`:`js`}function stripJavaScriptExtension(e){return e.replace(/\.(?:[cm]?[jt]sx?)$/,``)}function createStepId(e,n){return BUILTIN_STEP_NAMES.has(n)?n:`step//${e}//${n}`}export{transformWorkflowDirectives};
@@ -0,0 +1,10 @@
1
+ import{wrapAnsi}from"../../../../../fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js";import{require_src}from"../../../../../sisteransi@1.0.5/node_modules/sisteransi/src/index.js";import{styleText}from"node:util";import{stdin,stdout}from"node:process";import"node:readline";import E from"node:readline";import"node:tty";var import_src=require_src();function f(e,t,n){if(!n.some(e=>!e.disabled))return e;let r=e+t,i=Math.max(n.length-1,0),a=r<0?i:r>i?0:r;return n[a].disabled?f(a,t<0?-1:1,n):a}const h={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]]),messages:{cancel:`Canceled`,error:`Something went wrong`},withGuide:!0,date:{monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],messages:{required:`Please enter a valid date`,invalidMonth:`There are only 12 months in a year`,invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function C(e,t){if(typeof e==`string`)return h.aliases.get(e)===t;for(let n of e)if(n!==void 0&&C(n,t))return!0;return!1}function z(e,t){if(e===t)return;let n=e.split(`
2
+ `),r=t.split(`
3
+ `),i=Math.max(n.length,r.length),a=[];for(let e=0;e<i;e++)n[e]!==r[e]&&a.push(e);return{lines:a,numLinesBefore:n.length,numLinesAfter:r.length,numLines:i}}globalThis.process.platform.startsWith(`win`);const k=Symbol(`clack:cancel`);function q(e){return e===k}function w(e,t){let n=e;n.isTTY&&n.setRawMode(t)}const A=e=>`columns`in e&&typeof e.columns==`number`?e.columns:80,L=e=>`rows`in e&&typeof e.rows==`number`?e.rows:20;function W(t,n,r,a=r,o=r,s){return wrapAnsi(n,A(t??stdout)-r.length,{hard:!0,trim:!1}).split(`
4
+ `).map((e,t,n)=>{let i=s?s(e,t):e;return t===0?`${a}${i}`:t===n.length-1?`${o}${i}`:`${r}${i}`}).join(`
5
+ `)}let m=class{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame=``;_subscribers=new Map;_cursor=0;state=`initial`;error=``;value;userInput=``;constructor(e,t=!0){let{input:n=stdin,output:a=stdout,render:o,signal:s,...c}=e;this.opts=c,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=t,this._abortSignal=s,this.input=n,this.output=a}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(k);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}this.rl=E.createInterface({input:this.input,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on(`keypress`,this.onKeypress),w(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),w(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(import_src.cursor.show),this.output.off(`resize`,this.render),w(this.input,!1),e(k)})})}_isActionKey(e,t){return e===` `}_shouldSubmit(e,t){return!0}_setValue(e){this.value=e,this.emit(`value`,this.value)}_setUserInput(e,t){this.userInput=e??``,this.emit(`userInput`,this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:`u`}),this._setUserInput(``)}onKeypress(e,t){if(this._track&&t.name!==`return`&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:`h`}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&h.aliases.has(t.name)&&this.emit(`cursor`,h.aliases.get(t.name)),h.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),this.emit(`key`,e?.toLowerCase(),t),t?.name===`return`&&this._shouldSubmit(e,t)){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.userInput))}this.state!==`error`&&(this.state=`submit`)}C([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
6
+ `),w(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=wrapAnsi(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
7
+ `).length-1;this.output.write(import_src.cursor.move(-999,t*-1))}render(){let t=wrapAnsi(this._render(this)??``,process.stdout.columns,{hard:!0,trim:!1});if(t!==this._prevFrame){if(this.state===`initial`)this.output.write(import_src.cursor.hide);else{let e=z(this._prevFrame,t),n=L(this.output);if(this.restoreCursor(),e){let r=Math.max(0,e.numLinesAfter-n),i=Math.max(0,e.numLinesBefore-n),a=e.lines.find(e=>e>=r);if(a===void 0){this._prevFrame=t;return}if(e.lines.length===1){this.output.write(import_src.cursor.move(0,a-i)),this.output.write(import_src.erase.lines(1));let e=t.split(`
8
+ `);this.output.write(e[a]),this._prevFrame=t,this.output.write(import_src.cursor.move(0,e.length-a-1));return}else if(e.lines.length>1){if(r<i)a=r;else{let e=a-i;e>0&&this.output.write(import_src.cursor.move(0,e))}this.output.write(import_src.erase.down());let e=t.split(`
9
+ `).slice(a);this.output.write(e.join(`
10
+ `)),this._prevFrame=t;return}}this.output.write(import_src.erase.down())}this.output.write(t),this.state===`initial`&&(this.state=`active`),this._prevFrame=t}}};var ht=class extends m{get userInputWithCursor(){if(this.state===`submit`)return this.userInput;let e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}\u2588`;let t=e.slice(0,this.cursor),[r,...i]=e.slice(this.cursor);return`${t}${styleText(`inverse`,r)}${i.join(``)}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value||=e.defaultValue,this.value===void 0&&(this.value=``)})}};export{W,ht,m,q};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"./compile/codegen/index.js";import{require_validate}from"./compile/validate/index.js";import{require_validation_error}from"./runtime/validation_error.js";import{require_ref_error}from"./compile/ref_error.js";import{require_core}from"./core.js";import{require_draft7}from"./vocabularies/draft7.js";import{require_discriminator}from"./vocabularies/discriminator/index.js";import{require_json_schema_draft_07}from"./refs/json-schema-draft-07.js";var require_ajv=__commonJSMin(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let n=require_core(),r=require_draft7(),i=require_discriminator(),a=require_json_schema_draft_07(),o=[`/properties`],s=`http://json-schema.org/draft-07/schema`;var Ajv=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(a,o):a;this.addMetaSchema(e,s,!1),this.refs[`http://json-schema.org/schema`]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv=Ajv,t.exports=e=Ajv,t.exports.Ajv=Ajv,Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ajv;var c=require_validate();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=require_codegen();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var u=require_validation_error();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=require_ref_error();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}));export default require_ajv();export{require_ajv};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";var require_code=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var _CodeOrName=class{};e._CodeOrName=_CodeOrName,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Name=class extends _CodeOrName{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=Name;var _Code=class extends _CodeOrName{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof Name&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=_Code,e.nil=new _Code(``);function _(e,...t){let n=[e[0]],r=0;for(;r<t.length;)addCodeArg(n,t[r]),n.push(e[++r]);return new _Code(n)}e._=_;let t=new _Code(`+`);function str(e,...n){let r=[safeStringify(e[0])],i=0;for(;i<n.length;)r.push(t),addCodeArg(r,n[i]),r.push(t,safeStringify(e[++i]));return optimize(r),new _Code(r)}e.str=str;function addCodeArg(e,t){t instanceof _Code?e.push(...t._items):t instanceof Name?e.push(t):e.push(interpolate(t))}e.addCodeArg=addCodeArg;function optimize(e){let n=1;for(;n<e.length-1;){if(e[n]===t){let t=mergeExprItems(e[n-1],e[n+1]);if(t!==void 0){e.splice(n-1,3,t);continue}e[n++]=`+`}n++}}function mergeExprItems(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof Name||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof Name))return`"${e}${t.slice(1)}`}function strConcat(e,t){return t.emptyStr()?e:e.emptyStr()?t:str`${e}${t}`}e.strConcat=strConcat;function interpolate(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:safeStringify(Array.isArray(e)?e.join(`,`):e)}function stringify(e){return new _Code(safeStringify(e))}e.stringify=stringify;function safeStringify(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=safeStringify;function getProperty(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new _Code(`.${t}`):_`[${t}]`}e.getProperty=getProperty;function getEsmExportName(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new _Code(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=getEsmExportName;function regexpCode(e){return new _Code(e.toString())}e.regexpCode=regexpCode}));export default require_code();export{require_code};
@@ -0,0 +1,2 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_code}from"./code.js";import{require_scope}from"./scope.js";var require_codegen=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let r=require_code(),i=require_scope();var a=require_code();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var o=require_scope();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new r._Code(`>`),GTE:new r._Code(`>=`),LT:new r._Code(`<`),LTE:new r._Code(`<=`),EQ:new r._Code(`===`),NEQ:new r._Code(`!==`),NOT:new r._Code(`!`),OR:new r._Code(`||`),AND:new r._Code(`&&`),ADD:new r._Code(`+`)};var Node=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},Def=class extends Node{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let n=e?i.varKinds.var:this.varKind,r=this.rhs===void 0?``:` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=optimizeExpr(this.rhs,e,t),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}},Assign=class extends Node{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=optimizeExpr(this.rhs,e,t),this}get names(){return addExprNames(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}},AssignOp=class extends Assign{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Label=class extends Node{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Break=class extends Node{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},Throw=class extends Node{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},AnyCode=class extends Node{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=optimizeExpr(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}},ParentNode=class extends Node{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(subtractNames(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>addNames(e,t.names),{})}},BlockNode=class extends ParentNode{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},Root=class extends ParentNode{},Else=class extends BlockNode{};Else.kind=`else`;var s=class If extends BlockNode{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new Else(e):e}if(t)return e===!1?t instanceof If?t:t.nodes:this.nodes.length?this:new If(not(e),t instanceof If?[t]:t.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=optimizeExpr(this.condition,e,t),this}get names(){let e=super.names;return addExprNames(e,this.condition),this.else&&addNames(e,this.else.names),e}};s.kind=`if`;var For=class extends BlockNode{};For.kind=`for`;var ForLoop=class extends For{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=optimizeExpr(this.iteration,e,t),this}get names(){return addNames(super.names,this.iteration.names)}},ForRange=class extends For{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:a}=this;return`for(${t} ${n}=${r}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){return addExprNames(addExprNames(super.names,this.from),this.to)}},ForIter=class extends For{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=optimizeExpr(this.iterable,e,t),this}get names(){return addNames(super.names,this.iterable.names)}},Func=class extends BlockNode{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};Func.kind=`func`;var Return=class extends ParentNode{render(e){return`return `+super.render(e)}};Return.kind=`return`;var Try=class extends BlockNode{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){return super.optimizeNodes(),this.catch?.optimizeNodes(),this.finally?.optimizeNodes(),this}optimizeNames(e,t){return super.optimizeNames(e,t),this.catch?.optimizeNames(e,t),this.finally?.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&addNames(e,this.catch.names),this.finally&&addNames(e,this.finally.names),e}},Catch=class extends BlockNode{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Catch.kind=`catch`;var Finally=class extends BlockNode{render(e){return`finally`+super.render(e)}};Finally.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
2
+ `:``},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new Def(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new Assign(e,t,n))}add(t,n){return this._leafNode(new AssignOp(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==r.nil&&this._leafNode(new AnyCode(e)),this}object(...e){let t=[`{`];for(let[n,i]of e)t.length>1&&t.push(`,`),t.push(n),(n!==i||this.opts.es5)&&(t.push(`:`),(0,r.addCodeArg)(t,i));return t.push(`}`),new r._Code(t)}if(e,t,n){if(this._blockNode(new s(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new s(e))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(s,Else)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new ForLoop(e),t)}forRange(e,t,n,r,a=this.opts.es5?i.varKinds.var:i.varKinds.let){let o=this._scope.toName(e);return this._for(new ForRange(a,o,t,n),()=>r(o))}forOf(e,t,n,a=i.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=t instanceof r.Name?t:this.var(`_arr`,t);return this.forRange(`_i`,0,(0,r._)`${e}.length`,t=>{this.var(o,(0,r._)`${e}[${t}]`),n(o)})}return this._for(new ForIter(`of`,a,o,t),()=>n(o))}forIn(e,t,n,a=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,r._)`Object.keys(${t})`,n);let o=this._scope.toName(e);return this._for(new ForIter(`in`,a,o,t),()=>n(o))}endFor(){return this._endBlockNode(For)}label(e){return this._leafNode(new Label(e))}break(e){return this._leafNode(new Break(e))}return(e){let t=new Return;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(Return)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new Try;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new Catch(e),t(e)}return n&&(this._currNode=r.finally=new Finally,this.code(n)),this._endBlockNode(Catch,Finally)}throw(e){return this._leafNode(new Throw(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new Func(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Func)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof s))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function addNames(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function addExprNames(e,t){return t instanceof r._CodeOrName?addNames(e,t.names):e}function optimizeExpr(e,t,n){if(e instanceof r.Name)return replaceName(e);if(!canOptimize(e))return e;return new r._Code(e._items.reduce((e,t)=>(t instanceof r.Name&&(t=replaceName(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e),[]));function replaceName(e){let r=n[e.str];return r===void 0||t[e.str]!==1?e:(delete t[e.str],r)}function canOptimize(e){return e instanceof r._Code&&e._items.some(e=>e instanceof r.Name&&t[e.str]===1&&n[e.str]!==void 0)}}function subtractNames(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function not(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,r._)`!${par(e)}`}e.not=not;let c=mappend(e.operators.AND);function and(...e){return e.reduce(c)}e.and=and;let l=mappend(e.operators.OR);function or(...e){return e.reduce(l)}e.or=or;function mappend(e){return(t,n)=>t===r.nil?n:n===r.nil?t:(0,r._)`${par(t)} ${e} ${par(n)}`}function par(e){return e instanceof r.Name?e:(0,r._)`(${e})`}}));export default require_codegen();export{require_codegen};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_code}from"./code.js";var require_scope=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let n=require_code();var ValueError=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new n.Name(`const`),let:new n.Name(`let`),var:new n.Name(`var`)};var Scope=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=Scope;var ValueScopeName=class extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,n._)`.${new n.Name(t)}[${r}]`}};e.ValueScopeName=ValueScopeName;let i=(0,n._)`\n`;e.ValueScope=class extends Scope{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:n.nil}}get(){return this._scope}name(e){return new ValueScopeName(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(t.scopePath===void 0)throw Error(`CodeGen: name "${t}" has no value`);return(0,n._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(t,i,a={},o){let s=n.nil;for(let c in t){let l=t[c];if(!l)continue;let u=a[c]=a[c]||new Map;l.forEach(t=>{if(u.has(t))return;u.set(t,r.Started);let a=i(t);if(a){let r=this.opts.es5?e.varKinds.var:e.varKinds.const;s=(0,n._)`${s}${r} ${t} = ${a};${this.opts._n}`}else if(a=o?.(t))s=(0,n._)`${s}${a}${this.opts._n}`;else throw new ValueError(t);u.set(t,r.Completed)})}return s}}}));export default require_scope();export{require_scope};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"./codegen/index.js";import{require_util}from"./util.js";import{require_names}from"./names.js";var require_errors=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let i=require_codegen(),a=require_util(),o=require_names();e.keywordError={message:({keyword:e})=>(0,i.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,i.str)`"${e}" keyword must be ${t} ($data)`:(0,i.str)`"${e}" keyword is invalid ($data)`};function reportError(t,n=e.keywordError,r,a){let{it:o}=t,{gen:s,compositeRule:c,allErrors:l}=o,u=errorObjectCode(t,n,r);a??(c||l)?addError(s,u):returnErrors(o,(0,i._)`[${u}]`)}e.reportError=reportError;function reportExtraError(t,n=e.keywordError,r){let{it:i}=t,{gen:a,compositeRule:s,allErrors:c}=i;addError(a,errorObjectCode(t,n,r)),s||c||returnErrors(i,o.default.vErrors)}e.reportExtraError=reportExtraError;function resetErrorsCount(e,t){e.assign(o.default.errors,t),e.if((0,i._)`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,i._)`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))}e.resetErrorsCount=resetErrorsCount;function extendErrors({gen:e,keyword:t,schemaValue:n,data:r,errsCount:a,it:s}){if(a===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,a,o.default.errors,a=>{e.const(c,(0,i._)`${o.default.vErrors}[${a}]`),e.if((0,i._)`${c}.instancePath === undefined`,()=>e.assign((0,i._)`${c}.instancePath`,(0,i.strConcat)(o.default.instancePath,s.errorPath))),e.assign((0,i._)`${c}.schemaPath`,(0,i.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,i._)`${c}.schema`,n),e.assign((0,i._)`${c}.data`,r))})}e.extendErrors=extendErrors;function addError(e,t){let n=e.const(`err`,t);e.if((0,i._)`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,(0,i._)`[${n}]`),(0,i._)`${o.default.vErrors}.push(${n})`),e.code((0,i._)`${o.default.errors}++`)}function returnErrors(e,t){let{gen:n,validateName:r,schemaEnv:a}=e;a.$async?n.throw((0,i._)`new ${e.ValidationError}(${t})`):(n.assign((0,i._)`${r}.errors`,t),n.return(!1))}let s={keyword:new i.Name(`keyword`),schemaPath:new i.Name(`schemaPath`),params:new i.Name(`params`),propertyName:new i.Name(`propertyName`),message:new i.Name(`message`),schema:new i.Name(`schema`),parentSchema:new i.Name(`parentSchema`)};function errorObjectCode(e,t,n){let{createErrors:r}=e.it;return r===!1?(0,i._)`{}`:errorObject(e,t,n)}function errorObject(e,t,n={}){let{gen:r,it:i}=e,a=[errorInstancePath(i,n),errorSchemaPath(e,n)];return extraErrorProps(e,t,a),r.object(...a)}function errorInstancePath({errorPath:e},{instancePath:t}){let n=t?(0,i.str)`${e}${(0,a.getErrorPath)(t,a.Type.Str)}`:e;return[o.default.instancePath,(0,i.strConcat)(o.default.instancePath,n)]}function errorSchemaPath({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:r}){let o=r?t:(0,i.str)`${t}/${e}`;return n&&(o=(0,i.str)`${o}${(0,a.getErrorPath)(n,a.Type.Str)}`),[s.schemaPath,o]}function extraErrorProps(e,{params:t,message:n},r){let{keyword:a,data:c,schemaValue:l,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=u;r.push([s.keyword,a],[s.params,typeof t==`function`?t(e):t||(0,i._)`{}`]),d.messages&&r.push([s.message,typeof n==`function`?n(e):n]),d.verbose&&r.push([s.schema,l],[s.parentSchema,(0,i._)`${p}${m}`],[o.default.data,c]),f&&r.push([s.propertyName,f])}}));export default require_errors();export{require_errors};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"./codegen/index.js";import{require_util}from"./util.js";import{require_names}from"./names.js";import{require_resolve}from"./resolve.js";import{require_validate}from"./validate/index.js";import{require_validation_error}from"../runtime/validation_error.js";var require_compile=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let s=require_codegen(),c=require_validation_error(),l=require_names(),u=require_resolve(),d=require_util(),f=require_validate();var SchemaEnv=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,u.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=SchemaEnv;function compileSchema(e){let t=getCompilingSchema.call(this,e);if(t)return t;let n=(0,u.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:a}=this.opts,o=new s.CodeGen(this.scope,{es5:r,lines:i,ownProperties:a}),d;e.$async&&(d=o.scopeValue(`Error`,{ref:c.default,code:(0,s._)`require("ajv/dist/runtime/validation_error").default`}));let p=o.scopeName(`validate`);e.validateName=p;let m={gen:o,allErrors:this.opts.allErrors,data:l.default.data,parentData:l.default.parentData,parentDataProperty:l.default.parentDataProperty,dataNames:[l.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,s._)`""`,opts:this.opts,self:this},h;try{this._compilations.add(e),(0,f.validateFunctionCode)(m),o.optimize(this.opts.code.optimize);let t=o.toString();h=`${o.scopeRefs(l.default.scope)}return ${t}`,this.opts.code.process&&(h=this.opts.code.process(h,e));let n=Function(`${l.default.self}`,`${l.default.scope}`,h)(this,this.scope.get());if(this.scope.value(p,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),this.opts.code.source===!0&&(n.source={validateName:p,validateCode:t,scopeValues:o._values}),this.opts.unevaluated){let{props:e,items:t}=m;n.evaluated={props:e instanceof s.Name?void 0:e,items:t instanceof s.Name?void 0:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name},n.source&&(n.source.evaluated=(0,s.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,h&&this.logger.error(`Error compiling schema, function code:`,h),t}finally{this._compilations.delete(e)}}e.compileSchema=compileSchema;function resolveRef(e,t,n){n=(0,u.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let i=resolve.call(this,e,n);if(i===void 0){let r=e.localRefs?.[n],{schemaId:a}=this.opts;r&&(i=new SchemaEnv({schema:r,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[n]=inlineOrCompile.call(this,i)}e.resolveRef=resolveRef;function inlineOrCompile(e){return(0,u.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(let t of this._compilations)if(sameSchemaEnv(t,e))return t}e.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function resolve(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){let n=this.opts.uriResolver.parse(t),r=(0,u._getFullPath)(this.opts.uriResolver,n),i=(0,u.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return getJsonPointer.call(this,n,e);let a=(0,u.normalizeId)(r),o=this.refs[a]||this.schemas[a];if(typeof o==`string`){let t=resolveSchema.call(this,e,o);return typeof t?.schema==`object`?getJsonPointer.call(this,n,t):void 0}if(typeof o?.schema==`object`){if(o.validate||compileSchema.call(this,o),a===(0,u.normalizeId)(t)){let{schema:t}=o,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,u.resolveUrl)(this.opts.uriResolver,i,r)),new SchemaEnv({schema:t,schemaId:n,root:e,baseId:i})}return getJsonPointer.call(this,n,o)}}e.resolveSchema=resolveSchema;let p=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function getJsonPointer(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,d.unescapeFragment)(r)];if(e===void 0)return;n=e;let i=typeof n==`object`&&n[this.opts.schemaId];!p.has(r)&&i&&(t=(0,u.resolveUrl)(this.opts.uriResolver,t,i))}let i;if(typeof n!=`boolean`&&n.$ref&&!(0,d.schemaHasRulesButRef)(n,this.RULES)){let e=(0,u.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=resolveSchema.call(this,r,e)}let{schemaId:a}=this.opts;if(i||=new SchemaEnv({schema:n,schemaId:a,root:r,baseId:t}),i.schema!==i.root.schema)return i}}));export default require_compile();export{require_compile};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"./codegen/index.js";var require_names=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_codegen();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}}));export default require_names();export{require_names};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_resolve}from"./resolve.js";var require_ref_error=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_resolve();e.default=class extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}}));export default require_ref_error();export{require_ref_error};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_util}from"./util.js";import{require_fast_deep_equal}from"../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";import{require_json_schema_traverse}from"../../../../../json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js";var require_resolve=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let i=require_util(),a=require_fast_deep_equal(),o=require_json_schema_traverse(),s=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function inlineRef(e,t=!0){return typeof e==`boolean`?!0:t===!0?!hasRef(e):t?countKeys(e)<=t:!1}e.inlineRef=inlineRef;let c=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function hasRef(e){for(let t in e){if(c.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(hasRef)||typeof n==`object`&&hasRef(n))return!0}return!1}function countKeys(e){let t=0;for(let n in e)if(n===`$ref`||(t++,!s.has(n)&&(typeof e[n]==`object`&&(0,i.eachItem)(e[n],e=>t+=countKeys(e)),t===1/0)))return 1/0;return t}function getFullPath(e,t=``,n){return n!==!1&&(t=normalizeId(t)),_getFullPath(e,e.parse(t))}e.getFullPath=getFullPath;function _getFullPath(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=_getFullPath;let l=/#\/?$/;function normalizeId(e){return e?e.replace(l,``):``}e.normalizeId=normalizeId;function resolveUrl(e,t,n){return n=normalizeId(n),e.resolve(t,n)}e.resolveUrl=resolveUrl;let u=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(e,t){if(typeof e==`boolean`)return{};let{schemaId:n,uriResolver:r}=this.opts,i=normalizeId(e[n]||t),s={"":i},c=getFullPath(r,i,!1),l={},d=new Set;return o(e,{allKeys:!0},(e,t,r,i)=>{if(i===void 0)return;let a=c+t,o=s[i];typeof e[n]==`string`&&(o=addRef.call(this,e[n])),addAnchor.call(this,e.$anchor),addAnchor.call(this,e.$dynamicAnchor),s[t]=o;function addRef(t){let n=this.opts.uriResolver.resolve;if(t=normalizeId(o?n(o,t):t),d.has(t))throw ambiguos(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?checkAmbiguosRef(e,r.schema,t):t!==normalizeId(a)&&(t[0]===`#`?(checkAmbiguosRef(e,l[t],t),l[t]=e):this.refs[t]=a),t}function addAnchor(e){if(typeof e==`string`){if(!u.test(e))throw Error(`invalid anchor "${e}"`);addRef.call(this,`#${e}`)}}}),l;function checkAmbiguosRef(e,t,n){if(t!==void 0&&!a(e,t))throw ambiguos(n)}function ambiguos(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=getSchemaRefs}));export default require_resolve();export{require_resolve};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_rules=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function isJSONType(e){return typeof e==`string`&&t.has(e)}e.isJSONType=isJSONType;function getRules(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=getRules}));export default require_rules();export{require_rules};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_code}from"./codegen/code.js";import{require_codegen}from"./codegen/index.js";var require_util=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let r=require_codegen(),i=require_code();function toHash(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=toHash;function alwaysValidSchema(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0?!0:(checkUnknownRules(e,t),!schemaHasRules(t,e.self.RULES.all))}e.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||checkStrictMode(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=checkUnknownRules;function schemaHasRules(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:e,schemaPath:t},n,i,a){if(!a){if(typeof n==`number`||typeof n==`boolean`)return n;if(typeof n==`string`)return(0,r._)`${n}`}return(0,r._)`${e}${t}${(0,r.getProperty)(i)}`}e.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}e.unescapeFragment=unescapeFragment;function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}e.escapeFragment=escapeFragment;function escapeJsonPointer(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=unescapeJsonPointer;function eachItem(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=eachItem;function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof r.Name?(o instanceof r.Name?e(a,o,s):t(a,o,s),s):o instanceof r.Name?(t(a,s,o),o):n(o,s);return c===r.Name&&!(l instanceof r.Name)?i(a,l):l}}e.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if((0,r._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,r._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,r._)`${n} || {}`).code((0,r._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,r._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,r._)`${n} || {}`),setEvaluated(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,n)=>e.if((0,r._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,r._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,r._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,r._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function evaluatedPropsToName(e,t){if(t===!0)return e.var(`props`,!0);let n=e.var(`props`,(0,r._)`{}`);return t!==void 0&&setEvaluated(e,n,t),n}e.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(e,t,n){Object.keys(n).forEach(n=>e.assign((0,r._)`${t}${(0,r.getProperty)(n)}`,!0))}e.setEvaluated=setEvaluated;let a={};function useFunc(e,t){return e.scopeValue(`func`,{ref:t,code:a[t.code]||(a[t.code]=new i._Code(t.code))})}e.useFunc=useFunc;var o;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(o||(e.Type=o={}));function getErrorPath(e,t,n){if(e instanceof r.Name){let i=t===o.Num;return n?i?(0,r._)`"[" + ${e} + "]"`:(0,r._)`"['" + ${e} + "']"`:i?(0,r._)`"/" + ${e}`:(0,r._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():`/`+escapeJsonPointer(e)}e.getErrorPath=getErrorPath;function checkStrictMode(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=checkStrictMode}));export default require_util();export{require_util};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";var require_applicability=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:e,self:t},n){let r=t.RULES.types[n];return r&&r!==!0&&shouldUseGroup(e,r)}e.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(e,t){return t.rules.some(t=>shouldUseRule(e,t))}e.shouldUseGroup=shouldUseGroup;function shouldUseRule(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=shouldUseRule}));export default require_applicability();export{require_applicability};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_names}from"../names.js";import{require_errors}from"../errors.js";var require_boolSchema=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let i=require_errors(),a=require_codegen(),o=require_names(),s={message:`boolean schema is false`};function topBoolOrEmptySchema(e){let{gen:t,schema:n,validateName:r}=e;n===!1?falseSchemaError(e,!1):typeof n==`object`&&n.$async===!0?t.return(o.default.data):(t.assign((0,a._)`${r}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),falseSchemaError(e)):n.var(t,!0)}e.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(e,t){let{gen:n,data:r}=e,a={gen:n,keyword:`false schema`,data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,i.reportError)(a,s,void 0,t)}}));export default require_boolSchema();export{require_boolSchema};
@@ -0,0 +1,4 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_util}from"../util.js";import{require_errors}from"../errors.js";import{require_rules}from"../rules.js";import{require_applicability}from"./applicability.js";var require_dataType=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let o=require_rules(),s=require_applicability(),c=require_errors(),l=require_codegen(),u=require_util();var d;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(d||(e.DataType=d={}));function getSchemaTypes(e){let t=getJSONTypes(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=getSchemaTypes;function getJSONTypes(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(o.isJSONType))return t;throw Error(`type must be JSONType or JSONType[]: `+t.join(`,`))}e.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(e,t){let{gen:n,data:r,opts:i}=e,a=coerceToTypes(t,i.coerceTypes),o=t.length>0&&!(a.length===0&&t.length===1&&(0,s.schemaHasRulesForType)(e,t[0]));if(o){let o=checkDataTypes(t,r,i.strictNumbers,d.Wrong);n.if(o,()=>{a.length?coerceData(e,t,a):reportTypeError(e)})}return o}e.coerceAndCheckDataType=coerceAndCheckDataType;let f=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function coerceToTypes(e,t){return t?e.filter(e=>f.has(e)||t===`array`&&e===`array`):[]}function coerceData(e,t,n){let{gen:r,data:i,opts:a}=e,o=r.let(`dataType`,(0,l._)`typeof ${i}`),s=r.let(`coerced`,(0,l._)`undefined`);a.coerceTypes===`array`&&r.if((0,l._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,l._)`${i}[0]`).assign(o,(0,l._)`typeof ${i}`).if(checkDataTypes(t,i,a.strictNumbers),()=>r.assign(s,i))),r.if((0,l._)`${s} !== undefined`);for(let e of n)(f.has(e)||e===`array`&&a.coerceTypes===`array`)&&coerceSpecificType(e);r.else(),reportTypeError(e),r.endIf(),r.if((0,l._)`${s} !== undefined`,()=>{r.assign(i,s),assignParentData(e,s)});function coerceSpecificType(e){switch(e){case`string`:r.elseIf((0,l._)`${o} == "number" || ${o} == "boolean"`).assign(s,(0,l._)`"" + ${i}`).elseIf((0,l._)`${i} === null`).assign(s,(0,l._)`""`);return;case`number`:r.elseIf((0,l._)`${o} == "boolean" || ${i} === null
2
+ || (${o} == "string" && ${i} && ${i} == +${i})`).assign(s,(0,l._)`+${i}`);return;case`integer`:r.elseIf((0,l._)`${o} === "boolean" || ${i} === null
3
+ || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(s,(0,l._)`+${i}`);return;case`boolean`:r.elseIf((0,l._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(s,!1).elseIf((0,l._)`${i} === "true" || ${i} === 1`).assign(s,!0);return;case`null`:r.elseIf((0,l._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(s,null);return;case`array`:r.elseIf((0,l._)`${o} === "string" || ${o} === "number"
4
+ || ${o} === "boolean" || ${i} === null`).assign(s,(0,l._)`[${i}]`)}}}function assignParentData({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,l._)`${t} !== undefined`,()=>e.assign((0,l._)`${t}[${n}]`,r))}function checkDataType(e,t,n,r=d.Correct){let i=r===d.Correct?l.operators.EQ:l.operators.NEQ,a;switch(e){case`null`:return(0,l._)`${t} ${i} null`;case`array`:a=(0,l._)`Array.isArray(${t})`;break;case`object`:a=(0,l._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:a=numCond((0,l._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:a=numCond();break;default:return(0,l._)`typeof ${t} ${i} ${e}`}return r===d.Correct?a:(0,l.not)(a);function numCond(e=l.nil){return(0,l.and)((0,l._)`typeof ${t} == "number"`,e,n?(0,l._)`isFinite(${t})`:l.nil)}}e.checkDataType=checkDataType;function checkDataTypes(e,t,n,r){if(e.length===1)return checkDataType(e[0],t,n,r);let i,a=(0,u.toHash)(e);if(a.array&&a.object){let e=(0,l._)`typeof ${t} != "object"`;i=a.null?e:(0,l._)`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else i=l.nil;a.number&&delete a.integer;for(let e in a)i=(0,l.and)(i,checkDataType(e,t,n,r));return i}e.checkDataTypes=checkDataTypes;let p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,l._)`{type: ${e}}`:(0,l._)`{type: ${t}}`};function reportTypeError(e){let t=getTypeErrorContext(e);(0,c.reportError)(t,p)}e.reportTypeError=reportTypeError;function getTypeErrorContext(e){let{gen:t,data:n,schema:r}=e,i=(0,u.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}}));export default require_dataType();export{require_dataType};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_util}from"../util.js";var require_defaults=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;let r=require_codegen(),i=require_util();function assignDefaults(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)assignDefault(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>assignDefault(e,n,t.default))}e.assignDefaults=assignDefaults;function assignDefault(e,t,n){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(n===void 0)return;let l=(0,r._)`${s}${(0,r.getProperty)(t)}`;if(o){(0,i.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,r._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,r._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,r._)`${l} = ${(0,r.stringify)(n)}`)}}));export default require_defaults();export{require_defaults};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_util}from"../util.js";import{require_names}from"../names.js";import{require_errors}from"../errors.js";import{require_boolSchema}from"./boolSchema.js";import{require_applicability}from"./applicability.js";import{require_dataType}from"./dataType.js";import{require_defaults}from"./defaults.js";import{require_keyword}from"./keyword.js";import{require_subschema}from"./subschema.js";import{require_resolve}from"../resolve.js";var require_validate=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let d=require_boolSchema(),f=require_dataType(),p=require_applicability(),m=require_dataType(),h=require_defaults(),g=require_keyword(),_=require_subschema(),v=require_codegen(),y=require_names(),b=require_resolve(),x=require_util(),S=require_errors();function validateFunctionCode(e){if(isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))){topSchemaObjCode(e);return}validateFunction(e,()=>(0,d.topBoolOrEmptySchema)(e))}e.validateFunctionCode=validateFunctionCode;function validateFunction({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,v._)`${y.default.data}, ${y.default.valCxt}`,r.$async,()=>{e.code((0,v._)`"use strict"; ${funcSourceUrl(n,i)}`),destructureValCxtES5(e,i),e.code(a)}):e.func(t,(0,v._)`${y.default.data}, ${destructureValCxt(i)}`,r.$async,()=>e.code(funcSourceUrl(n,i)).code(a))}function destructureValCxt(e){return(0,v._)`{${y.default.instancePath}="", ${y.default.parentData}, ${y.default.parentDataProperty}, ${y.default.rootData}=${y.default.data}${e.dynamicRef?(0,v._)`, ${y.default.dynamicAnchors}={}`:v.nil}}={}`}function destructureValCxtES5(e,t){e.if(y.default.valCxt,()=>{e.var(y.default.instancePath,(0,v._)`${y.default.valCxt}.${y.default.instancePath}`),e.var(y.default.parentData,(0,v._)`${y.default.valCxt}.${y.default.parentData}`),e.var(y.default.parentDataProperty,(0,v._)`${y.default.valCxt}.${y.default.parentDataProperty}`),e.var(y.default.rootData,(0,v._)`${y.default.valCxt}.${y.default.rootData}`),t.dynamicRef&&e.var(y.default.dynamicAnchors,(0,v._)`${y.default.valCxt}.${y.default.dynamicAnchors}`)},()=>{e.var(y.default.instancePath,(0,v._)`""`),e.var(y.default.parentData,(0,v._)`undefined`),e.var(y.default.parentDataProperty,(0,v._)`undefined`),e.var(y.default.rootData,y.default.data),t.dynamicRef&&e.var(y.default.dynamicAnchors,(0,v._)`{}`)})}function topSchemaObjCode(e){let{schema:t,opts:n,gen:r}=e;validateFunction(e,()=>{n.$comment&&t.$comment&&commentKeyword(e),checkNoDefault(e),r.let(y.default.vErrors,null),r.let(y.default.errors,0),n.unevaluated&&resetEvaluated(e),typeAndKeywords(e),returnResults(e)})}function resetEvaluated(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,v._)`${n}.evaluated`),t.if((0,v._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,v._)`${e.evaluated}.props`,(0,v._)`undefined`)),t.if((0,v._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,v._)`${e.evaluated}.items`,(0,v._)`undefined`))}function funcSourceUrl(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,v._)`/*# sourceURL=${n} */`:v.nil}function subschemaCode(e,t){if(isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))){subSchemaObjCode(e,t);return}(0,d.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function isSchemaObj(e){return typeof e.schema!=`boolean`}function subSchemaObjCode(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&commentKeyword(e),updateContext(e),checkAsyncSchema(e);let a=r.const(`_errs`,y.default.errors);typeAndKeywords(e,a),r.var(t,(0,v._)`${a} === ${y.default.errors}`)}function checkKeywords(e){(0,x.checkUnknownRules)(e),checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],!1,t);let n=(0,f.getSchemaTypes)(e.schema);schemaKeywords(e,n,!(0,f.coerceAndCheckDataType)(e,n),t)}function checkRefsAndKeywords(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,x.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function checkNoDefault(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,x.checkStrictMode)(e,`default is ignored in the schema root`)}function updateContext(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,b.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function commentKeyword({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,v._)`${y.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,v.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,v._)`${y.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function returnResults(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,v._)`${y.default.errors} === 0`,()=>t.return(y.default.data),()=>t.throw((0,v._)`new ${i}(${y.default.vErrors})`)):(t.assign((0,v._)`${r}.errors`,y.default.vErrors),a.unevaluated&&assignEvaluated(e),t.return((0,v._)`${y.default.errors} === 0`))}function assignEvaluated({gen:e,evaluated:t,props:n,items:r}){n instanceof v.Name&&e.assign((0,v._)`${t}.props`,n),r instanceof v.Name&&e.assign((0,v._)`${t}.items`,r)}function schemaKeywords(e,t,n,r){let{gen:i,schema:a,data:o,allErrors:s,opts:c,self:l}=e,{RULES:u}=l;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,x.schemaHasRulesButRef)(a,u))){i.block(()=>keywordCode(e,`$ref`,u.all.$ref.definition));return}c.jtd||checkStrictTypes(e,t),i.block(()=>{for(let e of u.rules)groupKeywords(e);groupKeywords(u.post)});function groupKeywords(l){(0,p.shouldUseGroup)(a,l)&&(l.type?(i.if((0,m.checkDataType)(l.type,o,c.strictNumbers)),iterateKeywords(e,l),t.length===1&&t[0]===l.type&&n&&(i.else(),(0,m.reportTypeError)(e)),i.endIf()):iterateKeywords(e,l),s||i.if((0,v._)`${y.default.errors} === ${r||0}`))}}function iterateKeywords(e,t){let{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,h.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,p.shouldUseRule)(r,n)&&keywordCode(e,n.keyword,n.definition,t.type)})}function checkStrictTypes(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(checkContextTypes(e,t),e.opts.allowUnionTypes||checkMultipleTypes(e,t),checkKeywordTypes(e,e.dataTypes))}function checkContextTypes(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{includesType(e.dataTypes,t)||strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),narrowSchemaTypes(e,t)}}function checkMultipleTypes(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&strictTypesError(e,`use allowUnionTypes to allow union type keyword`)}function checkKeywordTypes(e,t){let n=e.self.RULES.all;for(let r in n){let i=n[r];if(typeof i==`object`&&(0,p.shouldUseRule)(e.schema,i)){let{type:n}=i.definition;n.length&&!n.some(e=>hasApplicableType(t,e))&&strictTypesError(e,`missing type "${n.join(`,`)}" for keyword "${r}"`)}}}function hasApplicableType(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function includesType(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function narrowSchemaTypes(e,t){let n=[];for(let r of e.dataTypes)includesType(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function strictTypesError(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,x.checkStrictMode)(e,t,e.opts.strictTypes)}var KeywordCxt=class{constructor(e,t,n){if((0,g.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,x.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,getData(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,g.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,y.default.errors))}result(e,t,n){this.failResult((0,v.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,v.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,v._)`${t} !== undefined && (${(0,v.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?S.reportExtraError:S.reportError)(this,this.def.error,t)}$dataError(){(0,S.reportError)(this,this.def.$dataError||S.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,S.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=v.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=v.nil,t=v.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,v.or)((0,v._)`${r} === undefined`,t)),e!==v.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==v.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,v.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(n.length){if(!(t instanceof v.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,v._)`${(0,m.checkDataTypes)(e,t,i.opts.strictNumbers,m.DataType.Wrong)}`}return v.nil}function invalid$DataSchema(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,v._)`!${n}(${t})`}return v.nil}}subschema(e,t){let n=(0,_.getSubschema)(this.it,e);(0,_.extendSubschemaData)(n,this.it,e),(0,_.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return subschemaCode(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=x.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=x.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,v.Name)),!0}};e.KeywordCxt=KeywordCxt;function keywordCode(e,t,n,r){let i=new KeywordCxt(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,g.funcKeywordCode)(i,n):`macro`in n?(0,g.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,g.funcKeywordCode)(i,n)}let C=/^\/(?:[^~]|~0|~1)*$/,w=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return y.default.rootData;if(e[0]===`/`){if(!C.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=y.default.rootData}else{let o=w.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(errorMsg(`property/index`,s));return r[t-s]}if(s>t)throw Error(errorMsg(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,v._)`${a}${(0,v.getProperty)((0,x.unescapeJsonPointer)(e))}`,o=(0,v._)`${o} && ${a}`);return o;function errorMsg(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=getData}));export default require_validate();export{require_validate};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_names}from"../names.js";import{require_errors}from"../errors.js";import{require_code}from"../../vocabularies/code.js";var require_keyword=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let a=require_codegen(),o=require_names(),s=require_code(),c=require_errors();function macroKeywordCode(e,t){let{gen:n,keyword:r,schema:i,parentSchema:o,it:s}=e,c=t.macro.call(s.self,i,o,s),l=useKeyword(n,r,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let u=n.name(`valid`);e.subschema({schema:c,schemaPath:a.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}e.macroKeywordCode=macroKeywordCode;function funcKeywordCode(e,t){let{gen:n,keyword:r,schema:i,parentSchema:c,$data:l,it:u}=e;checkAsyncKeyword(u,t);let d=useKeyword(n,r,!l&&t.compile?t.compile.call(u.self,i,c,u):t.validate),f=n.let(`valid`);e.block$data(f,validateKeyword),e.ok(t.valid??f);function validateKeyword(){if(t.errors===!1)assignValid(),t.modifying&&modifyData(e),reportErrs(()=>e.error());else{let n=t.async?validateAsync():validateSync();t.modifying&&modifyData(e),reportErrs(()=>addErrs(e,n))}}function validateAsync(){let e=n.let(`ruleErrs`,null);return n.try(()=>assignValid((0,a._)`await `),t=>n.assign(f,!1).if((0,a._)`${t} instanceof ${u.ValidationError}`,()=>n.assign(e,(0,a._)`${t}.errors`),()=>n.throw(t))),e}function validateSync(){let e=(0,a._)`${d}.errors`;return n.assign(e,null),assignValid(a.nil),e}function assignValid(r=t.async?(0,a._)`await `:a.nil){let i=u.opts.passContext?o.default.this:o.default.self,c=!(`compile`in t&&!l||t.schema===!1);n.assign(f,(0,a._)`${r}${(0,s.callValidateCode)(e,d,i,c)}`,t.modifying)}function reportErrs(e){n.if((0,a.not)(t.valid??f),e)}}e.funcKeywordCode=funcKeywordCode;function modifyData(e){let{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,a._)`${r.parentData}[${r.parentDataProperty}]`))}function addErrs(e,t){let{gen:n}=e;n.if((0,a._)`Array.isArray(${t})`,()=>{n.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`),(0,c.extendErrors)(e)},()=>e.error())}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function useKeyword(e,t,n){if(n===void 0)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue(`keyword`,typeof n==`function`?{ref:n}:{ref:n,code:(0,a.stringify)(n)})}function validSchemaType(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=validSchemaType;function validateKeywordUsage({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=validateKeywordUsage}));export default require_keyword();export{require_keyword};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../codegen/index.js";import{require_util}from"../util.js";var require_subschema=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let r=require_codegen(),i=require_util();function getSubschema(e,{keyword:t,schemaProp:n,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(t!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(t!==void 0){let a=e.schema[t];return n===void 0?{schema:a,schemaPath:(0,r._)`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[n],schemaPath:(0,r._)`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=getSubschema;function extendSubschemaData(e,t,{dataProp:n,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&n!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=t;if(n!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=t;dataContextProps(l.let(`data`,(0,r._)`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=(0,r.str)`${o}${(0,i.getErrorPath)(n,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,r._)`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(dataContextProps(o instanceof r.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function dataContextProps(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}}e.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=extendSubschemaMode}));export default require_subschema();export{require_subschema};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"./compile/codegen/index.js";import{require_util}from"./compile/util.js";import{require_rules}from"./compile/rules.js";import{require_dataType}from"./compile/validate/dataType.js";import{require_resolve}from"./compile/resolve.js";import{require_validate}from"./compile/validate/index.js";import{require_validation_error}from"./runtime/validation_error.js";import{require_ref_error}from"./compile/ref_error.js";import{require_compile}from"./compile/index.js";import{require_data}from"./refs/data.js";import{require_uri}from"./runtime/uri.js";var require_core=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var l=require_validate();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=require_codegen();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});let d=require_validation_error(),f=require_ref_error(),p=require_rules(),m=require_compile(),h=require_codegen(),g=require_resolve(),_=require_dataType(),v=require_util(),y=require_data(),b=require_uri(),defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code=`new RegExp`;let x=[`removeAdditional`,`useDefaults`,`coerceTypes`],S=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),C={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},w={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`};function requiredOptions(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??defaultRegExp,a=e.uriResolver??b.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??200,loopEnum:e.loopEnum??200,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var Ajv=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...requiredOptions(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new h.ValueScope({scope:{},prefixes:S,es5:t,lines:n}),this.logger=getLogger(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,p.getRules)(),checkOptions.call(this,C,e,`NOT SUPPORTED`),checkOptions.call(this,w,e,`DEPRECATED`,`warn`),this._metaOpts=getMetaSchemaOptions.call(this),e.formats&&addInitialFormats.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&addInitialKeywords.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),addInitialSchemas.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=y;n===`id`&&(r={...y},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||_compileAsync.call(this,n)}async function loadMetaSchema(e){e&&!this.getSchema(e)&&await runCompileAsync.call(this,{$ref:e},!0)}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof f.default))throw t;return checkLoaded.call(this,t),await loadMissingSchema.call(this,t.missingSchema),_compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function loadMissingSchema(e){let n=await _loadSchema.call(this,e);this.refs[e]||await loadMetaSchema.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function _loadSchema(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,g.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=getSchEnv.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new m.SchemaEnv({schema:{},schemaId:n});if(t=m.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=getSchEnv.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,g.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(checkKeyword.call(this,n,t),!t)return(0,v.eachItem)(n,e=>addRule.call(this,e)),this;keywordMetaschema.call(this,t);let r={...t,type:(0,_.getJSONTypes)(t.type),schemaType:(0,_.getJSONTypes)(t.schemaType)};return(0,v.eachItem)(n,r.type.length===0?e=>addRule.call(this,e,r):e=>r.type.forEach(t=>addRule.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=schemaOrData(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e==`object`)a=e[o];else{if(this.opts.jtd)throw Error(`schema must be object`);if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`)}let s=this._cache.get(e);if(s!==void 0)return s;n=(0,g.normalizeId)(a||n);let c=g.getSchemaRefs.call(this,e,n);return s=new m.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):m.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{m.compileSchema.call(this,e)}finally{this.opts=t}}};Ajv.ValidationError=d.default,Ajv.MissingRefError=f.default,e.default=Ajv;function checkOptions(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function getSchEnv(e){return e=(0,g.normalizeId)(e),this.schemas[e]||this.refs[e]}function addInitialSchemas(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let t in e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function getMetaSchemaOptions(){let e={...this.opts};for(let t of x)delete e[t];return e}let T={log(){},warn(){},error(){}};function getLogger(e){if(e===!1)return T;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}let E=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){let{RULES:n}=this;if((0,v.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!E.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function addRule(e,t,n){let r=t?.post;if(n&&r)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:i}=this,a=r?i.post:i.rules.find(({type:e})=>e===n);if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,_.getJSONTypes)(t.type),schemaType:(0,_.getJSONTypes)(t.schemaType)}};t.before?addBeforeRule.call(this,a,o,t.before):a.rules.push(o),i.all[e]=o,t.implements?.forEach(e=>this.addKeyword(e))}function addBeforeRule(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function keywordMetaschema(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=schemaOrData(t)),e.validateSchema=this.compile(t,!0))}let D={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function schemaOrData(e){return{anyOf:[e,D]}}}));export default require_core();export{require_core};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_data=__commonJSMin(((e,t)=>{t.exports={$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON AnySchema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}}));export default require_data();export{require_data};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_json_schema_draft_07=__commonJSMin(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}}));export default require_json_schema_draft_07();export{require_json_schema_draft_07};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_fast_deep_equal}from"../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";var require_equal=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_fast_deep_equal();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t}));export default require_equal();export{require_equal};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_ucs2length=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});function ucs2length(e){let t=e.length,n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return n}e.default=ucs2length,ucs2length.code=`require("ajv/dist/runtime/ucs2length").default`}));export default require_ucs2length();export{require_ucs2length};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_fast_uri}from"../../../../../fast-uri@3.1.2/node_modules/fast-uri/index.js";var require_uri=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_fast_uri();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t}));export default require_uri();export{require_uri};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_validation_error=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}}));export default require_validation_error();export{require_validation_error};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";var require_additionalItems=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;let r=require_codegen(),i=require_util(),a={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,r.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,r._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,i.checkStrictMode)(n,`"additionalItems" is ignored when "items" is not an array of schemas`);return}validateAdditionalItems(e,r)}};function validateAdditionalItems(e,t){let{gen:n,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=n.const(`len`,(0,r._)`${o}.length`);if(a===!1)e.setParams({len:t.length}),e.pass((0,r._)`${l} <= ${t.length}`);else if(typeof a==`object`&&!(0,i.alwaysValidSchema)(c,a)){let i=n.var(`valid`,(0,r._)`${l} <= ${t.length}`);n.if((0,r.not)(i),()=>validateItems(i)),e.ok(i)}function validateItems(a){n.forRange(`i`,t.length,l,t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},a),c.allErrors||n.if((0,r.not)(a),()=>n.break())})}}e.validateAdditionalItems=validateAdditionalItems,e.default=a}));export default require_additionalItems();export{require_additionalItems};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_names}from"../../compile/names.js";import{require_code}from"../code.js";var require_additionalProperties=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let a=require_code(),o=require_codegen(),s=require_names(),c=require_util();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,o._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:n,parentSchema:r,data:i,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,c.alwaysValidSchema)(u,n))return;let p=(0,a.allSchemaProperties)(r.properties),m=(0,a.allSchemaProperties)(r.patternProperties);checkAdditionalProperties(),e.ok((0,o._)`${l} === ${s.default.errors}`);function checkAdditionalProperties(){t.forIn(`key`,i,e=>{!p.length&&!m.length?additionalPropertyCode(e):t.if(isAdditional(e),()=>additionalPropertyCode(e))})}function isAdditional(n){let i;if(p.length>8){let e=(0,c.schemaRefOrVal)(u,r.properties,`properties`);i=(0,a.isOwnProperty)(t,e,n)}else i=p.length?(0,o.or)(...p.map(e=>(0,o._)`${n} === ${e}`)):o.nil;return m.length&&(i=(0,o.or)(i,...m.map(t=>(0,o._)`${(0,a.usePattern)(e,t)}.test(${n})`))),(0,o.not)(i)}function deleteAdditional(e){t.code((0,o._)`delete ${i}[${e}]`)}function additionalPropertyCode(r){if(f.removeAdditional===`all`||f.removeAdditional&&n===!1){deleteAdditional(r);return}if(n===!1){e.setParams({additionalProperty:r}),e.error(),d||t.break();return}if(typeof n==`object`&&!(0,c.alwaysValidSchema)(u,n)){let n=t.name(`valid`);f.removeAdditional===`failing`?(applyAdditionalSchema(r,n,!1),t.if((0,o.not)(n),()=>{e.reset(),deleteAdditional(r)})):(applyAdditionalSchema(r,n),d||t.if((0,o.not)(n),()=>t.break()))}}function applyAdditionalSchema(t,n,r){let i={keyword:`additionalProperties`,dataProp:t,dataPropType:c.Type.Str};r===!1&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}}}}));export default require_additionalProperties();export{require_additionalProperties};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_util}from"../../compile/util.js";var require_allOf=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_util();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=t.name(`valid`);r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}}));export default require_allOf();export{require_allOf};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_code}from"../code.js";var require_anyOf=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:require_code().validateUnion,error:{message:`must match a schema in anyOf`}}}));export default require_anyOf();export{require_anyOf};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";var require_contains=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let r=require_codegen(),i=require_util();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:t}})=>t===void 0?(0,r.str)`must contain at least ${e} valid item(s)`:(0,r.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,r._)`{minContains: ${e}}`:(0,r._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let{gen:t,schema:n,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=t.const(`len`,(0,r._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,i.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,i.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,i.alwaysValidSchema)(s,n)){let t=(0,r._)`${f} >= ${c}`;l!==void 0&&(t=(0,r._)`${t} && ${f} <= ${l}`),e.pass(t);return}s.items=!0;let p=t.name(`valid`);l===void 0&&c===1?validateItems(p,()=>t.if(p,()=>t.break())):c===0?(t.let(p,!0),l!==void 0&&t.if((0,r._)`${o}.length > 0`,validateItemsWithCount)):(t.let(p,!1),validateItemsWithCount()),e.result(p,()=>e.reset());function validateItemsWithCount(){let e=t.name(`_valid`),n=t.let(`count`,0);validateItems(e,()=>t.if(e,()=>checkLimits(n)))}function validateItems(n,r){t.forRange(`i`,0,f,t=>{e.subschema({keyword:`contains`,dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()})}function checkLimits(e){t.code((0,r._)`${e}++`),l===void 0?t.if((0,r._)`${e} >= ${c}`,()=>t.assign(p,!0).break()):(t.if((0,r._)`${e} > ${l}`,()=>t.assign(p,!1).break()),c===1?t.assign(p,!0):t.if((0,r._)`${e} >= ${c}`,()=>t.assign(p,!0)))}}}}));export default require_contains();export{require_contains};
@@ -0,0 +1,4 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_code}from"../code.js";var require_dependencies=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let i=require_codegen(),a=require_util(),o=require_code();e.error={message:({params:{property:e,depsCount:t,deps:n}})=>{let r=t===1?`property`:`properties`;return(0,i.str)`must have ${r} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:r}})=>(0,i._)`{property: ${e},
2
+ missingProperty: ${r},
3
+ depsCount: ${t},
4
+ deps: ${n}}`};let s={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=splitDependencies(e);validatePropertyDeps(e,t),validateSchemaDeps(e,n)}};function splitDependencies({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function validatePropertyDeps(e,t=e.schema){let{gen:n,data:r,it:a}=e;if(Object.keys(t).length===0)return;let s=n.let(`missing`);for(let c in t){let l=t[c];if(l.length===0)continue;let u=(0,o.propertyInData)(n,r,c,a.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),a.allErrors?n.if(u,()=>{for(let t of l)(0,o.checkReportMissingProp)(e,t)}):(n.if((0,i._)`${u} && (${(0,o.checkMissingProp)(e,l,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}e.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(e,t=e.schema){let{gen:n,data:r,keyword:i,it:s}=e,c=n.name(`valid`);for(let l in t)(0,a.alwaysValidSchema)(s,t[l])||(n.if((0,o.propertyInData)(n,r,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:i,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>n.var(c,!0)),e.ok(c))}e.validateSchemaDeps=validateSchemaDeps,e.default=s}));export default require_dependencies();export{require_dependencies};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";var require_if=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let r=require_codegen(),i=require_util(),a={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,r.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,r._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:t,parentSchema:n,it:a}=e;n.then===void 0&&n.else===void 0&&(0,i.checkStrictMode)(a,`"if" without "then" and "else" is ignored`);let o=hasSchema(a,`then`),s=hasSchema(a,`else`);if(!o&&!s)return;let c=t.let(`valid`,!0),l=t.name(`_valid`);if(validateIf(),e.reset(),o&&s){let n=t.let(`ifClause`);e.setParams({ifClause:n}),t.if(l,validateClause(`then`,n),validateClause(`else`,n))}else o?t.if(l,validateClause(`then`)):t.if((0,r.not)(l),validateClause(`else`));e.pass(c,()=>e.error(!0));function validateIf(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}function validateClause(n,i){return()=>{let a=e.subschema({keyword:n},l);t.assign(c,l),e.mergeValidEvaluated(a,c),i?t.assign(i,(0,r._)`${n}`):e.setParams({ifClause:n})}}}};function hasSchema(e,t){let n=e.schema[t];return n!==void 0&&!(0,i.alwaysValidSchema)(e,n)}e.default=a}));export default require_if();export{require_if};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_additionalItems}from"./additionalItems.js";import{require_items}from"./items.js";import{require_prefixItems}from"./prefixItems.js";import{require_items2020}from"./items2020.js";import{require_contains}from"./contains.js";import{require_dependencies}from"./dependencies.js";import{require_propertyNames}from"./propertyNames.js";import{require_additionalProperties}from"./additionalProperties.js";import{require_properties}from"./properties.js";import{require_patternProperties}from"./patternProperties.js";import{require_not}from"./not.js";import{require_anyOf}from"./anyOf.js";import{require_oneOf}from"./oneOf.js";import{require_allOf}from"./allOf.js";import{require_if}from"./if.js";import{require_thenElse}from"./thenElse.js";var require_applicator=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_additionalItems(),r=require_prefixItems(),i=require_items(),a=require_items2020(),o=require_contains(),s=require_dependencies(),c=require_propertyNames(),l=require_additionalProperties(),u=require_properties(),d=require_patternProperties(),f=require_not(),p=require_anyOf(),m=require_oneOf(),h=require_allOf(),g=require_if(),_=require_thenElse();function getApplicator(e=!1){let t=[f.default,p.default,m.default,h.default,g.default,_.default,c.default,l.default,s.default,u.default,d.default];return e?t.push(r.default,a.default):t.push(n.default,i.default),t.push(o.default),t}e.default=getApplicator}));export default require_applicator();export{require_applicator};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_code}from"../code.js";var require_items=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;let i=require_codegen(),a=require_util(),o=require_code(),s={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:n}=e;if(Array.isArray(t))return validateTuple(e,`additionalItems`,t);n.items=!0,!(0,a.alwaysValidSchema)(n,t)&&e.ok((0,o.validateArray)(e))}};function validateTuple(e,t,n=e.schema){let{gen:r,parentSchema:o,data:s,keyword:c,it:l}=e;checkStrictTuple(o),l.opts.unevaluated&&n.length&&l.items!==!0&&(l.items=a.mergeEvaluated.items(r,n.length,l.items));let u=r.name(`valid`),d=r.const(`len`,(0,i._)`${s}.length`);n.forEach((t,n)=>{(0,a.alwaysValidSchema)(l,t)||(r.if((0,i._)`${d} > ${n}`,()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},u)),e.ok(u))});function checkStrictTuple(e){let{opts:r,errSchemaPath:i}=l,o=n.length,s=o===e.minItems&&(o===e.maxItems||e[t]===!1);if(r.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,a.checkStrictMode)(l,e,r.strictTuples)}}}e.validateTuple=validateTuple,e.default=s}));export default require_items();export{require_items};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_code}from"../code.js";import{require_additionalItems}from"./additionalItems.js";var require_items2020=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let a=require_codegen(),o=require_util(),s=require_code(),c=require_additionalItems();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,a.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,a._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,o.alwaysValidSchema)(r,t)&&(i?(0,c.validateAdditionalItems)(e,i):e.ok((0,s.validateArray)(e)))}}}));export default require_items2020();export{require_items2020};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_util}from"../../compile/util.js";var require_not=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_util();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r)){e.fail();return}let a=t.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}}));export default require_not();export{require_not};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";var require_oneOf=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let r=require_codegen(),i=require_util();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,r._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:n,parentSchema:a,it:o}=e;if(!Array.isArray(n))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=n,c=t.let(`valid`,!1),l=t.let(`passing`,null),u=t.name(`_valid`);e.setParams({passing:l}),t.block(validateOneOf),e.result(c,()=>e.reset(),()=>e.error(!0));function validateOneOf(){s.forEach((n,a)=>{let s;(0,i.alwaysValidSchema)(o,n)?t.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&t.if((0,r._)`${u} && ${c}`).assign(c,!1).assign(l,(0,r._)`[${l}, ${a}]`).else(),t.if(u,()=>{t.assign(c,!0),t.assign(l,a),s&&e.mergeEvaluated(s,r.Name)})})}}}}));export default require_oneOf();export{require_oneOf};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_code}from"../code.js";var require_patternProperties=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let i=require_code(),a=require_codegen(),o=require_util(),s=require_util();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:t,schema:n,data:r,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,i.allSchemaProperties)(n),f=d.filter(e=>(0,o.alwaysValidSchema)(l,n[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=t.name(`valid`);l.props!==!0&&!(l.props instanceof a.Name)&&(l.props=(0,s.evaluatedPropsToName)(t,l.props));let{props:h}=l;validatePatternProperties();function validatePatternProperties(){for(let e of d)p&&checkMatchingProperties(e),l.allErrors?validateProperties(e):(t.var(m,!0),validateProperties(e),t.if(m))}function checkMatchingProperties(e){for(let t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function validateProperties(n){t.forIn(`key`,r,r=>{t.if((0,a._)`${(0,i.usePattern)(e,n)}.test(${r})`,()=>{let i=f.includes(n);i||e.subschema({keyword:`patternProperties`,schemaProp:n,dataProp:r,dataPropType:s.Type.Str},m),l.opts.unevaluated&&h!==!0?t.assign((0,a._)`${h}[${r}]`,!0):!i&&!l.allErrors&&t.if((0,a.not)(m),()=>t.break())})})}}}}));export default require_patternProperties();export{require_patternProperties};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_items}from"./items.js";var require_prefixItems=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_items();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}}));export default require_prefixItems();export{require_prefixItems};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_util}from"../../compile/util.js";import{require_code}from"../code.js";import{require_validate}from"../../compile/validate/index.js";import{require_additionalProperties}from"./additionalProperties.js";var require_properties=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let a=require_validate(),o=require_code(),s=require_util(),c=require_additionalProperties();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:t,schema:n,parentSchema:r,data:i,it:l}=e;l.opts.removeAdditional===`all`&&r.additionalProperties===void 0&&c.default.code(new a.KeywordCxt(l,c.default,`additionalProperties`));let u=(0,o.allSchemaProperties)(n);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=s.mergeEvaluated.props(t,(0,s.toHash)(u),l.props));let d=u.filter(e=>!(0,s.alwaysValidSchema)(l,n[e]));if(d.length===0)return;let f=t.name(`valid`);for(let n of d)hasDefault(n)?applyPropertySchema(n):(t.if((0,o.propertyInData)(t,i,n,l.opts.ownProperties)),applyPropertySchema(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function hasDefault(e){return l.opts.useDefaults&&!l.compositeRule&&n[e].default!==void 0}function applyPropertySchema(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}}));export default require_properties();export{require_properties};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";var require_propertyNames=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let r=require_codegen(),i=require_util();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,r._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:t,schema:n,data:a,it:o}=e;if((0,i.alwaysValidSchema)(o,n))return;let s=t.name(`valid`);t.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}}}));export default require_propertyNames();export{require_propertyNames};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_util}from"../../compile/util.js";var require_thenElse=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_util();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}}));export default require_thenElse();export{require_thenElse};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../compile/codegen/index.js";import{require_util}from"../compile/util.js";import{require_names}from"../compile/names.js";var require_code=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let i=require_codegen(),a=require_util(),o=require_names(),s=require_util();function checkReportMissingProp(e,t){let{gen:n,data:r,it:a}=e;n.if(noPropertyInData(n,r,t,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,i._)`${t}`},!0),e.error()})}e.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:e,data:t,it:{opts:n}},r,a){return(0,i.or)(...r.map(r=>(0,i.and)(noPropertyInData(e,t,r,n.ownProperties),(0,i._)`${a} = ${r}`)))}e.checkMissingProp=checkMissingProp;function reportMissingProp(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=reportMissingProp;function hasPropFunc(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,i._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=hasPropFunc;function isOwnProperty(e,t,n){return(0,i._)`${hasPropFunc(e)}.call(${t}, ${n})`}e.isOwnProperty=isOwnProperty;function propertyInData(e,t,n,r){let a=(0,i._)`${t}${(0,i.getProperty)(n)} !== undefined`;return r?(0,i._)`${a} && ${isOwnProperty(e,t,n)}`:a}e.propertyInData=propertyInData;function noPropertyInData(e,t,n,r){let a=(0,i._)`${t}${(0,i.getProperty)(n)} === undefined`;return r?(0,i.or)(a,(0,i.not)(isOwnProperty(e,t,n))):a}e.noPropertyInData=noPropertyInData;function allSchemaProperties(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=allSchemaProperties;function schemaProperties(e,t){return allSchemaProperties(t).filter(n=>!(0,a.alwaysValidSchema)(e,t[n]))}e.schemaProperties=schemaProperties;function callValidateCode({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:a,errorPath:s},it:c},l,u,d){let f=d?(0,i._)`${e}, ${t}, ${r}${a}`:t,p=[[o.default.instancePath,(0,i.strConcat)(o.default.instancePath,s)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);let m=(0,i._)`${f}, ${n.object(...p)}`;return u===i.nil?(0,i._)`${l}(${m})`:(0,i._)`${l}.call(${u}, ${m})`}e.callValidateCode=callValidateCode;let c=(0,i._)`new RegExp`;function usePattern({gen:e,it:{opts:t}},n){let r=t.unicodeRegExp?`u`:``,{regExp:a}=t.code,o=a(n,r);return e.scopeValue(`pattern`,{key:o.toString(),ref:o,code:(0,i._)`${a.code===`new RegExp`?c:(0,s.useFunc)(e,a)}(${n}, ${r})`})}e.usePattern=usePattern;function validateArray(e){let{gen:t,data:n,keyword:r,it:o}=e,s=t.name(`valid`);if(o.allErrors){let e=t.let(`valid`,!0);return validateItems(()=>t.assign(e,!1)),e}return t.var(s,!0),validateItems(()=>t.break()),s;function validateItems(o){let c=t.const(`len`,(0,i._)`${n}.length`);t.forRange(`i`,0,c,n=>{e.subschema({keyword:r,dataProp:n,dataPropType:a.Type.Num},s),t.if((0,i.not)(s),o)})}}e.validateArray=validateArray;function validateUnion(e){let{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw Error(`ajv implementation error`);if(n.some(e=>(0,a.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=t.let(`valid`,!1),c=t.name(`_valid`);t.block(()=>n.forEach((n,a)=>{let o=e.subschema({keyword:r,schemaProp:a,compositeRule:!0},c);t.assign(s,(0,i._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,i.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=validateUnion}));export default require_code();export{require_code};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";var require_id=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}}));export default require_id();export{require_id};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_id}from"./id.js";import{require_ref}from"./ref.js";var require_core=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_id(),n=require_ref();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]}));export default require_core();export{require_core};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_names}from"../../compile/names.js";import{require_code}from"../code.js";import{require_ref_error}from"../../compile/ref_error.js";import{require_compile}from"../../compile/index.js";var require_ref=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;let s=require_ref_error(),c=require_code(),l=require_codegen(),u=require_names(),d=require_compile(),f=require_util(),p={keyword:`$ref`,schemaType:`string`,code(e){let{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:a,validateName:o,opts:c,self:u}=r,{root:f}=a;if((n===`#`||n===`#/`)&&i===f.baseId)return callRootRef();let p=d.resolveRef.call(u,f,i,n);if(p===void 0)throw new s.default(r.opts.uriResolver,i,n);if(p instanceof d.SchemaEnv)return callValidate(p);return inlineRefSchema(p);function callRootRef(){if(a===f)return callRef(e,o,a,a.$async);let n=t.scopeValue(`root`,{ref:f});return callRef(e,(0,l._)`${n}.validate`,f,f.$async)}function callValidate(t){callRef(e,getValidate(e,t),t,t.$async)}function inlineRefSchema(r){let i=t.scopeValue(`schema`,c.code.source===!0?{ref:r,code:(0,l.stringify)(r)}:{ref:r}),a=t.name(`valid`),o=e.subschema({schema:r,dataTypes:[],schemaPath:l.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(o),e.ok(a)}}};function getValidate(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,l._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=getValidate;function callRef(e,t,n,r){let{gen:i,it:a}=e,{allErrors:o,schemaEnv:s,opts:d}=a,p=d.passContext?u.default.this:l.nil;r?callAsyncRef():callSyncRef();function callAsyncRef(){if(!s.$async)throw Error(`async schema referenced by sync schema`);let n=i.let(`valid`);i.try(()=>{i.code((0,l._)`await ${(0,c.callValidateCode)(e,t,p)}`),addEvaluatedFrom(t),o||i.assign(n,!0)},e=>{i.if((0,l._)`!(${e} instanceof ${a.ValidationError})`,()=>i.throw(e)),addErrorsFrom(e),o||i.assign(n,!1)}),e.ok(n)}function callSyncRef(){e.result((0,c.callValidateCode)(e,t,p),()=>addEvaluatedFrom(t),()=>addErrorsFrom(t))}function addErrorsFrom(e){let t=(0,l._)`${e}.errors`;i.assign(u.default.vErrors,(0,l._)`${u.default.vErrors} === null ? ${t} : ${u.default.vErrors}.concat(${t})`),i.assign(u.default.errors,(0,l._)`${u.default.vErrors}.length`)}function addEvaluatedFrom(e){if(!a.opts.unevaluated)return;let t=n?.validate?.evaluated;if(a.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(a.props=f.mergeEvaluated.props(i,t.props,a.props));else{let t=i.var(`props`,(0,l._)`${e}.evaluated.props`);a.props=f.mergeEvaluated.props(i,t,a.props,l.Name)}if(a.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(a.items=f.mergeEvaluated.items(i,t.items,a.items));else{let t=i.var(`items`,(0,l._)`${e}.evaluated.items`);a.items=f.mergeEvaluated.items(i,t,a.items,l.Name)}}}e.callRef=callRef,e.default=p}));export default require_ref();export{require_ref};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_ref_error}from"../../compile/ref_error.js";import{require_compile}from"../../compile/index.js";import{require_types}from"./types.js";var require_discriminator=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let o=require_codegen(),s=require_types(),c=require_compile(),l=require_ref_error(),u=require_util();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,o._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){let{gen:t,data:n,schema:r,parentSchema:i,it:a}=e,{oneOf:d}=i;if(!a.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=r.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(r.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=t.let(`valid`,!1),m=t.const(`tag`,(0,o._)`${n}${(0,o.getProperty)(f)}`);t.if((0,o._)`typeof ${m} == "string"`,()=>validateMapping(),()=>e.error(!1,{discrError:s.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function validateMapping(){let n=getMapping();t.if(!1);for(let e in n)t.elseIf((0,o._)`${m} === ${e}`),t.assign(p,applyTagSchema(n[e]));t.else(),e.error(!1,{discrError:s.DiscrError.Mapping,tag:m,tagName:f}),t.endIf()}function applyTagSchema(n){let r=t.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,o.Name),r}function getMapping(){let e={},t=hasRequired(i),n=!0;for(let e=0;e<d.length;e++){let r=d[e];if(r?.$ref&&!(0,u.schemaHasRulesButRef)(r,a.self.RULES)){let e=r.$ref;if(r=c.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,e),r instanceof c.SchemaEnv&&(r=r.schema),r===void 0)throw new l.default(a.opts.uriResolver,a.baseId,e)}let i=r?.properties?.[f];if(typeof i!=`object`)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n&&=t||hasRequired(r),addMappings(i,e)}if(!n)throw Error(`discriminator: "${f}" must be required`);return e;function hasRequired({required:e}){return Array.isArray(e)&&e.includes(f)}function addMappings(e,t){if(e.const)addMapping(e.const,t);else if(e.enum)for(let n of e.enum)addMapping(n,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function addMapping(t,n){if(typeof t!=`string`||t in e)throw Error(`discriminator: "${f}" values must be unique strings`);e[t]=n}}}}}));export default require_discriminator();export{require_discriminator};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";var require_types=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))}));export default require_types();export{require_types};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";import{require_core}from"./core/index.js";import{require_validation}from"./validation/index.js";import{require_applicator}from"./applicator/index.js";import{require_format}from"./format/index.js";import{require_metadata}from"./metadata.js";var require_draft7=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_core(),n=require_validation(),r=require_applicator(),i=require_format(),a=require_metadata();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]}));export default require_draft7();export{require_draft7};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";var require_format=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_codegen();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`},code(e,t){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?validate$DataFormat():validateFormat();function validate$DataFormat(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,n._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,n._)`${o}.type || "string"`).assign(u,(0,n._)`${o}.validate`),()=>r.assign(c,(0,n._)`"string"`).assign(u,o)),e.fail$data((0,n.or)(unknownFmt(),invalidFmt()));function unknownFmt(){return l.strictSchema===!1?n.nil:(0,n._)`${s} && !${u}`}function invalidFmt(){let e=d.$async?(0,n._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,n._)`${u}(${i})`,r=(0,n._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,n._)`${u} && ${u} !== true && ${c} === ${t} && !${r}`}}function validateFormat(){let a=f.formats[o];if(!a){unknownFormat();return}if(a===!0)return;let[s,c,p]=getFormat(a);s===t&&e.pass(validCondition());function unknownFormat(){if(l.strictSchema===!1){f.logger.warn(unknownMsg());return}throw Error(unknownMsg());function unknownMsg(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function getFormat(e){let t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?(0,n._)`${l.code.formats}${(0,n.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:t});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,n._)`${i}.validate`]:[`string`,e,i]}function validCondition(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,n._)`await ${p}(${i})`}return typeof c==`function`?(0,n._)`${p}(${i})`:(0,n._)`${p}.test(${i})`}}}}}));export default require_format();export{require_format};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_format as require_format$1}from"./format.js";var require_format=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=[require_format$1().default]}));export default require_format();export{require_format};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../_virtual/_rolldown/runtime.js";var require_metadata=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]}));export default require_metadata();export{require_metadata};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_equal}from"../../runtime/equal.js";var require_const=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let i=require_codegen(),a=require_util(),o=require_equal();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,i._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:n,$data:r,schemaCode:s,schema:c}=e;r||c&&typeof c==`object`?e.fail$data((0,i._)`!${(0,a.useFunc)(t,o.default)}(${n}, ${s})`):e.fail((0,i._)`${c} !== ${n}`)}}}));export default require_const();export{require_const};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_equal}from"../../runtime/equal.js";var require_enum=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let i=require_codegen(),a=require_util(),o=require_equal();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,i._)`{allowedValues: ${e}}`},code(e){let{gen:t,data:n,$data:r,schema:s,schemaCode:c,it:l}=e;if(!r&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,getEql=()=>d??=(0,a.useFunc)(t,o.default),f;if(u||r)f=t.let(`valid`),e.block$data(f,loopEnum);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=t.const(`vSchema`,c);f=(0,i.or)(...s.map((t,n)=>equalCode(e,n)))}e.pass(f);function loopEnum(){t.assign(f,!1),t.forOf(`v`,c,e=>t.if((0,i._)`${getEql()}(${n}, ${e})`,()=>t.assign(f,!0).break()))}function equalCode(e,t){let r=s[t];return typeof r==`object`&&r?(0,i._)`${getEql()}(${n}, ${e}[${t}])`:(0,i._)`${n} === ${r}`}}}}));export default require_enum();export{require_enum};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_limitNumber}from"./limitNumber.js";import{require_multipleOf}from"./multipleOf.js";import{require_limitLength}from"./limitLength.js";import{require_pattern}from"./pattern.js";import{require_limitProperties}from"./limitProperties.js";import{require_required}from"./required.js";import{require_limitItems}from"./limitItems.js";import{require_uniqueItems}from"./uniqueItems.js";import{require_const}from"./const.js";import{require_enum}from"./enum.js";var require_validation=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=require_limitNumber(),n=require_multipleOf(),r=require_limitLength(),i=require_pattern(),a=require_limitProperties(),o=require_required(),s=require_limitItems(),c=require_uniqueItems(),l=require_const(),u=require_enum();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]}));export default require_validation();export{require_validation};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";var require_limitItems=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_codegen();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:t}){let r=e===`maxItems`?`more`:`fewer`;return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,a=t===`maxItems`?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${a} ${i}`)}}}));export default require_limitItems();export{require_limitItems};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";import{require_util}from"../../compile/util.js";import{require_ucs2length}from"../../runtime/ucs2length.js";var require_limitLength=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let i=require_codegen(),a=require_util(),o=require_ucs2length();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:t}){let n=e===`maxLength`?`more`:`fewer`;return(0,i.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,i._)`{limit: ${e}}`},code(e){let{keyword:t,data:n,schemaCode:r,it:s}=e,c=t===`maxLength`?i.operators.GT:i.operators.LT,l=s.opts.unicode===!1?(0,i._)`${n}.length`:(0,i._)`${(0,a.useFunc)(e.gen,o.default)}(${n})`;e.fail$data((0,i._)`${l} ${c} ${r}`)}}}));export default require_limitLength();export{require_limitLength};
@@ -0,0 +1 @@
1
+ import{__commonJSMin}from"../../../../../../../../_virtual/_rolldown/runtime.js";import{require_codegen}from"../../compile/codegen/index.js";var require_limitNumber=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0});let n=require_codegen(),r=n.operators,i={maximum:{okStr:`<=`,ok:r.LTE,fail:r.GT},minimum:{okStr:`>=`,ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:`<`,ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:`>`,ok:r.GT,fail:r.LTE}};e.default={keyword:Object.keys(i),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:a}=e;e.fail$data((0,n._)`${r} ${i[t].fail} ${a} || isNaN(${r})`)}}}));export default require_limitNumber();export{require_limitNumber};