@dipoleml/dcode-cli 1.1.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.
- package/dist/THIRD-PARTY-NOTICES.md +1081 -12
- package/dist/dcode.cjs +59253 -45604
- package/dist/packages/browser-use-plugin/README.md +12 -12
- package/dist/packages/browser-use-plugin/docs/api.json +1 -1
- package/dist/packages/browser-use-plugin/docs/overview.md +5 -4
- package/dist/packages/browser-use-plugin/docs/workflow.md +1 -1
- package/dist/packages/browser-use-plugin/scripts/build.mjs +1 -0
- package/dist/packages/browser-use-plugin/skills/control-browser/SKILL.md +10 -7
- package/dist/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
- package/dist/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
- package/dist/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
- package/dist/packages/node-repl-host/.dcode-plugin/plugin.json +1 -1
- package/dist/packages/node-repl-host/dist/mcp/server.js +9 -14
- package/dist/packages/node-repl-host/scripts/build.mjs +1 -0
- package/dist/provider/dcode-builtin.json +6612 -202
- package/node_modules/@dcode/contracts/dist/compact/index.d.ts +7 -7
- package/node_modules/@dcode/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@dcode/contracts/dist/events/event-reducer.js +1 -0
- package/node_modules/@dcode/contracts/dist/events/in-memory-session-event-store.js +3 -2
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.d.ts +8 -0
- package/node_modules/@dcode/contracts/dist/events/session-event-retention.js +18 -0
- package/node_modules/@dcode/contracts/dist/events/session.events.d.ts +94 -16
- package/node_modules/@dcode/contracts/dist/events/session.events.js +10 -0
- package/node_modules/@dcode/contracts/dist/hooks/index.d.ts +134 -134
- package/node_modules/@dcode/contracts/dist/hooks/workspace-hook-trust.d.ts +14 -14
- package/node_modules/@dcode/contracts/dist/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/index.js +2 -0
- package/node_modules/@dcode/contracts/dist/interfaces/browser-control.port.d.ts +22 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.d.ts +92 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-hole.port.js +9 -0
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-retune.port.js +7 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run-workspace.port.js +8 -3
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.d.ts +119 -18
- package/node_modules/@dcode/contracts/dist/interfaces/dynamic-workflow-run.port.js +13 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.d.ts +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/index.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.d.ts +161 -1
- package/node_modules/@dcode/contracts/dist/interfaces/mcp.port.js +17 -0
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.d.ts +15 -15
- package/node_modules/@dcode/contracts/dist/interfaces/permission-full-access.js +1 -1
- package/node_modules/@dcode/contracts/dist/interfaces/permission.port.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.d.ts +19 -0
- package/node_modules/@dcode/contracts/dist/interfaces/provider-endpoint-routing.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.d.ts +4 -2
- package/node_modules/@dcode/contracts/dist/interfaces/session-store.port.js +5 -0
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +92 -3
- package/node_modules/@dcode/contracts/dist/interfaces/session.port.js +4 -1
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.d.ts +25 -0
- package/node_modules/@dcode/contracts/dist/interfaces/topic-resource.port.js +1 -0
- package/node_modules/@dcode/contracts/dist/model/index.d.ts +15 -1
- package/node_modules/@dcode/contracts/dist/model/index.js +5 -0
- package/node_modules/@dcode/contracts/dist/model/invocation-context.d.ts +6 -1
- package/node_modules/@dcode/contracts/dist/plugins/index.d.ts +23 -0
- package/node_modules/@dcode/contracts/dist/plugins/index.js +2 -1
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/agent-execution.js +2 -0
- package/node_modules/@dcode/contracts/dist/telemetry/index.d.ts +5 -1
- package/node_modules/@dcode/contracts/dist/telemetry/index.js +12 -0
- package/node_modules/@dcode/contracts/dist/tools/agent.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.d.ts +39 -15
- package/node_modules/@dcode/contracts/dist/tools/amend-workflow.js +12 -6
- package/node_modules/@dcode/contracts/dist/tools/automation.d.ts +32 -32
- package/node_modules/@dcode/contracts/dist/tools/automation.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/bash.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/bash.js +1 -1
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.d.ts +365 -66
- package/node_modules/@dcode/contracts/dist/tools/create-workflow.js +92 -11
- package/node_modules/@dcode/contracts/dist/tools/edit.d.ts +16 -16
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/eval-workflow-snippet.js +5 -1
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.d.ts +729 -0
- package/node_modules/@dcode/contracts/dist/tools/fill-workflow-hole.js +102 -0
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.d.ts +136 -28
- package/node_modules/@dcode/contracts/dist/tools/get-workflow-run.js +36 -0
- package/node_modules/@dcode/contracts/dist/tools/grep.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/grep.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/index.d.ts +2 -0
- package/node_modules/@dcode/contracts/dist/tools/index.js +4 -0
- package/node_modules/@dcode/contracts/dist/tools/list-saved-workflows.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/list-workflow-runs.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/node-repl.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/off-peak.d.ts +3 -3
- package/node_modules/@dcode/contracts/dist/tools/off-peak.js +2 -2
- package/node_modules/@dcode/contracts/dist/tools/performance.d.ts +22 -22
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.d.ts +12 -12
- package/node_modules/@dcode/contracts/dist/tools/plan-mode.js +6 -4
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.d.ts +86 -13
- package/node_modules/@dcode/contracts/dist/tools/read-session-context.js +37 -6
- package/node_modules/@dcode/contracts/dist/tools/read.d.ts +38 -38
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.d.ts +21 -10
- package/node_modules/@dcode/contracts/dist/tools/save-workflow.js +22 -2
- package/node_modules/@dcode/contracts/dist/tools/saved-workflow.d.ts +4 -4
- package/node_modules/@dcode/contracts/dist/tools/send-message.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/skill.js +1 -0
- package/node_modules/@dcode/contracts/dist/tools/task-output.d.ts +6 -6
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.d.ts +1228 -259
- package/node_modules/@dcode/contracts/dist/tools/tool-result-metadata.js +41 -0
- package/node_modules/@dcode/contracts/dist/tools/webfetch.d.ts +2 -2
- package/node_modules/@dcode/contracts/dist/tools/workflow-observation-display.d.ts +20 -20
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.d.ts +55 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow-settings.js +86 -0
- package/node_modules/@dcode/contracts/dist/tools/workflow.d.ts +8 -8
- package/node_modules/@dcode/contracts/dist/tools/write.d.ts +18 -18
- package/node_modules/@dcode/contracts/dist/workflow/index.d.ts +98 -98
- package/node_modules/@dcode/contracts/dist/workflow/script.d.ts +12 -12
- package/node_modules/@dcode/i18n/dist/index.js +2 -2
- package/node_modules/@dcode/i18n/dist/locale.d.ts +1 -1
- package/node_modules/@dcode/i18n/dist/locale.js +4 -4
- package/node_modules/@dcode/i18n/dist/locales/en-US.js +5 -5
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.d.ts +3 -0
- package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +354 -0
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/api-key-usage-scene.js +6 -0
- package/node_modules/@dcode/shared/dist/attachment-source.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/attachment-source.js +4 -0
- package/node_modules/@dcode/shared/dist/background-bash-output.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/bots.d.ts +763 -15
- package/node_modules/@dcode/shared/dist/bots.js +236 -2
- package/node_modules/@dcode/shared/dist/browser-use/command-metadata.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/browser-use/commands.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/browser-use/commands.js +3 -1
- package/node_modules/@dcode/shared/dist/browser-use/nodeReplBroker.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/browser-use/result.d.ts +6 -6
- package/node_modules/@dcode/shared/dist/channel-mention.d.ts +173 -0
- package/node_modules/@dcode/shared/dist/channel-mention.js +120 -0
- package/node_modules/@dcode/shared/dist/channels.d.ts +128 -1
- package/node_modules/@dcode/shared/dist/channels.js +66 -0
- package/node_modules/@dcode/shared/dist/clientConfig.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/clientConfig.js +18 -2
- package/node_modules/@dcode/shared/dist/cloudContent.d.ts +160 -0
- package/node_modules/@dcode/shared/dist/cloudContent.js +116 -0
- package/node_modules/@dcode/shared/dist/coding-plan-subscription.d.ts +59 -0
- package/node_modules/@dcode/shared/dist/conversation-message-projection-policy.js +2 -0
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +351 -47
- package/node_modules/@dcode/shared/dist/conversation-share.js +8 -6
- package/node_modules/@dcode/shared/dist/conversationSelection.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/conversationSelection.js +30 -0
- package/node_modules/@dcode/shared/dist/database-startup.d.ts +5 -5
- package/node_modules/@dcode/shared/dist/dcode-agent-model-state.js +14 -6
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.d.ts +16 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-policy.js +17 -1
- package/node_modules/@dcode/shared/dist/dcode-agent-runtime.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +1733 -318
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.js +555 -24
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol/trace.js +10 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.d.ts +30 -20
- package/node_modules/@dcode/shared/dist/dcode-protocol-legacy-types.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/apply.js +12 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/attachment-ref.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.d.ts +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/coalesce.js +3 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +359 -28
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.js +67 -45
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +170 -65
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.d.ts +20 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-session-config.js +15 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.d.ts +34 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/create-workflow-display.js +45 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.d.ts +1453 -278
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/delta.js +45 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/index.js +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.d.ts +173 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/input-intent.js +29 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.d.ts +731 -125
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/rows.js +23 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.d.ts +30 -11
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index-workflow-activity.js +35 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/sessions-index.d.ts +40 -25
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.d.ts +1444 -216
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/snapshot.js +3 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.d.ts +1 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/submission.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/telemetry.d.ts +62 -58
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.d.ts +185 -50
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/toolDisplay.js +31 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +7145 -1002
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.js +18 -5
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-assembler.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-fault.js +4 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/wire-reassembly.js +5 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.d.ts +29 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-artifacts.js +64 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-command-rejections.js +23 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-observation-display.d.ts +14 -14
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.d.ts +52 -8
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-row-meta.js +22 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-run-settings-command.js +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.d.ts +21 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-session.js +44 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-actor-status.js +3 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-caps.js +5 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.d.ts +26 -19
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-concurrency.js +40 -32
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.d.ts +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-delta.js +4 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-entries.js +44 -6
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.d.ts +2 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-eviction.js +17 -10
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.d.ts +33 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-holes.js +202 -0
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-legacy.js +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-phases.js +10 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-reducer.js +29 -22
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-started.js +5 -2
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-tables.js +2 -1
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs-unlisted.js +6 -3
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.d.ts +125 -40
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-runs.js +101 -26
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workflow-workspace.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/workspace-hook-review.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/dcode-session-content-profile.js +49 -0
- package/node_modules/@dcode/shared/dist/dcode-slash-command-help.js +4 -4
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/dcode-task-mode-schema.js +13 -1
- package/node_modules/@dcode/shared/dist/dcode-task-types-core.d.ts +12 -2
- package/node_modules/@dcode/shared/dist/dcode-task-types.d.ts +23 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +20 -1
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +98 -17
- package/node_modules/@dcode/shared/dist/desktopMenu.js +48 -48
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.d.ts +35 -6
- package/node_modules/@dcode/shared/dist/dynamic-workflow-feature.js +45 -6
- package/node_modules/@dcode/shared/dist/env.d.ts +5 -4
- package/node_modules/@dcode/shared/dist/env.js +9 -9
- package/node_modules/@dcode/shared/dist/errors.d.ts +24 -0
- package/node_modules/@dcode/shared/dist/errors.js +54 -0
- package/node_modules/@dcode/shared/dist/execution-state.d.ts +4 -2
- package/node_modules/@dcode/shared/dist/execution-state.js +1 -1
- package/node_modules/@dcode/shared/dist/feedback.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/gen-ui/contract.d.ts +140 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.example.js +36 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.js +196 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/contract.test.js +75 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/index.js +2 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.d.ts +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/module.js +7 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.d.ts +202 -0
- package/node_modules/@dcode/shared/dist/gen-ui/tweakProtocol.js +126 -0
- package/node_modules/@dcode/shared/dist/helpAppConfig.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/helpAppConfig.js +2 -2
- package/node_modules/@dcode/shared/dist/highspeed.d.ts +181 -0
- package/node_modules/@dcode/shared/dist/highspeed.js +112 -0
- package/node_modules/@dcode/shared/dist/index.d.ts +27 -5
- package/node_modules/@dcode/shared/dist/index.js +24 -2
- package/node_modules/@dcode/shared/dist/localTtft.d.ts +27 -27
- package/node_modules/@dcode/shared/dist/marketingTouch.d.ts +930 -0
- package/node_modules/@dcode/shared/dist/marketingTouch.js +170 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.d.ts +83 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/appTools.js +124 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/content.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.d.ts +241 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.example.js +42 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.js +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/contract.test.js +64 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.d.ts +47 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/hostContract.js +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/index.js +9 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/instance.js +11 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.d.ts +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/module.js +12 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/resourceMime.js +73 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.d.ts +101 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.js +107 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/sampling.test.js +55 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.d.ts +78 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/schemas.js +65 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.d.ts +39 -0
- package/node_modules/@dcode/shared/dist/mcp-apps/toolMeta.js +199 -0
- package/node_modules/@dcode/shared/dist/mcp.d.ts +6 -2
- package/node_modules/@dcode/shared/dist/memory.d.ts +9 -0
- package/node_modules/@dcode/shared/dist/memory.js +2 -0
- package/node_modules/@dcode/shared/dist/model-execution.d.ts +31 -0
- package/node_modules/@dcode/shared/dist/model-execution.js +38 -0
- package/node_modules/@dcode/shared/dist/networkCapture.d.ts +49 -0
- package/node_modules/@dcode/shared/dist/networkCapture.js +41 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.d.ts +6 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.js +16 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node/genUiPaths.test.js +30 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/node/networkCapture.js +96 -0
- package/node_modules/@dcode/shared/dist/node/officialPluginCache.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node/subagentMarkdownMigration.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/node.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/node.js +2 -0
- package/node_modules/@dcode/shared/dist/output-style.d.ts +17 -0
- package/node_modules/@dcode/shared/dist/output-style.js +2 -0
- package/node_modules/@dcode/shared/dist/platform.d.ts +149 -1
- package/node_modules/@dcode/shared/dist/platform.js +2 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.d.ts +61 -0
- package/node_modules/@dcode/shared/dist/platformUpdate.js +2 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/plugin-marketplaces.js +20 -14
- package/node_modules/@dcode/shared/dist/project-access-token-client.d.ts +42 -0
- package/node_modules/@dcode/shared/dist/project-access-token-client.js +260 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/project-access-token-response.js +9 -0
- package/node_modules/@dcode/shared/dist/project-access-token.d.ts +45 -0
- package/node_modules/@dcode/shared/dist/project-access-token.js +164 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +41 -4
- package/node_modules/@dcode/shared/dist/protocol.js +1 -1
- package/node_modules/@dcode/shared/dist/provider-provisioning.d.ts +26 -2
- package/node_modules/@dcode/shared/dist/provider-provisioning.js +19 -3
- package/node_modules/@dcode/shared/dist/providers.d.ts +1 -2
- package/node_modules/@dcode/shared/dist/providers.js +1 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.d.ts +6 -1
- package/node_modules/@dcode/shared/dist/remote-workspace-identity.js +35 -1
- package/node_modules/@dcode/shared/dist/remoteAppConfig.js +1 -1
- package/node_modules/@dcode/shared/dist/remoteEnvironmentKey.js +19 -0
- package/node_modules/@dcode/shared/dist/remoteTarget.d.ts +14 -1
- package/node_modules/@dcode/shared/dist/remoteTarget.js +4 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.d.ts +27 -0
- package/node_modules/@dcode/shared/dist/remoteUsageTelemetry.js +43 -0
- package/node_modules/@dcode/shared/dist/rendererActionTrace.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/request-security-edition/index.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/index.js +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.d.ts +3 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/policy.js +5 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.d.ts +19 -0
- package/node_modules/@dcode/shared/dist/request-security-edition/verification-policy.js +29 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/rewardsBridge.js +80 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.d.ts +37 -0
- package/node_modules/@dcode/shared/dist/rewardsEmbedded.js +50 -0
- package/node_modules/@dcode/shared/dist/sessionCreateTelemetry.d.ts +3 -3
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-frontmatter.js +212 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.d.ts +10 -0
- package/node_modules/@dcode/shared/dist/subagent-profile-parser.js +200 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.d.ts +82 -0
- package/node_modules/@dcode/shared/dist/subagent-profile.js +28 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.d.ts +135 -0
- package/node_modules/@dcode/shared/dist/subagent-runtime-config.js +39 -0
- package/node_modules/@dcode/shared/dist/subagents-types.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/task-realtime-core.d.ts +57 -24
- package/node_modules/@dcode/shared/dist/task-realtime-core.js +8 -2
- package/node_modules/@dcode/shared/dist/test-ids-workflow.d.ts +4 -0
- package/node_modules/@dcode/shared/dist/test-ids-workflow.js +5 -0
- package/node_modules/@dcode/shared/dist/test-ids.d.ts +25 -0
- package/node_modules/@dcode/shared/dist/test-ids.js +25 -0
- package/node_modules/@dcode/shared/dist/tool-identity.d.ts +1 -1
- package/node_modules/@dcode/shared/dist/tool-identity.js +4 -0
- package/node_modules/@dcode/shared/dist/tool-plan-adapter.js +14 -1
- package/node_modules/@dcode/shared/dist/usage-stats.d.ts +13 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +1461 -85
- package/node_modules/@dcode/shared/dist/validation.js +423 -14
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +71 -15
- package/node_modules/@dcode/shared/dist/validationAppSettings.js +74 -12
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.d.ts +8 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-heartbeat.js +40 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.d.ts +183 -0
- package/node_modules/@dcode/shared/dist/web-remote-control-rpc-transport.js +562 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.d.ts +645 -0
- package/node_modules/@dcode/shared/dist/web-remote-control.js +174 -0
- package/node_modules/@dcode/shared/package.json +5 -2
- package/node_modules/@dcode/tui/dist/app-approval-panel.js +3 -2
- package/node_modules/@dcode/tui/dist/app-approval.d.ts +3 -1
- package/node_modules/@dcode/tui/dist/app-approval.js +9 -5
- package/node_modules/@dcode/tui/dist/app-compact-timeline.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-compact-timeline.js +5 -2
- package/node_modules/@dcode/tui/dist/app-empty-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-empty-transcript.js +1 -1
- package/node_modules/@dcode/tui/dist/app-file-mentions.d.ts +2 -0
- package/node_modules/@dcode/tui/dist/app-file-mentions.js +2 -2
- package/node_modules/@dcode/tui/dist/app-input-pane.d.ts +38 -0
- package/node_modules/@dcode/tui/dist/app-input-pane.js +19 -19
- package/node_modules/@dcode/tui/dist/app-input-status.d.ts +17 -0
- package/node_modules/@dcode/tui/dist/app-input-status.js +4 -4
- package/node_modules/@dcode/tui/dist/app-input.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-input.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.d.ts +2 -1
- package/node_modules/@dcode/tui/dist/app-markdown-theme.js +1 -1
- package/node_modules/@dcode/tui/dist/app-markdown.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-markdown.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode-command.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-mode-command.js +4 -4
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.d.ts +5 -0
- package/node_modules/@dcode/tui/dist/app-mode-suggestion-panel.js +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.d.ts +1 -1
- package/node_modules/@dcode/tui/dist/app-mode.js +1 -1
- package/node_modules/@dcode/tui/dist/app-model-ref.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-model-ref.js +1 -1
- package/node_modules/@dcode/tui/dist/app-motion.d.ts +13 -0
- package/node_modules/@dcode/tui/dist/app-motion.js +17 -7
- package/node_modules/@dcode/tui/dist/app-session-event-handler.d.ts +33 -0
- package/node_modules/@dcode/tui/dist/app-session-event-handler.js +4 -4
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-shiki-diff-view.js +3 -3
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/app-shiki-highlighter.js +7 -2
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.d.ts +10 -0
- package/node_modules/@dcode/tui/dist/app-sidebar-layout.js +4 -4
- package/node_modules/@dcode/tui/dist/app-submit.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-submit.js +1 -1
- package/node_modules/@dcode/tui/dist/app-thought-components.d.ts +7 -0
- package/node_modules/@dcode/tui/dist/app-thought-components.js +2 -2
- package/node_modules/@dcode/tui/dist/app-tool-transcript.d.ts +1 -0
- package/node_modules/@dcode/tui/dist/app-tool-transcript.js +3 -0
- package/node_modules/@dcode/tui/dist/app-view.d.ts +27 -0
- package/node_modules/@dcode/tui/dist/app-view.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-card.js +1 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.d.ts +18 -1
- package/node_modules/@dcode/tui/dist/app-workflow-seed.js +4 -4
- package/node_modules/@dcode/tui/dist/index.js +5118 -2579
- package/node_modules/@dcode/tui/dist/tui.d.ts +3 -0
- package/node_modules/@dcode/tui/dist/tui.js +1 -1
- package/node_modules/@dcode/tui/dist/types.d.ts +1 -1
- package/node_modules/oniguruma-parser/LICENSE +1 -1
- package/node_modules/oniguruma-parser/README.md +15 -61
- package/node_modules/oniguruma-parser/dist/oniguruma-parser.min.js +4 -4
- package/node_modules/oniguruma-parser/dist/parser/parse.js +1 -1
- package/node_modules/oniguruma-parser/dist/traverser/traverse.js +1 -1
- package/node_modules/oniguruma-parser/package.json +5 -5
- package/node_modules/oniguruma-to-es/dist/cjs/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/cjs/index.js +121 -120
- package/node_modules/oniguruma-to-es/dist/cjs/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/cjs/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/cjs/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/generate.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/esm/index.js +1 -3
- package/node_modules/oniguruma-to-es/dist/esm/subclass.d.ts +2 -2
- package/node_modules/oniguruma-to-es/dist/esm/transform.d.ts +3 -5
- package/node_modules/oniguruma-to-es/dist/esm/unicode.d.ts +1 -1
- package/node_modules/oniguruma-to-es/dist/index.min.js +6 -6
- package/node_modules/oniguruma-to-es/package.json +5 -5
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 } },
|
|
536
|
-
const u2 =
|
|
537
|
-
switch (
|
|
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,
|
|
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,
|
|
547
|
+
return ee2(u2, o3, N);
|
|
548
548
|
case "CharacterClassOpen":
|
|
549
|
-
return re(u2,
|
|
549
|
+
return re(u2, o3, N);
|
|
550
550
|
case "CharacterSet":
|
|
551
|
-
return ne(u2,
|
|
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,
|
|
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,
|
|
559
|
+
return oe(u2, o3);
|
|
560
560
|
case "Subroutine":
|
|
561
|
-
return ae(u2,
|
|
561
|
+
return ae(u2, o3);
|
|
562
562
|
default:
|
|
563
563
|
throw new Error(`Unexpected token type "${u2.type}"`);
|
|
564
564
|
}
|
|
565
|
-
},
|
|
566
|
-
let
|
|
567
|
-
for (;
|
|
568
|
-
const p =
|
|
569
|
-
p.type === "Alternative" ? (
|
|
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:
|
|
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
|
|
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
|
|
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),
|
|
587
|
-
const
|
|
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 (
|
|
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(
|
|
591
|
+
return r4.hasNumberedRef = true, k2(i2 ? d2 + 1 - o3 : o3, { orphan: a2 });
|
|
592
592
|
};
|
|
593
593
|
if (n) {
|
|
594
|
-
const
|
|
595
|
-
if (
|
|
596
|
-
if (/[-+]/.test(
|
|
597
|
-
if (!r4.namedGroupsByName.has(
|
|
598
|
-
return k2(
|
|
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
|
|
600
|
+
return s2(+t);
|
|
601
601
|
}
|
|
602
602
|
function ee2(e, r4, n) {
|
|
603
|
-
const { tokens:
|
|
604
|
-
if (!n.isCheckingRangeEnd &&
|
|
605
|
-
const a2 =
|
|
606
|
-
if (
|
|
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:
|
|
613
|
-
let
|
|
614
|
-
for (;
|
|
615
|
-
if (
|
|
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 =
|
|
618
|
-
l3.body.push(
|
|
617
|
+
const l3 = i2.at(-1);
|
|
618
|
+
l3.body.push(s2(l3, n));
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
d2 = z2(t[r4.nextIndex], o3);
|
|
621
621
|
}
|
|
622
622
|
const a2 = C2({ negate: e });
|
|
623
|
-
return
|
|
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 },
|
|
626
|
-
const { normalizeUnknownPropertyNames:
|
|
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
|
|
629
|
-
if (i.has(
|
|
630
|
-
else return Q2(n, { negate: r4, normalizeUnknownPropertyNames:
|
|
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:
|
|
636
|
-
if (a2.type === "CapturingGroup" && (
|
|
637
|
-
let p = D2(
|
|
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 =
|
|
642
|
-
if (N.body.push(u2), (c || n.isInLookbehind) && !
|
|
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 (
|
|
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(
|
|
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 },
|
|
654
|
-
const
|
|
655
|
-
if (!
|
|
656
|
-
const
|
|
657
|
-
return
|
|
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:
|
|
661
|
-
let
|
|
662
|
-
const
|
|
663
|
-
if (
|
|
664
|
-
const
|
|
665
|
-
if (r4.hasNumberedRef = true,
|
|
666
|
-
} else
|
|
667
|
-
const
|
|
668
|
-
return
|
|
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
|
|
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{${
|
|
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,
|
|
709
|
-
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (
|
|
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,
|
|
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:
|
|
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
|
|
749
|
-
if (!
|
|
750
|
-
if (n.normalizeUnknownPropertyNames)
|
|
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:
|
|
753
|
+
return { type: "CharacterSet", kind: "property", value: t ?? e, negate: n.negate };
|
|
754
754
|
}
|
|
755
|
-
function ie({ flags: e, kind: r4, name: n, negate:
|
|
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(
|
|
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:
|
|
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
|
-
|
|
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.
|
|
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
|
|
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
|
-
|
|
1012
|
+
f2(r4).splice(Math.max(0, l2(t) + i2), 1), i2--, c = true;
|
|
1014
1013
|
}, removeAllNextSiblings() {
|
|
1015
|
-
return
|
|
1014
|
+
return f2(r4).splice(l2(t) + 1);
|
|
1016
1015
|
}, removeAllPrevSiblings() {
|
|
1017
1016
|
const o3 = l2(t) + i2;
|
|
1018
|
-
return i2 -= o3,
|
|
1019
|
-
}, replaceWith(o3,
|
|
1020
|
-
const
|
|
1021
|
-
r4 ? r4[Math.max(0, l2(t) + i2)] = o3 : u(s2, "Can't replace root node")[t] = o3,
|
|
1022
|
-
}, replaceWithMultiple(o3,
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
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
|
|
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:
|
|
1032
|
-
if (R3?.(d2, N), P3?.(d2, N), !c) switch (
|
|
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
|
-
|
|
1039
|
-
|
|
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
|
-
|
|
1060
|
+
u2(e.body, e), n(e.flags, e, "flags");
|
|
1058
1061
|
break;
|
|
1059
1062
|
default:
|
|
1060
|
-
throw new Error(`Unexpected node type "${
|
|
1063
|
+
throw new Error(`Unexpected node type "${m3}"`);
|
|
1061
1064
|
}
|
|
1062
|
-
return
|
|
1065
|
+
return p?.exit?.(d2, N), h2?.exit?.(d2, N), i2;
|
|
1063
1066
|
}
|
|
1064
1067
|
return n(a2), a2;
|
|
1065
1068
|
}
|
|
1066
|
-
function
|
|
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((
|
|
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
|
-
|
|
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((
|
|
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
|
|
3063
|
-
if (
|
|
3064
|
-
newFrom.push(
|
|
3065
|
-
} else if (
|
|
3066
|
-
newFrom.push(
|
|
3067
|
-
} else if (
|
|
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(
|
|
3070
|
+
newFrom.push(f3 + numCapturesInLeft * i2);
|
|
3070
3071
|
}
|
|
3071
3072
|
} else {
|
|
3072
3073
|
for (let i2 = 0; i2 <= reps; i2++) {
|
|
3073
|
-
newFrom.push(
|
|
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
|
|
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
|
|
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 =
|
|
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<
|
|
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:
|
|
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<
|
|
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:
|
|
22
|
+
options: any;
|
|
23
23
|
_captureTransfers: Map<number, Array<number>>;
|
|
24
24
|
_hiddenCaptures: Array<number>;
|
|
25
25
|
};
|
|
@@ -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
|
|
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
|
|
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 =
|
|
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<
|
|
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:
|
|
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<
|
|
4
|
+
export const JsUnicodePropertyMap: Map<any, string>;
|
|
5
5
|
export const PosixClassMap: Map<string, string>;
|
|
6
6
|
export const UnicodePropertiesWithSpecificCase: Set<string>;
|