@openclaw/lobster 2026.9.4 → 2026.9.6

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 (367) hide show
  1. package/assets/activity.svg +4 -0
  2. package/assets/icon.png +0 -0
  3. package/dist/index.js +39 -10
  4. package/node_modules/@clawdbot/lobster/README.md +129 -131
  5. package/node_modules/@clawdbot/lobster/VISION.md +15 -238
  6. package/node_modules/@clawdbot/lobster/bin/clawd.invoke.js +2 -15
  7. package/node_modules/@clawdbot/lobster/bin/invoke.js +19 -0
  8. package/node_modules/@clawdbot/lobster/bin/lobster.js +2 -21
  9. package/node_modules/@clawdbot/lobster/bin/openclaw.invoke.js +2 -18
  10. package/node_modules/@clawdbot/lobster/dist/src/abortable_process.js +297 -0
  11. package/node_modules/@clawdbot/lobster/dist/src/abortable_process.js.map +1 -0
  12. package/node_modules/@clawdbot/lobster/dist/src/cli.js +128 -296
  13. package/node_modules/@clawdbot/lobster/dist/src/cli.js.map +1 -1
  14. package/node_modules/@clawdbot/lobster/dist/src/command_tokens.js +81 -0
  15. package/node_modules/@clawdbot/lobster/dist/src/command_tokens.js.map +1 -0
  16. package/node_modules/@clawdbot/lobster/dist/src/commands/commands_list.js.map +1 -1
  17. package/node_modules/@clawdbot/lobster/dist/src/commands/registry.js +2 -0
  18. package/node_modules/@clawdbot/lobster/dist/src/commands/registry.js.map +1 -1
  19. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/approve.js +2 -0
  20. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/approve.js.map +1 -1
  21. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js +3 -1
  22. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/ask.js.map +1 -1
  23. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/dedupe.js +1 -12
  24. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/dedupe.js.map +1 -1
  25. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/diff_last.js +6 -1
  26. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/diff_last.js.map +1 -1
  27. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/email_triage.js.map +1 -1
  28. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/exec.js +30 -34
  29. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/exec.js.map +1 -1
  30. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/gog_gmail_search.js +12 -25
  31. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/gog_gmail_search.js.map +1 -1
  32. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/gog_gmail_send.js +19 -25
  33. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/gog_gmail_send.js.map +1 -1
  34. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/group_by.js +2 -14
  35. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/group_by.js.map +1 -1
  36. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/head.js.map +1 -1
  37. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/json.js.map +1 -1
  38. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js +260 -42
  39. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/llm_invoke.js.map +1 -1
  40. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/map.js +2 -13
  41. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/map.js.map +1 -1
  42. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/openclaw_agent.js +139 -0
  43. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/openclaw_agent.js.map +1 -0
  44. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/openclaw_invoke.js +20 -2
  45. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/openclaw_invoke.js.map +1 -1
  46. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/pick.js.map +1 -1
  47. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/sort.js +4 -21
  48. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/sort.js.map +1 -1
  49. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js +48 -20
  50. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/state.js.map +1 -1
  51. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/table.js.map +1 -1
  52. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/template.js +2 -13
  53. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/template.js.map +1 -1
  54. package/node_modules/@clawdbot/lobster/dist/src/commands/stdlib/where.js.map +1 -1
  55. package/node_modules/@clawdbot/lobster/dist/src/commands/workflows/workflows_list.js.map +1 -1
  56. package/node_modules/@clawdbot/lobster/dist/src/commands/workflows/workflows_run.js +0 -18
  57. package/node_modules/@clawdbot/lobster/dist/src/commands/workflows/workflows_run.js.map +1 -1
  58. package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js +45 -3
  59. package/node_modules/@clawdbot/lobster/dist/src/core/cost_tracker.js.map +1 -1
  60. package/node_modules/@clawdbot/lobster/dist/src/core/filters.js.map +1 -1
  61. package/node_modules/@clawdbot/lobster/dist/src/core/llm_accounting.js +304 -0
  62. package/node_modules/@clawdbot/lobster/dist/src/core/llm_accounting.js.map +1 -0
  63. package/node_modules/@clawdbot/lobster/dist/src/core/retry.js.map +1 -1
  64. package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js +147 -21
  65. package/node_modules/@clawdbot/lobster/dist/src/core/tool_runtime.js.map +1 -1
  66. package/node_modules/@clawdbot/lobster/dist/src/core/value_path.js +11 -0
  67. package/node_modules/@clawdbot/lobster/dist/src/core/value_path.js.map +1 -0
  68. package/node_modules/@clawdbot/lobster/dist/src/input_request.js +4 -2
  69. package/node_modules/@clawdbot/lobster/dist/src/input_request.js.map +1 -1
  70. package/node_modules/@clawdbot/lobster/dist/src/parser.js +5 -69
  71. package/node_modules/@clawdbot/lobster/dist/src/parser.js.map +1 -1
  72. package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js +241 -74
  73. package/node_modules/@clawdbot/lobster/dist/src/pipeline_resume_state.js.map +1 -1
  74. package/node_modules/@clawdbot/lobster/dist/src/read_line.js +52 -7
  75. package/node_modules/@clawdbot/lobster/dist/src/read_line.js.map +1 -1
  76. package/node_modules/@clawdbot/lobster/dist/src/read_response_text.js +86 -0
  77. package/node_modules/@clawdbot/lobster/dist/src/read_response_text.js.map +1 -0
  78. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/index.js +1 -1
  79. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/pr-monitor.js +9 -66
  80. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/pr-monitor.js.map +1 -1
  81. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/read_pr.js +45 -0
  82. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/read_pr.js.map +1 -0
  83. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/snapshot.js +45 -0
  84. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/snapshot.js.map +1 -0
  85. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/stages/pr-view.js +13 -65
  86. package/node_modules/@clawdbot/lobster/dist/src/recipes/github/stages/pr-view.js.map +1 -1
  87. package/node_modules/@clawdbot/lobster/dist/src/recipes/registry.js.map +1 -1
  88. package/node_modules/@clawdbot/lobster/dist/src/renderers/json.js.map +1 -1
  89. package/node_modules/@clawdbot/lobster/dist/src/resume.js.map +1 -1
  90. package/node_modules/@clawdbot/lobster/dist/src/runtime.js +187 -17
  91. package/node_modules/@clawdbot/lobster/dist/src/runtime.js.map +1 -1
  92. package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js +25 -134
  93. package/node_modules/@clawdbot/lobster/dist/src/sdk/Lobster.js.map +1 -1
  94. package/node_modules/@clawdbot/lobster/dist/src/sdk/index.js +1 -1
  95. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/approve.js +1 -2
  96. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/approve.js.map +1 -1
  97. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js +11 -86
  98. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/diff.js.map +1 -1
  99. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/exec.js +20 -96
  100. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/exec.js.map +1 -1
  101. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js +8 -106
  102. package/node_modules/@clawdbot/lobster/dist/src/sdk/primitives/state.js.map +1 -1
  103. package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js +2 -13
  104. package/node_modules/@clawdbot/lobster/dist/src/sdk/runtime.js.map +1 -1
  105. package/node_modules/@clawdbot/lobster/dist/src/sdk/state_env.js +6 -0
  106. package/node_modules/@clawdbot/lobster/dist/src/sdk/state_env.js.map +1 -0
  107. package/node_modules/@clawdbot/lobster/dist/src/shell.js.map +1 -1
  108. package/node_modules/@clawdbot/lobster/dist/src/state/atomic_file.js +192 -0
  109. package/node_modules/@clawdbot/lobster/dist/src/state/atomic_file.js.map +1 -0
  110. package/node_modules/@clawdbot/lobster/dist/src/state/store.js +550 -136
  111. package/node_modules/@clawdbot/lobster/dist/src/state/store.js.map +1 -1
  112. package/node_modules/@clawdbot/lobster/dist/src/token.js.map +1 -1
  113. package/node_modules/@clawdbot/lobster/dist/src/validation.js.map +1 -1
  114. package/node_modules/@clawdbot/lobster/dist/src/workflows/dry_run.js +262 -0
  115. package/node_modules/@clawdbot/lobster/dist/src/workflows/dry_run.js.map +1 -0
  116. package/node_modules/@clawdbot/lobster/dist/src/workflows/expressions.js +345 -0
  117. package/node_modules/@clawdbot/lobster/dist/src/workflows/expressions.js.map +1 -0
  118. package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js +950 -1285
  119. package/node_modules/@clawdbot/lobster/dist/src/workflows/file.js.map +1 -1
  120. package/node_modules/@clawdbot/lobster/dist/src/workflows/github_pr_monitor.js +20 -90
  121. package/node_modules/@clawdbot/lobster/dist/src/workflows/github_pr_monitor.js.map +1 -1
  122. package/node_modules/@clawdbot/lobster/dist/src/workflows/graph.js +9 -8
  123. package/node_modules/@clawdbot/lobster/dist/src/workflows/graph.js.map +1 -1
  124. package/node_modules/@clawdbot/lobster/dist/src/workflows/load.js +347 -0
  125. package/node_modules/@clawdbot/lobster/dist/src/workflows/load.js.map +1 -0
  126. package/node_modules/@clawdbot/lobster/dist/src/workflows/registry.js.map +1 -1
  127. package/node_modules/@clawdbot/lobster/dist/src/workflows/types.js +2 -0
  128. package/node_modules/@clawdbot/lobster/dist/src/workflows/types.js.map +1 -0
  129. package/node_modules/@clawdbot/lobster/dist/src/workflows/values.js +93 -0
  130. package/node_modules/@clawdbot/lobster/dist/src/workflows/values.js.map +1 -0
  131. package/node_modules/@clawdbot/lobster/dist/test/approval_id.test.js.map +1 -1
  132. package/node_modules/@clawdbot/lobster/dist/test/approve_preview.test.js.map +1 -1
  133. package/node_modules/@clawdbot/lobster/dist/test/bin_smoke.test.js +25 -0
  134. package/node_modules/@clawdbot/lobster/dist/test/bin_smoke.test.js.map +1 -0
  135. package/node_modules/@clawdbot/lobster/dist/test/cancellation.test.js +5171 -0
  136. package/node_modules/@clawdbot/lobster/dist/test/cancellation.test.js.map +1 -0
  137. package/node_modules/@clawdbot/lobster/dist/test/clawd_invoke.test.js +22 -0
  138. package/node_modules/@clawdbot/lobster/dist/test/clawd_invoke.test.js.map +1 -1
  139. package/node_modules/@clawdbot/lobster/dist/test/clawd_invoke_legacy.test.js.map +1 -1
  140. package/node_modules/@clawdbot/lobster/dist/test/cli_run_errors.test.js +53 -0
  141. package/node_modules/@clawdbot/lobster/dist/test/cli_run_errors.test.js.map +1 -0
  142. package/node_modules/@clawdbot/lobster/dist/test/cli_run_file_args_json.test.js.map +1 -1
  143. package/node_modules/@clawdbot/lobster/dist/test/command_arguments.test.js +82 -0
  144. package/node_modules/@clawdbot/lobster/dist/test/command_arguments.test.js.map +1 -0
  145. package/node_modules/@clawdbot/lobster/dist/test/commands_list.test.js.map +1 -1
  146. package/node_modules/@clawdbot/lobster/dist/test/condition_comparison.test.js.map +1 -1
  147. package/node_modules/@clawdbot/lobster/dist/test/core_tool_runtime.test.js.map +1 -1
  148. package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js +1774 -12
  149. package/node_modules/@clawdbot/lobster/dist/test/cost_tracker.test.js.map +1 -1
  150. package/node_modules/@clawdbot/lobster/dist/test/dedupe.test.js.map +1 -1
  151. package/node_modules/@clawdbot/lobster/dist/test/diff_last.test.js.map +1 -1
  152. package/node_modules/@clawdbot/lobster/dist/test/doctor.test.js.map +1 -1
  153. package/node_modules/@clawdbot/lobster/dist/test/dry_run.test.js.map +1 -1
  154. package/node_modules/@clawdbot/lobster/dist/test/email_triage.test.js.map +1 -1
  155. package/node_modules/@clawdbot/lobster/dist/test/exec_stdin.test.js.map +1 -1
  156. package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js +254 -0
  157. package/node_modules/@clawdbot/lobster/dist/test/for_each.test.js.map +1 -1
  158. package/node_modules/@clawdbot/lobster/dist/test/github_pr_notify_format.test.js.map +1 -1
  159. package/node_modules/@clawdbot/lobster/dist/test/github_pr_summary.test.js.map +1 -1
  160. package/node_modules/@clawdbot/lobster/dist/test/github_pr_view.test.js +176 -0
  161. package/node_modules/@clawdbot/lobster/dist/test/github_pr_view.test.js.map +1 -0
  162. package/node_modules/@clawdbot/lobster/dist/test/gog_gmail_send.test.js +100 -0
  163. package/node_modules/@clawdbot/lobster/dist/test/gog_gmail_send.test.js.map +1 -0
  164. package/node_modules/@clawdbot/lobster/dist/test/group_by.test.js.map +1 -1
  165. package/node_modules/@clawdbot/lobster/dist/test/helpers/node_shell_fixture.js +17 -0
  166. package/node_modules/@clawdbot/lobster/dist/test/helpers/node_shell_fixture.js.map +1 -0
  167. package/node_modules/@clawdbot/lobster/dist/test/helpers/wait_for_pid.js +19 -0
  168. package/node_modules/@clawdbot/lobster/dist/test/helpers/wait_for_pid.js.map +1 -0
  169. package/node_modules/@clawdbot/lobster/dist/test/http_response_body_cap.test.js +318 -0
  170. package/node_modules/@clawdbot/lobster/dist/test/http_response_body_cap.test.js.map +1 -0
  171. package/node_modules/@clawdbot/lobster/dist/test/llm_invoke.test.js +948 -1
  172. package/node_modules/@clawdbot/lobster/dist/test/llm_invoke.test.js.map +1 -1
  173. package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js +103 -0
  174. package/node_modules/@clawdbot/lobster/dist/test/llm_task_invoke.test.js.map +1 -1
  175. package/node_modules/@clawdbot/lobster/dist/test/map.test.js.map +1 -1
  176. package/node_modules/@clawdbot/lobster/dist/test/multi_approval_resume.test.js.map +1 -1
  177. package/node_modules/@clawdbot/lobster/dist/test/on_error.test.js.map +1 -1
  178. package/node_modules/@clawdbot/lobster/dist/test/openclaw_agent.test.js +169 -0
  179. package/node_modules/@clawdbot/lobster/dist/test/openclaw_agent.test.js.map +1 -0
  180. package/node_modules/@clawdbot/lobster/dist/test/openclaw_dispatch_retry.test.js +96 -0
  181. package/node_modules/@clawdbot/lobster/dist/test/openclaw_dispatch_retry.test.js.map +1 -0
  182. package/node_modules/@clawdbot/lobster/dist/test/openclaw_invoke_alias.test.js.map +1 -1
  183. package/node_modules/@clawdbot/lobster/dist/test/parallel.test.js.map +1 -1
  184. package/node_modules/@clawdbot/lobster/dist/test/parser.test.js +57 -0
  185. package/node_modules/@clawdbot/lobster/dist/test/parser.test.js.map +1 -1
  186. package/node_modules/@clawdbot/lobster/dist/test/pipeline_resume_state.test.js +65 -0
  187. package/node_modules/@clawdbot/lobster/dist/test/pipeline_resume_state.test.js.map +1 -0
  188. package/node_modules/@clawdbot/lobster/dist/test/process_output_limit.test.js +175 -0
  189. package/node_modules/@clawdbot/lobster/dist/test/process_output_limit.test.js.map +1 -0
  190. package/node_modules/@clawdbot/lobster/dist/test/read_line.test.js +54 -0
  191. package/node_modules/@clawdbot/lobster/dist/test/read_line.test.js.map +1 -1
  192. package/node_modules/@clawdbot/lobster/dist/test/release_changelog.test.js +39 -0
  193. package/node_modules/@clawdbot/lobster/dist/test/release_changelog.test.js.map +1 -0
  194. package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js +1 -1
  195. package/node_modules/@clawdbot/lobster/dist/test/request_input.test.js.map +1 -1
  196. package/node_modules/@clawdbot/lobster/dist/test/resume.test.js.map +1 -1
  197. package/node_modules/@clawdbot/lobster/dist/test/sdk_exec.test.js +248 -0
  198. package/node_modules/@clawdbot/lobster/dist/test/sdk_exec.test.js.map +1 -0
  199. package/node_modules/@clawdbot/lobster/dist/test/sdk_lobster.test.js.map +1 -1
  200. package/node_modules/@clawdbot/lobster/dist/test/shell.test.js.map +1 -1
  201. package/node_modules/@clawdbot/lobster/dist/test/sort.test.js.map +1 -1
  202. package/node_modules/@clawdbot/lobster/dist/test/state.test.js +584 -1
  203. package/node_modules/@clawdbot/lobster/dist/test/state.test.js.map +1 -1
  204. package/node_modules/@clawdbot/lobster/dist/test/step_retry.test.js.map +1 -1
  205. package/node_modules/@clawdbot/lobster/dist/test/step_stdin_epipe.test.js +44 -0
  206. package/node_modules/@clawdbot/lobster/dist/test/step_stdin_epipe.test.js.map +1 -0
  207. package/node_modules/@clawdbot/lobster/dist/test/step_timeout.test.js +67 -1
  208. package/node_modules/@clawdbot/lobster/dist/test/step_timeout.test.js.map +1 -1
  209. package/node_modules/@clawdbot/lobster/dist/test/template.test.js.map +1 -1
  210. package/node_modules/@clawdbot/lobster/dist/test/template_filters.test.js +37 -0
  211. package/node_modules/@clawdbot/lobster/dist/test/template_filters.test.js.map +1 -1
  212. package/node_modules/@clawdbot/lobster/dist/test/tool_envelope_version.test.js.map +1 -1
  213. package/node_modules/@clawdbot/lobster/dist/test/tool_mode.test.js.map +1 -1
  214. package/node_modules/@clawdbot/lobster/dist/test/validation.test.js.map +1 -1
  215. package/node_modules/@clawdbot/lobster/dist/test/where.test.js +94 -0
  216. package/node_modules/@clawdbot/lobster/dist/test/where.test.js.map +1 -0
  217. package/node_modules/@clawdbot/lobster/dist/test/workflow_args_env.test.js +5 -3
  218. package/node_modules/@clawdbot/lobster/dist/test/workflow_args_env.test.js.map +1 -1
  219. package/node_modules/@clawdbot/lobster/dist/test/workflow_composition.test.js.map +1 -1
  220. package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js +647 -1
  221. package/node_modules/@clawdbot/lobster/dist/test/workflow_file.test.js.map +1 -1
  222. package/node_modules/@clawdbot/lobster/dist/test/workflow_graph.test.js +13 -3
  223. package/node_modules/@clawdbot/lobster/dist/test/workflow_graph.test.js.map +1 -1
  224. package/node_modules/@clawdbot/lobster/dist/test/workflows.test.js.map +1 -1
  225. package/node_modules/@clawdbot/lobster/package.json +72 -73
  226. package/node_modules/typebox/build/compile/validator.d.mts +1 -1
  227. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  228. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
  229. package/node_modules/typebox/build/format/iri.mjs +5 -1
  230. package/node_modules/typebox/build/guard/emit.mjs +2 -4
  231. package/node_modules/typebox/build/guard/guard.mjs +6 -18
  232. package/node_modules/typebox/build/guard/string.mjs +16 -24
  233. package/node_modules/typebox/build/schema/build.mjs +2 -2
  234. package/node_modules/typebox/build/schema/check.mjs +1 -1
  235. package/node_modules/typebox/build/schema/compile.d.mts +3 -2
  236. package/node_modules/typebox/build/schema/compile.mjs +8 -8
  237. package/node_modules/typebox/build/schema/engine/_context.d.mts +6 -7
  238. package/node_modules/typebox/build/schema/engine/_context.mjs +23 -15
  239. package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
  240. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  241. package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
  242. package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
  243. package/node_modules/typebox/build/schema/engine/_refine.mjs +4 -7
  244. package/node_modules/typebox/build/schema/engine/_stack.d.mts +34 -16
  245. package/node_modules/typebox/build/schema/engine/_stack.mjs +148 -104
  246. package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
  247. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -8
  248. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +26 -18
  249. package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
  250. package/node_modules/typebox/build/schema/engine/allOf.mjs +3 -3
  251. package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
  252. package/node_modules/typebox/build/schema/engine/anyOf.mjs +5 -10
  253. package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
  254. package/node_modules/typebox/build/schema/engine/boolean.mjs +2 -6
  255. package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
  256. package/node_modules/typebox/build/schema/engine/const.mjs +2 -6
  257. package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
  258. package/node_modules/typebox/build/schema/engine/contains.mjs +2 -6
  259. package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
  260. package/node_modules/typebox/build/schema/engine/dependencies.mjs +3 -6
  261. package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
  262. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +2 -6
  263. package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
  264. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
  265. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +11 -7
  266. package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
  267. package/node_modules/typebox/build/schema/engine/enum.mjs +2 -6
  268. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
  269. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +2 -6
  270. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
  271. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +2 -6
  272. package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
  273. package/node_modules/typebox/build/schema/engine/format.mjs +2 -6
  274. package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
  275. package/node_modules/typebox/build/schema/engine/if.mjs +7 -15
  276. package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
  277. package/node_modules/typebox/build/schema/engine/items.mjs +1 -1
  278. package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
  279. package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -6
  280. package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
  281. package/node_modules/typebox/build/schema/engine/maxItems.mjs +2 -6
  282. package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
  283. package/node_modules/typebox/build/schema/engine/maxLength.mjs +2 -6
  284. package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
  285. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +2 -6
  286. package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
  287. package/node_modules/typebox/build/schema/engine/maximum.mjs +2 -6
  288. package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
  289. package/node_modules/typebox/build/schema/engine/minContains.mjs +2 -6
  290. package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
  291. package/node_modules/typebox/build/schema/engine/minItems.mjs +2 -6
  292. package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
  293. package/node_modules/typebox/build/schema/engine/minLength.mjs +2 -6
  294. package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
  295. package/node_modules/typebox/build/schema/engine/minProperties.mjs +2 -6
  296. package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
  297. package/node_modules/typebox/build/schema/engine/minimum.mjs +2 -6
  298. package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
  299. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +2 -6
  300. package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
  301. package/node_modules/typebox/build/schema/engine/not.mjs +4 -8
  302. package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
  303. package/node_modules/typebox/build/schema/engine/oneOf.mjs +6 -11
  304. package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
  305. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -7
  306. package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
  307. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +1 -1
  308. package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
  309. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
  310. package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
  311. package/node_modules/typebox/build/schema/engine/properties.mjs +1 -1
  312. package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
  313. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +4 -10
  314. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
  315. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +11 -7
  316. package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
  317. package/node_modules/typebox/build/schema/engine/ref.mjs +19 -15
  318. package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
  319. package/node_modules/typebox/build/schema/engine/required.mjs +2 -6
  320. package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
  321. package/node_modules/typebox/build/schema/engine/schema.mjs +137 -133
  322. package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
  323. package/node_modules/typebox/build/schema/engine/type.mjs +2 -6
  324. package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
  325. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +5 -9
  326. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
  327. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +5 -9
  328. package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
  329. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +2 -6
  330. package/node_modules/typebox/build/schema/errors.d.mts +2 -2
  331. package/node_modules/typebox/build/schema/errors.mjs +8 -14
  332. package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
  333. package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
  334. package/node_modules/typebox/build/schema/intern/intern.d.mts +11 -0
  335. package/node_modules/typebox/build/schema/intern/intern.mjs +293 -0
  336. package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +2 -0
  337. package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +288 -0
  338. package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +2 -0
  339. package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +300 -0
  340. package/node_modules/typebox/build/schema/meta/draft_3.d.mts +2 -0
  341. package/node_modules/typebox/build/schema/meta/draft_3.mjs +143 -0
  342. package/node_modules/typebox/build/schema/meta/draft_4.d.mts +2 -0
  343. package/node_modules/typebox/build/schema/meta/draft_4.mjs +149 -0
  344. package/node_modules/typebox/build/schema/meta/draft_6.d.mts +2 -0
  345. package/node_modules/typebox/build/schema/meta/draft_6.mjs +155 -0
  346. package/node_modules/typebox/build/schema/meta/draft_7.d.mts +2 -0
  347. package/node_modules/typebox/build/schema/meta/draft_7.mjs +172 -0
  348. package/node_modules/typebox/build/schema/meta/index.d.mts +2 -0
  349. package/node_modules/typebox/build/schema/meta/index.mjs +2 -0
  350. package/node_modules/typebox/build/schema/meta/meta.d.mts +9 -0
  351. package/node_modules/typebox/build/schema/meta/meta.mjs +15 -0
  352. package/node_modules/typebox/build/schema/meta/schema.d.mts +6 -0
  353. package/node_modules/typebox/build/schema/meta/schema.mjs +1 -0
  354. package/node_modules/typebox/build/schema/parse.d.mts +1 -0
  355. package/node_modules/typebox/build/schema/parse.mjs +10 -5
  356. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +8 -3
  357. package/node_modules/typebox/build/schema/resolve/resolve.mjs +268 -139
  358. package/node_modules/typebox/build/schema/schema.d.mts +2 -0
  359. package/node_modules/typebox/build/schema/schema.mjs +2 -0
  360. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
  361. package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
  362. package/node_modules/typebox/package.json +1 -1
  363. package/node_modules/typebox/readme.md +59 -89
  364. package/openclaw.plugin.json +1 -1
  365. package/package.json +10 -7
  366. package/node_modules/@clawdbot/lobster/dist/src/sdk/token.js +0 -9
  367. package/node_modules/@clawdbot/lobster/dist/src/sdk/token.js.map +0 -1
@@ -0,0 +1,155 @@
1
+ export const Draft_6 = {
2
+ '$schema': 'http://json-schema.org/draft-06/schema#',
3
+ '$id': 'http://json-schema.org/draft-06/schema#',
4
+ 'title': 'Core schema meta-schema',
5
+ 'definitions': {
6
+ 'schemaArray': {
7
+ 'type': 'array',
8
+ 'minItems': 1,
9
+ 'items': { '$ref': '#' }
10
+ },
11
+ 'nonNegativeInteger': {
12
+ 'type': 'integer',
13
+ 'minimum': 0
14
+ },
15
+ 'nonNegativeIntegerDefault0': {
16
+ 'allOf': [
17
+ { '$ref': '#/definitions/nonNegativeInteger' },
18
+ { 'default': 0 }
19
+ ]
20
+ },
21
+ 'simpleTypes': {
22
+ 'enum': [
23
+ 'array',
24
+ 'boolean',
25
+ 'integer',
26
+ 'null',
27
+ 'number',
28
+ 'object',
29
+ 'string'
30
+ ]
31
+ },
32
+ 'stringArray': {
33
+ 'type': 'array',
34
+ 'items': { 'type': 'string' },
35
+ 'uniqueItems': true,
36
+ 'default': []
37
+ }
38
+ },
39
+ 'type': ['object', 'boolean'],
40
+ 'properties': {
41
+ '$id': {
42
+ 'type': 'string',
43
+ 'format': 'uri-reference'
44
+ },
45
+ '$schema': {
46
+ 'type': 'string',
47
+ 'format': 'uri'
48
+ },
49
+ '$ref': {
50
+ 'type': 'string',
51
+ 'format': 'uri-reference'
52
+ },
53
+ 'title': {
54
+ 'type': 'string'
55
+ },
56
+ 'description': {
57
+ 'type': 'string'
58
+ },
59
+ 'default': {},
60
+ 'examples': {
61
+ 'type': 'array',
62
+ 'items': {}
63
+ },
64
+ 'multipleOf': {
65
+ 'type': 'number',
66
+ 'exclusiveMinimum': 0
67
+ },
68
+ 'maximum': {
69
+ 'type': 'number'
70
+ },
71
+ 'exclusiveMaximum': {
72
+ 'type': 'number'
73
+ },
74
+ 'minimum': {
75
+ 'type': 'number'
76
+ },
77
+ 'exclusiveMinimum': {
78
+ 'type': 'number'
79
+ },
80
+ 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' },
81
+ 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
82
+ 'pattern': {
83
+ 'type': 'string',
84
+ 'format': 'regex'
85
+ },
86
+ 'additionalItems': { '$ref': '#' },
87
+ 'items': {
88
+ 'anyOf': [
89
+ { '$ref': '#' },
90
+ { '$ref': '#/definitions/schemaArray' }
91
+ ],
92
+ 'default': {}
93
+ },
94
+ 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' },
95
+ 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
96
+ 'uniqueItems': {
97
+ 'type': 'boolean',
98
+ 'default': false
99
+ },
100
+ 'contains': { '$ref': '#' },
101
+ 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' },
102
+ 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
103
+ 'required': { '$ref': '#/definitions/stringArray' },
104
+ 'additionalProperties': { '$ref': '#' },
105
+ 'definitions': {
106
+ 'type': 'object',
107
+ 'additionalProperties': { '$ref': '#' },
108
+ 'default': {}
109
+ },
110
+ 'properties': {
111
+ 'type': 'object',
112
+ 'additionalProperties': { '$ref': '#' },
113
+ 'default': {}
114
+ },
115
+ 'patternProperties': {
116
+ 'type': 'object',
117
+ 'additionalProperties': { '$ref': '#' },
118
+ 'propertyNames': { 'format': 'regex' },
119
+ 'default': {}
120
+ },
121
+ 'dependencies': {
122
+ 'type': 'object',
123
+ 'additionalProperties': {
124
+ 'anyOf': [
125
+ { '$ref': '#' },
126
+ { '$ref': '#/definitions/stringArray' }
127
+ ]
128
+ }
129
+ },
130
+ 'propertyNames': { '$ref': '#' },
131
+ 'const': {},
132
+ 'enum': {
133
+ 'type': 'array',
134
+ 'minItems': 1,
135
+ 'uniqueItems': true
136
+ },
137
+ 'type': {
138
+ 'anyOf': [
139
+ { '$ref': '#/definitions/simpleTypes' },
140
+ {
141
+ 'type': 'array',
142
+ 'items': { '$ref': '#/definitions/simpleTypes' },
143
+ 'minItems': 1,
144
+ 'uniqueItems': true
145
+ }
146
+ ]
147
+ },
148
+ 'format': { 'type': 'string' },
149
+ 'allOf': { '$ref': '#/definitions/schemaArray' },
150
+ 'anyOf': { '$ref': '#/definitions/schemaArray' },
151
+ 'oneOf': { '$ref': '#/definitions/schemaArray' },
152
+ 'not': { '$ref': '#' }
153
+ },
154
+ 'default': {}
155
+ };
@@ -0,0 +1,2 @@
1
+ import type { XMetaSchemaObject } from './schema.mjs';
2
+ export declare const Draft_7: XMetaSchemaObject;
@@ -0,0 +1,172 @@
1
+ export const Draft_7 = {
2
+ '$schema': 'http://json-schema.org/draft-07/schema#',
3
+ '$id': 'http://json-schema.org/draft-07/schema#',
4
+ 'title': 'Core schema meta-schema',
5
+ 'definitions': {
6
+ 'schemaArray': {
7
+ 'type': 'array',
8
+ 'minItems': 1,
9
+ 'items': { '$ref': '#' }
10
+ },
11
+ 'nonNegativeInteger': {
12
+ 'type': 'integer',
13
+ 'minimum': 0
14
+ },
15
+ 'nonNegativeIntegerDefault0': {
16
+ 'allOf': [
17
+ { '$ref': '#/definitions/nonNegativeInteger' },
18
+ { 'default': 0 }
19
+ ]
20
+ },
21
+ 'simpleTypes': {
22
+ 'enum': [
23
+ 'array',
24
+ 'boolean',
25
+ 'integer',
26
+ 'null',
27
+ 'number',
28
+ 'object',
29
+ 'string'
30
+ ]
31
+ },
32
+ 'stringArray': {
33
+ 'type': 'array',
34
+ 'items': { 'type': 'string' },
35
+ 'uniqueItems': true,
36
+ 'default': []
37
+ }
38
+ },
39
+ 'type': ['object', 'boolean'],
40
+ 'properties': {
41
+ '$id': {
42
+ 'type': 'string',
43
+ 'format': 'uri-reference'
44
+ },
45
+ '$schema': {
46
+ 'type': 'string',
47
+ 'format': 'uri'
48
+ },
49
+ '$ref': {
50
+ 'type': 'string',
51
+ 'format': 'uri-reference'
52
+ },
53
+ '$comment': {
54
+ 'type': 'string'
55
+ },
56
+ 'title': {
57
+ 'type': 'string'
58
+ },
59
+ 'description': {
60
+ 'type': 'string'
61
+ },
62
+ 'default': true,
63
+ 'readOnly': {
64
+ 'type': 'boolean',
65
+ 'default': false
66
+ },
67
+ 'writeOnly': {
68
+ 'type': 'boolean',
69
+ 'default': false
70
+ },
71
+ 'examples': {
72
+ 'type': 'array',
73
+ 'items': true
74
+ },
75
+ 'multipleOf': {
76
+ 'type': 'number',
77
+ 'exclusiveMinimum': 0
78
+ },
79
+ 'maximum': {
80
+ 'type': 'number'
81
+ },
82
+ 'exclusiveMaximum': {
83
+ 'type': 'number'
84
+ },
85
+ 'minimum': {
86
+ 'type': 'number'
87
+ },
88
+ 'exclusiveMinimum': {
89
+ 'type': 'number'
90
+ },
91
+ 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' },
92
+ 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
93
+ 'pattern': {
94
+ 'type': 'string',
95
+ 'format': 'regex'
96
+ },
97
+ 'additionalItems': { '$ref': '#' },
98
+ 'items': {
99
+ 'anyOf': [
100
+ { '$ref': '#' },
101
+ { '$ref': '#/definitions/schemaArray' }
102
+ ],
103
+ 'default': true
104
+ },
105
+ 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' },
106
+ 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
107
+ 'uniqueItems': {
108
+ 'type': 'boolean',
109
+ 'default': false
110
+ },
111
+ 'contains': { '$ref': '#' },
112
+ 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' },
113
+ 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
114
+ 'required': { '$ref': '#/definitions/stringArray' },
115
+ 'additionalProperties': { '$ref': '#' },
116
+ 'definitions': {
117
+ 'type': 'object',
118
+ 'additionalProperties': { '$ref': '#' },
119
+ 'default': {}
120
+ },
121
+ 'properties': {
122
+ 'type': 'object',
123
+ 'additionalProperties': { '$ref': '#' },
124
+ 'default': {}
125
+ },
126
+ 'patternProperties': {
127
+ 'type': 'object',
128
+ 'additionalProperties': { '$ref': '#' },
129
+ 'propertyNames': { 'format': 'regex' },
130
+ 'default': {}
131
+ },
132
+ 'dependencies': {
133
+ 'type': 'object',
134
+ 'additionalProperties': {
135
+ 'anyOf': [
136
+ { '$ref': '#' },
137
+ { '$ref': '#/definitions/stringArray' }
138
+ ]
139
+ }
140
+ },
141
+ 'propertyNames': { '$ref': '#' },
142
+ 'const': true,
143
+ 'enum': {
144
+ 'type': 'array',
145
+ 'items': true,
146
+ 'minItems': 1,
147
+ 'uniqueItems': true
148
+ },
149
+ 'type': {
150
+ 'anyOf': [
151
+ { '$ref': '#/definitions/simpleTypes' },
152
+ {
153
+ 'type': 'array',
154
+ 'items': { '$ref': '#/definitions/simpleTypes' },
155
+ 'minItems': 1,
156
+ 'uniqueItems': true
157
+ }
158
+ ]
159
+ },
160
+ 'format': { 'type': 'string' },
161
+ 'contentMediaType': { 'type': 'string' },
162
+ 'contentEncoding': { 'type': 'string' },
163
+ 'if': { '$ref': '#' },
164
+ 'then': { '$ref': '#' },
165
+ 'else': { '$ref': '#' },
166
+ 'allOf': { '$ref': '#/definitions/schemaArray' },
167
+ 'anyOf': { '$ref': '#/definitions/schemaArray' },
168
+ 'oneOf': { '$ref': '#/definitions/schemaArray' },
169
+ 'not': { '$ref': '#' }
170
+ },
171
+ 'default': true
172
+ };
@@ -0,0 +1,2 @@
1
+ export * from './schema.mjs';
2
+ export * from './meta.mjs';
@@ -0,0 +1,2 @@
1
+ export * from './schema.mjs';
2
+ export * from './meta.mjs';
@@ -0,0 +1,9 @@
1
+ /** A collection of all meta schemas. */
2
+ export declare const Meta: {
3
+ 'http://json-schema.org/draft-03/schema#': import("./schema.mjs").XMetaSchemaObject;
4
+ 'http://json-schema.org/draft-04/schema#': import("./schema.mjs").XMetaSchemaObject;
5
+ 'http://json-schema.org/draft-06/schema#': import("./schema.mjs").XMetaSchemaObject;
6
+ 'http://json-schema.org/draft-07/schema#': import("./schema.mjs").XMetaSchemaObject;
7
+ 'https://json-schema.org/draft/2019-09/schema': import("./schema.mjs").XMetaSchemaObject;
8
+ 'https://json-schema.org/draft/2020-12/schema': import("./schema.mjs").XMetaSchemaObject;
9
+ };
@@ -0,0 +1,15 @@
1
+ import { Draft_2020_12 } from './draft_2020_12.mjs';
2
+ import { Draft_2019_09 } from './draft_2019_09.mjs';
3
+ import { Draft_7 } from './draft_7.mjs';
4
+ import { Draft_6 } from './draft_6.mjs';
5
+ import { Draft_4 } from './draft_4.mjs';
6
+ import { Draft_3 } from './draft_3.mjs';
7
+ /** A collection of all meta schemas. */
8
+ export const Meta = {
9
+ 'http://json-schema.org/draft-03/schema#': Draft_3,
10
+ 'http://json-schema.org/draft-04/schema#': Draft_4,
11
+ 'http://json-schema.org/draft-06/schema#': Draft_6,
12
+ 'http://json-schema.org/draft-07/schema#': Draft_7,
13
+ 'https://json-schema.org/draft/2019-09/schema': Draft_2019_09,
14
+ 'https://json-schema.org/draft/2020-12/schema': Draft_2020_12
15
+ };
@@ -0,0 +1,6 @@
1
+ import type { XSchema } from '../types/schema.mjs';
2
+ /** Represents a JSON Schema meta-schema that infers as XSchema. */
3
+ export type XMetaSchemaObject = {
4
+ $schema: string;
5
+ ['~unsafe']: XSchema;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,7 @@ export declare class ParseError {
7
7
  errors: TLocalizedValidationError[];
8
8
  constructor(schema: Schema.XSchema, value: unknown, errors: TLocalizedValidationError[]);
9
9
  }
10
+ export declare function ThrowParseError(context: Record<PropertyKey, Schema.XSchema>, schema: Schema.XSchema, value: unknown): never;
10
11
  /** Parses a value against the provided schema */
11
12
  export declare function Parse<const Schema extends Schema.XSchema>(schema: Schema, value: unknown): Static<Schema>;
12
13
  /** Parses a value against the provided schema */
@@ -13,15 +13,20 @@ export class ParseError {
13
13
  this.errors = errors;
14
14
  }
15
15
  }
16
+ // ------------------------------------------------------------------
17
+ // ThrowParseError
18
+ // ------------------------------------------------------------------
19
+ export function ThrowParseError(context, schema, value) {
20
+ const result = Errors(context, schema, value);
21
+ throw new ParseError(schema, value, result[1]);
22
+ }
16
23
  /** Parses a value against the provided schema */
17
24
  export function Parse(...args) {
18
25
  const [context, schema, value] = Arguments.Match(args, {
19
26
  3: (context, schema, value) => [context, schema, value],
20
27
  2: (schema, value) => [{}, schema, value]
21
28
  });
22
- if (!Check(context, schema, value)) {
23
- const [_result, errors] = Errors(context, schema, value);
24
- throw new ParseError(schema, value, errors);
25
- }
26
- return value;
29
+ if (Check(context, schema, value))
30
+ return value;
31
+ ThrowParseError(context, schema, value);
27
32
  }
@@ -1,4 +1,9 @@
1
1
  import * as Schema from '../types/index.mjs';
2
- export declare const DefaultBase: URL;
3
- export declare function Ref(context: Record<string, Schema.XSchema>, schema: Schema.XSchemaObject, ref: string): Schema.XSchema | undefined;
4
- export declare function DynamicRef(context: Record<string, Schema.XSchema>, root: Schema.XSchemaObject, base: Schema.XSchemaObject, dynamicRef: Schema.XDynamicRef, dynamicAnchors: Schema.XDynamicAnchor[]): Schema.XSchema | undefined;
2
+ import * as Stack from '../engine/_stack.mjs';
3
+ export interface XRefResult {
4
+ schema: Schema.XSchema | undefined;
5
+ stack: Stack.XStack;
6
+ }
7
+ export declare function Ref(stack: Stack.XStack, ref: Schema.XRef): XRefResult;
8
+ export declare function RecursiveRef(stack: Stack.XStack, recursiveRef: Schema.XRecursiveRef): Schema.XSchema | undefined;
9
+ export declare function DynamicRef(stack: Stack.XStack, dynamicRef: Schema.XDynamicRef): Schema.XSchema | undefined;