@dipoleml/dcode-cli 1.0.0 → 1.2.0

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 (447) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +1081 -12
  2. package/dist/dcode.cjs +59155 -45279
  3. package/dist/packages/browser-use-plugin/README.md +12 -12
  4. package/dist/packages/browser-use-plugin/docs/api.json +1 -1
  5. package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
  6. package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
  7. package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
  8. package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
  9. package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
  10. package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
  11. package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
  12. package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
  13. package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
  14. package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
  15. package/dist/provider/dcode-builtin.json +6544 -183
  16. package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
  17. package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
  18. package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
  19. package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
  20. package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
  21. package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
  22. package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
  23. package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
  24. package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
  25. package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
  26. package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
  27. package/node_modules/@dcode/contracts/dist/index.js +2 -0
  28. package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
  29. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
  30. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
  31. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
  32. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
  33. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
  34. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
  35. package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
  36. package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
  37. package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
  38. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
  39. package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
  40. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
  41. package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
  42. package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
  43. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
  44. package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
  45. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
  46. package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
  47. package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
  48. package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
  49. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
  50. package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
  51. package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
  52. package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
  53. package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
  54. package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
  55. package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
  56. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
  57. package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
  58. package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
  59. package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
  60. package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
  61. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
  62. package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
  63. package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
  64. package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
  65. package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
  66. package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
  67. package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
  68. package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
  69. package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
  70. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
  71. package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
  72. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
  73. package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
  74. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
  75. package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
  76. package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
  77. package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
  78. package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
  79. package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
  80. package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
  81. package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
  82. package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
  83. package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
  84. package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
  85. package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
  86. package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
  87. package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
  88. package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
  89. package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
  90. package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
  91. package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
  92. package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
  93. package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
  94. package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
  95. package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
  96. package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
  97. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
  98. package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
  99. package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
  100. package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
  101. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
  102. package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
  103. package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
  104. package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
  105. package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
  106. package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
  107. package/node_modules/@dcode/i18n/dist/index.js +2 -2
  108. package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
  109. package/node_modules/@dcode/i18n/dist/locale.js +4 -4
  110. package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
  111. package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
  112. package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
  113. package/node_modules/@dcode/model-option-map/package.json +1 -1
  114. package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
  115. package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
  116. package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
  117. package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
  118. package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
  119. package/node_modules/@dcode/shared/dist/bots.d.ts +759 -11
  120. package/node_modules/@dcode/shared/dist/bots.js +236 -2
  121. package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
  122. package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
  123. package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
  124. package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
  125. package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
  126. package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
  127. package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
  128. package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
  129. package/node_modules/@dcode/shared/dist/channels.js +66 -0
  130. package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
  131. package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
  132. package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
  133. package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
  134. package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
  135. package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
  136. package/node_modules/@dcode/shared/dist/conversation-share.d.ts +378 -74
  137. package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
  138. package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
  139. package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
  140. package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
  141. package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
  142. package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
  143. package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
  144. package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
  145. package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +3215 -1800
  146. package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
  147. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
  148. package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
  149. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
  150. package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
  151. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
  152. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
  153. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
  154. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
  155. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
  156. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +388 -57
  157. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
  158. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +208 -103
  159. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
  160. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
  161. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
  162. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
  163. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
  164. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
  165. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
  166. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
  167. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
  168. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
  169. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
  170. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
  171. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
  172. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
  173. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
  174. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
  175. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
  176. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
  177. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
  178. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
  179. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
  180. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
  181. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7728 -1585
  182. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
  183. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
  184. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
  185. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
  186. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
  187. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
  188. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
  189. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
  190. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
  191. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
  192. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
  193. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
  194. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
  195. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
  196. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
  197. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
  198. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
  199. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
  200. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
  201. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
  202. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
  203. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
  204. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
  205. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
  206. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
  207. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
  208. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
  209. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
  210. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
  211. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
  212. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
  213. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
  214. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
  215. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
  216. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
  217. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
  218. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
  219. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
  220. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
  221. package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
  222. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
  223. package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
  224. package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
  225. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
  226. package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
  227. package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
  228. package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
  229. package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +22 -1
  230. package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +102 -17
  231. package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
  232. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
  233. package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
  234. package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
  235. package/node_modules/@dcode/shared/dist/env.js +9 -9
  236. package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
  237. package/node_modules/@dcode/shared/dist/errors.js +54 -0
  238. package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
  239. package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
  240. package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
  241. package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
  242. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
  243. package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
  244. package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
  245. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
  246. package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
  247. package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
  248. package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
  249. package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
  250. package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
  251. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
  252. package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
  253. package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
  254. package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
  255. package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
  256. package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
  257. package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
  258. package/node_modules/@dcode/shared/dist/index.js +24 -2
  259. package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
  260. package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
  261. package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
  262. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
  263. package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
  264. package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
  265. package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
  266. package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
  267. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
  268. package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
  269. package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
  270. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
  271. package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
  272. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
  273. package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
  274. package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
  275. package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
  276. package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
  277. package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
  278. package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
  279. package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
  280. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
  281. package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
  282. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
  283. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
  284. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
  285. package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
  286. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
  287. package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
  288. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
  289. package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
  290. package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
  291. package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
  292. package/node_modules/@dcode/shared/dist/memory.js +2 -0
  293. package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
  294. package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
  295. package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
  296. package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
  297. package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
  298. package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
  299. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
  300. package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
  301. package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
  302. package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
  303. package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
  304. package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
  305. package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
  306. package/node_modules/@dcode/shared/dist/node.js +2 -0
  307. package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
  308. package/node_modules/@dcode/shared/dist/output-style.js +2 -0
  309. package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
  310. package/node_modules/@dcode/shared/dist/platform.js +2 -0
  311. package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
  312. package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
  313. package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
  314. package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
  315. package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
  316. package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
  317. package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
  318. package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
  319. package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
  320. package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
  321. package/node_modules/@dcode/shared/dist/protocol.d.ts +46 -4
  322. package/node_modules/@dcode/shared/dist/protocol.js +1 -1
  323. package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
  324. package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
  325. package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
  326. package/node_modules/@dcode/shared/dist/providers.js +1 -1
  327. package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
  328. package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
  329. package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
  330. package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
  331. package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
  332. package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
  333. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
  334. package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
  335. package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
  336. package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
  337. package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
  338. package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
  339. package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
  340. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
  341. package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
  342. package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
  343. package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
  344. package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
  345. package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
  346. package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
  347. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
  348. package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
  349. package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
  350. package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
  351. package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
  352. package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
  353. package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
  354. package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
  355. package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
  356. package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
  357. package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
  358. package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
  359. package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
  360. package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
  361. package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
  362. package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
  363. package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
  364. package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
  365. package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
  366. package/node_modules/@dcode/shared/dist/validation.d.ts +1542 -166
  367. package/node_modules/@dcode/shared/dist/validation.js +423 -14
  368. package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +70 -14
  369. package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
  370. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
  371. package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
  372. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
  373. package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
  374. package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
  375. package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
  376. package/node_modules/@dcode/shared/package.json +5 -2
  377. package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
  378. package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
  379. package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
  380. package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
  381. package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
  382. package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
  383. package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
  384. package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
  385. package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
  386. package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
  387. package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
  388. package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
  389. package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
  390. package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
  391. package/node_modules/@dcode/tui/dist/app-input.js +1 -1
  392. package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
  393. package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
  394. package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
  395. package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
  396. package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
  397. package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
  398. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
  399. package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
  400. package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
  401. package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
  402. package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
  403. package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
  404. package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
  405. package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
  406. package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
  407. package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
  408. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
  409. package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
  410. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
  411. package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
  412. package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
  413. package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
  414. package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
  415. package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
  416. package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
  417. package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
  418. package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
  419. package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
  420. package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
  421. package/node_modules/@dcode/tui/dist/app-view.js +1 -1
  422. package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
  423. package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
  424. package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
  425. package/node_modules/@dcode/tui/dist/index.js +5117 -2578
  426. package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
  427. package/node_modules/@dcode/tui/dist/tui.js +1 -1
  428. package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
  429. package/node_modules/oniguruma-parser/LICENSE +1 -1
  430. package/node_modules/oniguruma-parser/README.md +15 -61
  431. package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
  432. package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
  433. package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
  434. package/node_modules/oniguruma-parser/package.json +5 -5
  435. package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
  436. package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
  437. package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
  438. package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
  439. package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
  440. package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
  441. package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
  442. package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
  443. package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
  444. package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
  445. package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
  446. package/node_modules/oniguruma-to-es/package.json +5 -5
  447. package/package.json +5 -5
@@ -145,7 +145,7 @@ function getOptions(options = {}) {
145
145
  return opts;
146
146
  }
147
147
 
148
- // node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/utils.js
148
+ // node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/utils.js
149
149
  function r2(e) {
150
150
  if ([...e].length !== 1) throw new Error(`Expected "${e}" to be a single code point`);
151
151
  return e.codePointAt(0);
@@ -160,7 +160,7 @@ function u(e, t) {
160
160
  return e;
161
161
  }
162
162
 
163
- // node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
163
+ // node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
164
164
  var m = o`\[\^?`;
165
165
  var b = `c.? | C(?:-.?)?|${o`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${o`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${o`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${o`o\{[^\}]*\}?`}|${o`\d{1,3}`}`;
166
166
  var y = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/;
@@ -518,7 +518,7 @@ function te(e) {
518
518
  return n;
519
519
  }
520
520
 
521
- // node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/node-utils.js
521
+ // node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/node-utils.js
522
522
  function o2(e, t) {
523
523
  if (!Array.isArray(e.body)) throw new Error("Expected node with body array");
524
524
  if (e.body.length !== 1) return false;
@@ -530,142 +530,142 @@ function s(e) {
530
530
  }
531
531
  var y2 = /* @__PURE__ */ new Set(["AbsenceFunction", "Backreference", "CapturingGroup", "Character", "CharacterClass", "CharacterSet", "Group", "Quantifier", "Subroutine"]);
532
532
 
533
- // node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/parser/parse.js
533
+ // node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/parse.js
534
534
  function J2(e, r4 = {}) {
535
- const n = { flags: "", normalizeUnknownPropertyNames: false, skipBackrefValidation: false, skipLookbehindValidation: false, skipPropertyNameValidation: false, unicodePropertyMap: null, ...r4, rules: { captureGroup: false, singleline: false, ...r4.rules } }, o3 = M(e, { flags: n.flags, rules: { captureGroup: n.rules.captureGroup, singleline: n.rules.singleline } }), i2 = (p, N) => {
536
- const u2 = o3.tokens[t.nextIndex];
537
- switch (t.parent = p, t.nextIndex++, u2.type) {
535
+ const n = { flags: "", normalizeUnknownPropertyNames: false, skipBackrefValidation: false, skipLookbehindValidation: false, skipPropertyNameValidation: false, unicodePropertyMap: null, ...r4, rules: { captureGroup: false, singleline: false, ...r4.rules } }, t = M(e, { flags: n.flags, rules: { captureGroup: n.rules.captureGroup, singleline: n.rules.singleline } }), s2 = (p, N) => {
536
+ const u2 = t.tokens[o3.nextIndex];
537
+ switch (o3.parent = p, o3.nextIndex++, u2.type) {
538
538
  case "Alternator":
539
539
  return b2();
540
540
  case "Assertion":
541
541
  return W2(u2);
542
542
  case "Backreference":
543
- return X2(u2, t);
543
+ return X2(u2, o3);
544
544
  case "Character":
545
545
  return m2(u2.value, { useLastValid: !!N.isCheckingRangeEnd });
546
546
  case "CharacterClassHyphen":
547
- return ee2(u2, t, N);
547
+ return ee2(u2, o3, N);
548
548
  case "CharacterClassOpen":
549
- return re(u2, t, N);
549
+ return re(u2, o3, N);
550
550
  case "CharacterSet":
551
- return ne(u2, t);
551
+ return ne(u2, o3);
552
552
  case "Directive":
553
553
  return I2(u2.kind, { flags: u2.flags });
554
554
  case "GroupOpen":
555
- return te2(u2, t, N);
555
+ return te2(u2, o3, N);
556
556
  case "NamedCallout":
557
557
  return U2(u2.kind, u2.tag, u2.arguments);
558
558
  case "Quantifier":
559
- return oe(u2, t);
559
+ return oe(u2, o3);
560
560
  case "Subroutine":
561
- return ae(u2, t);
561
+ return ae(u2, o3);
562
562
  default:
563
563
  throw new Error(`Unexpected token type "${u2.type}"`);
564
564
  }
565
- }, t = { capturingGroups: [], hasNumberedRef: false, namedGroupsByName: /* @__PURE__ */ new Map(), nextIndex: 0, normalizeUnknownPropertyNames: n.normalizeUnknownPropertyNames, parent: null, skipBackrefValidation: n.skipBackrefValidation, skipLookbehindValidation: n.skipLookbehindValidation, skipPropertyNameValidation: n.skipPropertyNameValidation, subroutines: [], tokens: o3.tokens, unicodePropertyMap: n.unicodePropertyMap, walk: i2 }, d2 = B2(T2(o3.flags));
566
- let s2 = d2.body[0];
567
- for (; t.nextIndex < o3.tokens.length; ) {
568
- const p = i2(s2, {});
569
- p.type === "Alternative" ? (d2.body.push(p), s2 = p) : s2.body.push(p);
565
+ }, o3 = { capturingGroups: [], hasNumberedRef: false, namedGroupsByName: /* @__PURE__ */ new Map(), nextIndex: 0, normalizeUnknownPropertyNames: n.normalizeUnknownPropertyNames, parent: null, skipBackrefValidation: n.skipBackrefValidation, skipLookbehindValidation: n.skipLookbehindValidation, skipPropertyNameValidation: n.skipPropertyNameValidation, subroutines: [], tokens: t.tokens, unicodePropertyMap: n.unicodePropertyMap, walk: s2 }, i2 = B2(T2(t.flags));
566
+ let d2 = i2.body[0];
567
+ for (; o3.nextIndex < t.tokens.length; ) {
568
+ const p = s2(d2, {});
569
+ p.type === "Alternative" ? (i2.body.push(p), d2 = p) : d2.body.push(p);
570
570
  }
571
- const { capturingGroups: a2, hasNumberedRef: l3, namedGroupsByName: c, subroutines: f2 } = t;
571
+ const { capturingGroups: a2, hasNumberedRef: l3, namedGroupsByName: c, subroutines: f3 } = o3;
572
572
  if (l3 && c.size && !n.rules.captureGroup) throw new Error("Numbered backref/subroutine not allowed when using named capture");
573
- for (const { ref: p } of f2) if (typeof p == "number") {
573
+ for (const { ref: p } of f3) if (typeof p == "number") {
574
574
  if (p > a2.length) throw new Error("Subroutine uses a group number that's not defined");
575
575
  p && (a2[p - 1].isSubroutined = true);
576
576
  } else if (c.has(p)) {
577
577
  if (c.get(p).length > 1) throw new Error(o`Subroutine uses a duplicate group name "\g<${p}>"`);
578
578
  c.get(p)[0].isSubroutined = true;
579
579
  } else throw new Error(o`Subroutine uses a group name that's not defined "\g<${p}>"`);
580
- return d2;
580
+ return i2;
581
581
  }
582
582
  function W2({ kind: e }) {
583
583
  return F2(u({ "^": "line_start", $: "line_end", "\\A": "string_start", "\\b": "word_boundary", "\\B": "word_boundary", "\\G": "search_start", "\\y": "text_segment_boundary", "\\Y": "text_segment_boundary", "\\z": "string_end", "\\Z": "string_end_newline" }[e], `Unexpected assertion kind "${e}"`), { negate: e === o`\B` || e === o`\Y` });
584
584
  }
585
585
  function X2({ raw: e }, r4) {
586
- const n = /^\\k[<']/.test(e), o3 = n ? e.slice(3, -1) : e.slice(1), i2 = (t, d2 = false) => {
587
- const s2 = r4.capturingGroups.length;
586
+ const n = /^\\k[<']/.test(e), t = n ? e.slice(3, -1) : e.slice(1), s2 = (o3, i2 = false) => {
587
+ const d2 = r4.capturingGroups.length;
588
588
  let a2 = false;
589
- if (t > s2) if (r4.skipBackrefValidation) a2 = true;
589
+ if (o3 > d2) if (r4.skipBackrefValidation) a2 = true;
590
590
  else throw new Error(`Not enough capturing groups defined to the left "${e}"`);
591
- return r4.hasNumberedRef = true, k2(d2 ? s2 + 1 - t : t, { orphan: a2 });
591
+ return r4.hasNumberedRef = true, k2(i2 ? d2 + 1 - o3 : o3, { orphan: a2 });
592
592
  };
593
593
  if (n) {
594
- const t = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(o3);
595
- if (t) return i2(+t.groups.num, !!t.groups.sign);
596
- if (/[-+]/.test(o3)) throw new Error(`Invalid backref name "${e}"`);
597
- if (!r4.namedGroupsByName.has(o3)) throw new Error(`Group name not defined to the left "${e}"`);
598
- return k2(o3);
594
+ const o3 = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(t);
595
+ if (o3) return s2(+o3.groups.num, !!o3.groups.sign);
596
+ if (/[-+]/.test(t)) throw new Error(`Invalid backref name "${e}"`);
597
+ if (!r4.namedGroupsByName.has(t)) throw new Error(`Group name not defined to the left "${e}"`);
598
+ return k2(t);
599
599
  }
600
- return i2(+o3);
600
+ return s2(+t);
601
601
  }
602
602
  function ee2(e, r4, n) {
603
- const { tokens: o3, walk: i2 } = r4, t = r4.parent, d2 = t.body.at(-1), s2 = o3[r4.nextIndex];
604
- if (!n.isCheckingRangeEnd && d2 && d2.type !== "CharacterClass" && d2.type !== "CharacterClassRange" && s2 && s2.type !== "CharacterClassOpen" && s2.type !== "CharacterClassClose" && s2.type !== "CharacterClassIntersector") {
605
- const a2 = i2(t, { ...n, isCheckingRangeEnd: true });
606
- if (d2.type === "Character" && a2.type === "Character") return t.body.pop(), L2(d2, a2);
603
+ const { tokens: t, walk: s2 } = r4, o3 = r4.parent, i2 = o3.body.at(-1), d2 = t[r4.nextIndex];
604
+ if (!n.isCheckingRangeEnd && i2 && i2.type !== "CharacterClass" && i2.type !== "CharacterClassRange" && d2 && d2.type !== "CharacterClassOpen" && d2.type !== "CharacterClassClose" && d2.type !== "CharacterClassIntersector") {
605
+ const a2 = s2(o3, { ...n, isCheckingRangeEnd: true });
606
+ if (i2.type === "Character" && a2.type === "Character") return o3.body.pop(), L2(i2, a2);
607
607
  throw new Error("Invalid character class range");
608
608
  }
609
609
  return m2(r2("-"));
610
610
  }
611
611
  function re({ negate: e }, r4, n) {
612
- const { tokens: o3, walk: i2 } = r4, t = [C2()], d2 = o3[r4.nextIndex];
613
- let s2 = z2(d2);
614
- for (; s2.type !== "CharacterClassClose"; ) {
615
- if (s2.type === "CharacterClassIntersector") t.push(C2()), r4.nextIndex++;
612
+ const { tokens: t, walk: s2 } = r4, o3 = t[r4.nextIndex], i2 = [C2()];
613
+ let d2 = z2(o3);
614
+ for (; d2.type !== "CharacterClassClose"; ) {
615
+ if (d2.type === "CharacterClassIntersector") i2.push(C2()), r4.nextIndex++;
616
616
  else {
617
- const l3 = t.at(-1);
618
- l3.body.push(i2(l3, n));
617
+ const l3 = i2.at(-1);
618
+ l3.body.push(s2(l3, n));
619
619
  }
620
- s2 = z2(o3[r4.nextIndex], d2);
620
+ d2 = z2(t[r4.nextIndex], o3);
621
621
  }
622
622
  const a2 = C2({ negate: e });
623
- return t.length === 1 ? a2.body = t[0].body : (a2.kind = "intersection", a2.body = t.map((l3) => l3.body.length === 1 ? l3.body[0] : l3)), r4.nextIndex++, a2;
623
+ return i2.length === 1 ? a2.body = i2[0].body : (a2.kind = "intersection", a2.body = i2.map((l3) => l3.body.length === 1 ? l3.body[0] : l3)), r4.nextIndex++, a2;
624
624
  }
625
- function ne({ kind: e, negate: r4, value: n }, o3) {
626
- const { normalizeUnknownPropertyNames: i2, skipPropertyNameValidation: t, unicodePropertyMap: d2 } = o3;
625
+ function ne({ kind: e, negate: r4, value: n }, t) {
626
+ const { normalizeUnknownPropertyNames: s2, skipPropertyNameValidation: o3, unicodePropertyMap: i2 } = t;
627
627
  if (e === "property") {
628
- const s2 = w2(n);
629
- if (i.has(s2) && !d2?.has(s2)) e = "posix", n = s2;
630
- else return Q2(n, { negate: r4, normalizeUnknownPropertyNames: i2, skipPropertyNameValidation: t, unicodePropertyMap: d2 });
628
+ const d2 = w2(n);
629
+ if (i.has(d2) && !i2?.has(d2)) e = "posix", n = d2;
630
+ else return Q2(n, { negate: r4, normalizeUnknownPropertyNames: s2, skipPropertyNameValidation: o3, unicodePropertyMap: i2 });
631
631
  }
632
632
  return e === "posix" ? R2(n, { negate: r4 }) : E2(e, { negate: r4 });
633
633
  }
634
634
  function te2(e, r4, n) {
635
- const { tokens: o3, capturingGroups: i2, namedGroupsByName: t, skipLookbehindValidation: d2, walk: s2 } = r4, a2 = ie(e), l3 = a2.type === "AbsenceFunction", c = $2(a2), f2 = c && a2.negate;
636
- if (a2.type === "CapturingGroup" && (i2.push(a2), a2.name && l(t, a2.name, []).push(a2)), l3 && n.isInAbsenceFunction) throw new Error("Nested absence function not supported by Oniguruma");
637
- let p = D2(o3[r4.nextIndex]);
635
+ const { tokens: t, capturingGroups: s2, namedGroupsByName: o3, skipLookbehindValidation: i2, walk: d2 } = r4, a2 = ie(e), l3 = a2.type === "AbsenceFunction", c = $2(a2), f3 = c && a2.negate;
636
+ if (a2.type === "CapturingGroup" && (s2.push(a2), a2.name && l(o3, a2.name, []).push(a2)), l3 && n.isInAbsenceFunction) throw new Error("Nested absence function not supported by Oniguruma");
637
+ let p = D2(t[r4.nextIndex]);
638
638
  for (; p.type !== "GroupClose"; ) {
639
639
  if (p.type === "Alternator") a2.body.push(b2()), r4.nextIndex++;
640
640
  else {
641
- const N = a2.body.at(-1), u2 = s2(N, { ...n, isInAbsenceFunction: n.isInAbsenceFunction || l3, isInLookbehind: n.isInLookbehind || c, isInNegLookbehind: n.isInNegLookbehind || f2 });
642
- if (N.body.push(u2), (c || n.isInLookbehind) && !d2) {
641
+ const N = a2.body.at(-1), u2 = d2(N, { ...n, isInAbsenceFunction: n.isInAbsenceFunction || l3, isInLookbehind: n.isInLookbehind || c, isInNegLookbehind: n.isInNegLookbehind || f3 });
642
+ if (N.body.push(u2), (c || n.isInLookbehind) && !i2) {
643
643
  const v2 = "Lookbehind includes a pattern not allowed by Oniguruma";
644
- if (f2 || n.isInNegLookbehind) {
644
+ if (f3 || n.isInNegLookbehind) {
645
645
  if (M2(u2) || u2.type === "CapturingGroup") throw new Error(v2);
646
646
  } else if (M2(u2) || $2(u2) && u2.negate) throw new Error(v2);
647
647
  }
648
648
  }
649
- p = D2(o3[r4.nextIndex]);
649
+ p = D2(t[r4.nextIndex]);
650
650
  }
651
651
  return r4.nextIndex++, a2;
652
652
  }
653
- function oe({ kind: e, min: r4, max: n }, o3) {
654
- const i2 = o3.parent, t = i2.body.at(-1);
655
- if (!t || !s(t)) throw new Error("Quantifier requires a repeatable token");
656
- const d2 = _2(e, r4, n, t);
657
- return i2.body.pop(), d2;
653
+ function oe({ kind: e, min: r4, max: n }, t) {
654
+ const s2 = t.parent, o3 = s2.body.at(-1);
655
+ if (!o3 || !s(o3)) throw new Error("Quantifier requires a repeatable token");
656
+ const i2 = _2(e, r4, n, o3);
657
+ return s2.body.pop(), i2;
658
658
  }
659
659
  function ae({ raw: e }, r4) {
660
- const { capturingGroups: n, subroutines: o3 } = r4;
661
- let i2 = e.slice(3, -1);
662
- const t = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i2);
663
- if (t) {
664
- const s2 = +t.groups.num, a2 = n.length;
665
- if (r4.hasNumberedRef = true, i2 = { "": s2, "+": a2 + s2, "-": a2 + 1 - s2 }[t.groups.sign], i2 < 1) throw new Error("Invalid subroutine number");
666
- } else i2 === "0" && (i2 = 0);
667
- const d2 = O2(i2);
668
- return o3.push(d2), d2;
660
+ const { capturingGroups: n, subroutines: t } = r4;
661
+ let s2 = e.slice(3, -1);
662
+ const o3 = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s2);
663
+ if (o3) {
664
+ const d2 = +o3.groups.num, a2 = n.length;
665
+ if (r4.hasNumberedRef = true, s2 = { "": d2, "+": a2 + d2, "-": a2 + 1 - d2 }[o3.groups.sign], s2 < 1) throw new Error("Invalid subroutine number");
666
+ } else s2 === "0" && (s2 = 0);
667
+ const i2 = O2(s2);
668
+ return t.push(i2), i2;
669
669
  }
670
670
  function G(e, r4) {
671
671
  if (e !== "repeater") throw new Error(`Unexpected absence function kind "${e}"`);
@@ -690,9 +690,9 @@ function P2(e, r4) {
690
690
  function m2(e, r4) {
691
691
  const n = { useLastValid: false, ...r4 };
692
692
  if (e > 1114111) {
693
- const o3 = e.toString(16);
693
+ const t = e.toString(16);
694
694
  if (n.useLastValid) e = 1114111;
695
- else throw e > 1310719 ? new Error(`Invalid code point out of range "\\x{${o3}}"`) : new Error(`Invalid code point out of range in JS "\\x{${o3}}"`);
695
+ else throw e > 1310719 ? new Error(`Invalid code point out of range "\\x{${t}}"`) : new Error(`Invalid code point out of range in JS "\\x{${t}}"`);
696
696
  }
697
697
  return { type: "Character", value: e };
698
698
  }
@@ -705,8 +705,8 @@ function L2(e, r4) {
705
705
  return { type: "CharacterClassRange", min: e, max: r4 };
706
706
  }
707
707
  function E2(e, r4) {
708
- const n = !!r4?.negate, o3 = { type: "CharacterSet", kind: e };
709
- return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (o3.negate = n), (e === "text_segment" || e === "newline" && !n) && (o3.variableLength = true), o3;
708
+ const n = !!r4?.negate, t = { type: "CharacterSet", kind: e };
709
+ return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (t.negate = n), (e === "text_segment" || e === "newline" && !n) && (t.variableLength = true), t;
710
710
  }
711
711
  function I2(e, r4 = {}) {
712
712
  if (e === "keep") return { type: "Directive", kind: e };
@@ -733,9 +733,9 @@ function R2(e, r4) {
733
733
  if (!i.has(e)) throw new Error(`Invalid POSIX class "${e}"`);
734
734
  return { type: "CharacterSet", kind: "posix", value: e, negate: n };
735
735
  }
736
- function _2(e, r4, n, o3) {
736
+ function _2(e, r4, n, t) {
737
737
  if (r4 > n) throw new Error("Invalid reversed quantifier range");
738
- return { type: "Quantifier", kind: e, min: r4, max: n, body: o3 };
738
+ return { type: "Quantifier", kind: e, min: r4, max: n, body: t };
739
739
  }
740
740
  function B2(e, r4) {
741
741
  return { type: "Regex", body: h(r4?.body), flags: e };
@@ -745,26 +745,26 @@ function O2(e) {
745
745
  }
746
746
  function Q2(e, r4) {
747
747
  const n = { negate: false, normalizeUnknownPropertyNames: false, skipPropertyNameValidation: false, unicodePropertyMap: null, ...r4 };
748
- let o3 = n.unicodePropertyMap?.get(w2(e));
749
- if (!o3) {
750
- if (n.normalizeUnknownPropertyNames) o3 = de(e);
748
+ let t = n.unicodePropertyMap?.get(w2(e));
749
+ if (!t) {
750
+ if (n.normalizeUnknownPropertyNames) t = de(e);
751
751
  else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw new Error(o`Invalid Unicode property "\p{${e}}"`);
752
752
  }
753
- return { type: "CharacterSet", kind: "property", value: o3 ?? e, negate: n.negate };
753
+ return { type: "CharacterSet", kind: "property", value: t ?? e, negate: n.negate };
754
754
  }
755
- function ie({ flags: e, kind: r4, name: n, negate: o3, number: i2 }) {
755
+ function ie({ flags: e, kind: r4, name: n, negate: t, number: s2 }) {
756
756
  switch (r4) {
757
757
  case "absence_repeater":
758
758
  return G("repeater");
759
759
  case "atomic":
760
760
  return A2({ atomic: true });
761
761
  case "capturing":
762
- return P2(i2, { name: n });
762
+ return P2(s2, { name: n });
763
763
  case "group":
764
764
  return A2({ flags: e });
765
765
  case "lookahead":
766
766
  case "lookbehind":
767
- return K2({ behind: r4 === "lookbehind", negate: o3 });
767
+ return K2({ behind: r4 === "lookbehind", negate: t });
768
768
  default:
769
769
  throw new Error(`Unexpected group kind "${r4}"`);
770
770
  }
@@ -795,8 +795,7 @@ function w2(e) {
795
795
  return e.replace(/[- _]+/g, "").toLowerCase();
796
796
  }
797
797
  function z2(e, r4) {
798
- const n = r4;
799
- return u(e, `Unclosed character class${n?.type === "Character" && n.value === 93 && n.raw === "]" ? ' (started with "]")' : ""}`);
798
+ return u(e, `${r4?.type === "Character" && r4.value === 93 ? "Empty" : "Unclosed"} character class`);
800
799
  }
801
800
  function D2(e) {
802
801
  return u(e, "Unclosed group");
@@ -999,9 +998,9 @@ var UnicodePropertiesWithSpecificCase = /* @__PURE__ */ new Set([
999
998
  // undesired behavior anyway
1000
999
  ]);
1001
1000
 
1002
- // node_modules/.pnpm/oniguruma-parser@0.12.2/node_modules/oniguruma-parser/dist/traverser/traverse.js
1001
+ // node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/traverser/traverse.js
1003
1002
  function S(a2, v2, N = null) {
1004
- function b3(e, s2) {
1003
+ function u2(e, s2) {
1005
1004
  for (let t = 0; t < e.length; t++) {
1006
1005
  const r4 = n(e[t], s2, t, e);
1007
1006
  t = Math.max(-1, t + r4);
@@ -1010,33 +1009,34 @@ function S(a2, v2, N = null) {
1010
1009
  function n(e, s2 = null, t = null, r4 = null) {
1011
1010
  let i2 = 0, c = false;
1012
1011
  const d2 = { node: e, parent: s2, key: t, container: r4, root: a2, remove() {
1013
- x2(r4).splice(Math.max(0, l2(t) + i2), 1), i2--, c = true;
1012
+ f2(r4).splice(Math.max(0, l2(t) + i2), 1), i2--, c = true;
1014
1013
  }, removeAllNextSiblings() {
1015
- return x2(r4).splice(l2(t) + 1);
1014
+ return f2(r4).splice(l2(t) + 1);
1016
1015
  }, removeAllPrevSiblings() {
1017
1016
  const o3 = l2(t) + i2;
1018
- return i2 -= o3, x2(r4).splice(0, Math.max(0, o3));
1019
- }, replaceWith(o3, m3 = {}) {
1020
- const y3 = !!m3.traverse;
1021
- r4 ? r4[Math.max(0, l2(t) + i2)] = o3 : u(s2, "Can't replace root node")[t] = o3, y3 && n(o3, s2, t, r4), c = true;
1022
- }, replaceWithMultiple(o3, m3 = {}) {
1023
- const y3 = !!m3.traverse;
1024
- if (x2(r4).splice(Math.max(0, l2(t) + i2), 1, ...o3), i2 += o3.length - 1, y3) {
1017
+ return i2 -= o3, f2(r4).splice(0, Math.max(0, o3));
1018
+ }, replaceWith(o3, y3 = {}) {
1019
+ const b3 = !!y3.traverse;
1020
+ r4 ? r4[Math.max(0, l2(t) + i2)] = o3 : u(s2, "Can't replace root node")[t] = o3, b3 && n(o3, s2, t, r4), c = true;
1021
+ }, replaceWithMultiple(o3, y3 = {}) {
1022
+ const b3 = !!y3.traverse;
1023
+ if (f2(r4).splice(Math.max(0, l2(t) + i2), 1, ...o3), i2 += o3.length - 1, b3) {
1025
1024
  let g = 0;
1026
- for (let p = 0; p < o3.length; p++) g += n(o3[p], s2, l2(t) + p + g, r4);
1025
+ for (let x2 = 0; x2 < o3.length; x2++) g += n(o3[x2], s2, l2(t) + x2 + g, r4);
1027
1026
  }
1028
1027
  c = true;
1029
1028
  }, skip() {
1030
1029
  c = true;
1031
- } }, { type: f2 } = e, u2 = v2["*"], h2 = v2[f2], R3 = typeof u2 == "function" ? u2 : u2?.enter, P3 = typeof h2 == "function" ? h2 : h2?.enter;
1032
- if (R3?.(d2, N), P3?.(d2, N), !c) switch (f2) {
1030
+ } }, { type: m3 } = e, h2 = v2["*"], p = v2[m3], R3 = typeof h2 == "function" ? h2 : h2?.enter, P3 = typeof p == "function" ? p : p?.enter;
1031
+ if (R3?.(d2, N), P3?.(d2, N), !c) switch (m3) {
1033
1032
  case "AbsenceFunction":
1034
- case "Alternative":
1035
1033
  case "CapturingGroup":
1036
- case "CharacterClass":
1037
1034
  case "Group":
1038
- case "LookaroundAssertion":
1039
- b3(e.body, e);
1035
+ u2(e.body, e);
1036
+ break;
1037
+ case "Alternative":
1038
+ case "CharacterClass":
1039
+ u2(e.body, e);
1040
1040
  break;
1041
1041
  case "Assertion":
1042
1042
  case "Backreference":
@@ -1050,20 +1050,23 @@ function S(a2, v2, N = null) {
1050
1050
  case "CharacterClassRange":
1051
1051
  n(e.min, e, "min"), n(e.max, e, "max");
1052
1052
  break;
1053
+ case "LookaroundAssertion":
1054
+ u2(e.body, e);
1055
+ break;
1053
1056
  case "Quantifier":
1054
1057
  n(e.body, e, "body");
1055
1058
  break;
1056
1059
  case "Regex":
1057
- b3(e.body, e), n(e.flags, e, "flags");
1060
+ u2(e.body, e), n(e.flags, e, "flags");
1058
1061
  break;
1059
1062
  default:
1060
- throw new Error(`Unexpected node type "${f2}"`);
1063
+ throw new Error(`Unexpected node type "${m3}"`);
1061
1064
  }
1062
- return h2?.exit?.(d2, N), u2?.exit?.(d2, N), i2;
1065
+ return p?.exit?.(d2, N), h2?.exit?.(d2, N), i2;
1063
1066
  }
1064
1067
  return n(a2), a2;
1065
1068
  }
1066
- function x2(a2) {
1069
+ function f2(a2) {
1067
1070
  if (!Array.isArray(a2)) throw new Error("Container expected");
1068
1071
  return a2;
1069
1072
  }
@@ -1343,7 +1346,7 @@ var FirstPassVisitor = {
1343
1346
  // Flag W
1344
1347
  "textSegmentMode"
1345
1348
  // Flag y{g} or y{w}
1346
- ].forEach((f2) => delete node[f2]);
1349
+ ].forEach((f3) => delete node[f3]);
1347
1350
  Object.assign(node, {
1348
1351
  // JS flag g; no Onig equiv
1349
1352
  global: false,
@@ -1512,9 +1515,7 @@ var SecondPassVisitor = {
1512
1515
  }
1513
1516
  },
1514
1517
  exit({ node }, { openRefs }) {
1515
- if (openRefs.get(node.number) === node) {
1516
- openRefs.delete(node.number);
1517
- }
1518
+ openRefs.delete(node.number);
1518
1519
  }
1519
1520
  },
1520
1521
  Group: {
@@ -2720,7 +2721,7 @@ function atomic(expression, data) {
2720
2721
  captureTransfers.forEach((from, to) => {
2721
2722
  newCaptureTransfers.set(
2722
2723
  to >= addedCaptureNum ? to + 1 : to,
2723
- from.map((f2) => f2 >= addedCaptureNum ? f2 + 1 : f2)
2724
+ from.map((f3) => f3 >= addedCaptureNum ? f3 + 1 : f3)
2724
2725
  );
2725
2726
  });
2726
2727
  captureTransfers = newCaptureTransfers;
@@ -3059,18 +3060,18 @@ function mapCaptureTransfers(captureTransfers, left, reps, numCapturesAddedInExp
3059
3060
  const numCapturesAddedInLeft = numCapturesInLeft * reps;
3060
3061
  const newTo = to > recursionDelimCaptureNum + numCapturesInLeft ? to + numCapturesAddedInExpansion : to;
3061
3062
  const newFrom = [];
3062
- for (const f2 of from) {
3063
- if (f2 <= recursionDelimCaptureNum) {
3064
- newFrom.push(f2);
3065
- } else if (f2 > recursionDelimCaptureNum + numCapturesInLeft + numCapturesInRight) {
3066
- newFrom.push(f2 + numCapturesAddedInExpansion);
3067
- } else if (f2 <= recursionDelimCaptureNum + numCapturesInLeft) {
3063
+ for (const f3 of from) {
3064
+ if (f3 <= recursionDelimCaptureNum) {
3065
+ newFrom.push(f3);
3066
+ } else if (f3 > recursionDelimCaptureNum + numCapturesInLeft + numCapturesInRight) {
3067
+ newFrom.push(f3 + numCapturesAddedInExpansion);
3068
+ } else if (f3 <= recursionDelimCaptureNum + numCapturesInLeft) {
3068
3069
  for (let i2 = 0; i2 <= reps; i2++) {
3069
- newFrom.push(f2 + numCapturesInLeft * i2);
3070
+ newFrom.push(f3 + numCapturesInLeft * i2);
3070
3071
  }
3071
3072
  } else {
3072
3073
  for (let i2 = 0; i2 <= reps; i2++) {
3073
- newFrom.push(f2 + numCapturesAddedInLeft + numCapturesInRight * i2);
3074
+ newFrom.push(f3 + numCapturesAddedInLeft + numCapturesInRight * i2);
3074
3075
  }
3075
3076
  }
3076
3077
  }
@@ -23,13 +23,13 @@ export class EmulatedRegExp extends RegExp {
23
23
  @param {string} [flags]
24
24
  @param {EmulatedRegExpOptions} [options]
25
25
  */
26
- constructor(pattern: string, flags?: string | undefined, options?: EmulatedRegExpOptions | undefined);
26
+ constructor(pattern: string, flags?: string, options?: EmulatedRegExpOptions);
27
27
  /**
28
28
  @overload
29
29
  @param {EmulatedRegExp} pattern
30
30
  @param {string} [flags]
31
31
  */
32
- constructor(pattern: EmulatedRegExp, flags?: string | undefined);
32
+ constructor(pattern: EmulatedRegExp, flags?: string);
33
33
  /**
34
34
  Can be used to serialize the instance.
35
35
  @type {EmulatedRegExpOptions}
@@ -1,4 +1,4 @@
1
- export type RegexPlusAst = OnigurumaAst & {
1
+ export type RegexPlusAst = createAlternative & {
2
2
  options: {
3
3
  disable: {
4
4
  [key: string]: boolean;
@@ -7,7 +7,7 @@ export type RegexPlusAst = OnigurumaAst & {
7
7
  [key: string]: boolean;
8
8
  };
9
9
  };
10
- _originMap: Map<CapturingGroupNode, CapturingGroupNode>;
10
+ _originMap: Map<createAlternative, createAlternative>;
11
11
  _strategy: string | null;
12
12
  };
13
13
  /**
@@ -44,11 +44,9 @@ AST represents what's needed to precisely reproduce Oniguruma behavior using Reg
44
44
  }} [options]
45
45
  @returns {RegexPlusAst}
46
46
  */
47
- export function transform(ast: OnigurumaAst, options?: {
47
+ export function transform(ast: createAlternative, options?: {
48
48
  accuracy?: "default" | "strict";
49
49
  asciiWordBoundaries?: boolean;
50
50
  avoidSubclass?: boolean;
51
51
  bestEffortTarget?: "auto" | "ES2025" | "ES2024" | "ES2018";
52
52
  }): RegexPlusAst;
53
- import type { OnigurumaAst } from 'oniguruma-parser/parser';
54
- import type { CapturingGroupNode } from 'oniguruma-parser/parser';
@@ -1,6 +1,6 @@
1
1
  export const asciiSpaceChar: "[\t-\r ]";
2
2
  export const defaultWordChar: string;
3
3
  export function getIgnoreCaseMatchChars(char: any): any[];
4
- export const JsUnicodePropertyMap: Map<string, string>;
4
+ export const JsUnicodePropertyMap: Map<any, string>;
5
5
  export const PosixClassMap: Map<string, string>;
6
6
  export const UnicodePropertiesWithSpecificCase: Set<string>;
@@ -19,7 +19,7 @@ Generates a Regex+ compatible `pattern`, `flags`, and `options` from a Regex+ AS
19
19
  export function generate(ast: RegexPlusAst, options?: ToRegExpOptions): {
20
20
  pattern: string;
21
21
  flags: string;
22
- options: Object;
22
+ options: any;
23
23
  _captureTransfers: Map<number, Array<number>>;
24
24
  _hiddenCaptures: Array<number>;
25
25
  };
@@ -758,9 +758,7 @@ var SecondPassVisitor = {
758
758
  }
759
759
  },
760
760
  exit({ node }, { openRefs }) {
761
- if (openRefs.get(node.number) === node) {
762
- openRefs.delete(node.number);
763
- }
761
+ openRefs.delete(node.number);
764
762
  }
765
763
  },
766
764
  Group: {
@@ -23,13 +23,13 @@ export class EmulatedRegExp extends RegExp {
23
23
  @param {string} [flags]
24
24
  @param {EmulatedRegExpOptions} [options]
25
25
  */
26
- constructor(pattern: string, flags?: string | undefined, options?: EmulatedRegExpOptions | undefined);
26
+ constructor(pattern: string, flags?: string, options?: EmulatedRegExpOptions);
27
27
  /**
28
28
  @overload
29
29
  @param {EmulatedRegExp} pattern
30
30
  @param {string} [flags]
31
31
  */
32
- constructor(pattern: EmulatedRegExp, flags?: string | undefined);
32
+ constructor(pattern: EmulatedRegExp, flags?: string);
33
33
  /**
34
34
  Can be used to serialize the instance.
35
35
  @type {EmulatedRegExpOptions}
@@ -1,4 +1,4 @@
1
- export type RegexPlusAst = OnigurumaAst & {
1
+ export type RegexPlusAst = createAlternative & {
2
2
  options: {
3
3
  disable: {
4
4
  [key: string]: boolean;
@@ -7,7 +7,7 @@ export type RegexPlusAst = OnigurumaAst & {
7
7
  [key: string]: boolean;
8
8
  };
9
9
  };
10
- _originMap: Map<CapturingGroupNode, CapturingGroupNode>;
10
+ _originMap: Map<createAlternative, createAlternative>;
11
11
  _strategy: string | null;
12
12
  };
13
13
  /**
@@ -44,11 +44,9 @@ AST represents what's needed to precisely reproduce Oniguruma behavior using Reg
44
44
  }} [options]
45
45
  @returns {RegexPlusAst}
46
46
  */
47
- export function transform(ast: OnigurumaAst, options?: {
47
+ export function transform(ast: createAlternative, options?: {
48
48
  accuracy?: "default" | "strict";
49
49
  asciiWordBoundaries?: boolean;
50
50
  avoidSubclass?: boolean;
51
51
  bestEffortTarget?: "auto" | "ES2025" | "ES2024" | "ES2018";
52
52
  }): RegexPlusAst;
53
- import type { OnigurumaAst } from 'oniguruma-parser/parser';
54
- import type { CapturingGroupNode } from 'oniguruma-parser/parser';
@@ -1,6 +1,6 @@
1
1
  export const asciiSpaceChar: "[\t-\r ]";
2
2
  export const defaultWordChar: string;
3
3
  export function getIgnoreCaseMatchChars(char: any): any[];
4
- export const JsUnicodePropertyMap: Map<string, string>;
4
+ export const JsUnicodePropertyMap: Map<any, string>;
5
5
  export const PosixClassMap: Map<string, string>;
6
6
  export const UnicodePropertiesWithSpecificCase: Set<string>;