@mininglamp-oss/octo-runtime 1.1.11 → 1.1.12
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/README.md +26 -142
- package/apps/cli/README.md +7 -102
- package/apps/cli/dist/adapters.js +1 -5
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/command-tree.d.ts +1 -13
- package/apps/cli/dist/command-tree.js +130 -316
- package/apps/cli/dist/foreground.d.ts +1 -2
- package/apps/cli/dist/help.d.ts +0 -1
- package/apps/cli/dist/help.js +2 -13
- package/apps/cli/dist/logs.d.ts +2 -2
- package/apps/cli/dist/logs.js +14 -17
- package/apps/cli/dist/main.js +55 -173
- package/apps/cli/dist/manifest.json +0 -50
- package/apps/cli/dist/module-manifest.d.ts +1 -1
- package/apps/cli/dist/module-manifest.js +2 -3
- package/apps/cli/dist/openclaw.d.ts +0 -8
- package/apps/cli/dist/openclaw.js +2 -114
- package/apps/cli/dist/output.js +9 -20
- package/apps/cli/dist/playboard.js +15 -7
- package/apps/cli/dist/service-control.js +0 -1
- package/dist/public/host.d.ts +2 -4
- package/dist/public/host.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +10 -9
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-R3PDZLX5.js → chunk-H3S6WM37.js} +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FGFEM7JP.js → chunk-RISQ6NGV.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-TSRZVLIG.js → chunk-SMTJTIN7.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/dsh-sdk-NOTICE.txt +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/trajectory.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.d.ts +1 -13
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/module-manifest.js +4 -27
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +4 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +6 -60
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +0 -83
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +1 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.d.ts +1 -13
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/command-tree.js +130 -316
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/foreground.d.ts +1 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/help.js +2 -13
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +14 -17
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +55 -173
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +0 -50
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/module-manifest.js +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/openclaw.js +2 -114
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +9 -20
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +15 -7
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +31 -20
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +80 -50
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +17 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +3 -15
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +19 -4
- package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +28 -6
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +27 -27
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +263 -75
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +22 -15
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +10 -7
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +1 -7
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -18
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +33 -8
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/image-input.js +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +27 -29
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +86 -37
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +1 -6
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +3 -17
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/node_modules/semver/classes/range.js +2 -2
- package/node_modules/semver/internal/constants.js +30 -0
- package/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
- package/node_modules/semver/package.json +1 -1
- package/node_modules/ws/README.md +21 -29
- package/node_modules/ws/lib/buffer-util.js +13 -2
- package/node_modules/ws/lib/sender.js +4 -1
- package/node_modules/ws/lib/websocket.js +8 -3
- package/node_modules/ws/package.json +1 -1
- package/package.json +27 -135
- package/packages/octo-runtime-protocol/schema/kernel-ipc-fixtures.json +28 -6
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +263 -75
- package/apps/cli/dist/extra-command-config.d.ts +0 -4
- package/apps/cli/dist/extra-command-config.js +0 -50
- package/apps/cli/dist/extra-commands.d.ts +0 -15
- package/apps/cli/dist/extra-commands.js +0 -275
- package/apps/cli/dist/extras.d.ts +0 -8
- package/apps/cli/dist/extras.js +0 -82
- package/apps/cli/dist/global-extras.d.ts +0 -16
- package/apps/cli/dist/global-extras.js +0 -201
- package/apps/cli/dist/status-output.d.ts +0 -10
- package/apps/cli/dist/status-output.js +0 -65
- package/dist/public/channel-gateway-commands.d.ts +0 -1
- package/dist/public/channel-gateway-commands.js +0 -1
- package/dist/public/channel-gateway.d.ts +0 -3
- package/dist/public/channel-gateway.js +0 -1
- package/dist/public/channel-wecom-commands.d.ts +0 -1
- package/dist/public/channel-wecom-commands.js +0 -1
- package/dist/public/channel-wecom.d.ts +0 -2
- package/dist/public/channel-wecom.js +0 -1
- package/dist/public/extra.d.ts +0 -5
- package/dist/public/extra.js +0 -3
- package/dist/public/webui-commands.d.ts +0 -1
- package/dist/public/webui-commands.js +0 -1
- package/dist/public/webui.d.ts +0 -1
- package/dist/public/webui.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-command-config.js +0 -50
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extra-commands.js +0 -275
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/extras.js +0 -82
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/global-extras.js +0 -201
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/status-output.js +0 -65
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +0 -8
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +0 -62
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +0 -50
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +0 -140
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +0 -27
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/host-session-store.js +0 -123
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +0 -1489
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +0 -77
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +0 -71
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.js +0 -153
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/commands.js +0 -124
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +0 -172
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +0 -22
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +0 -46
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +0 -285
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +0 -109
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +0 -36
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +0 -98
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.js +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +0 -238
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +0 -29
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +0 -171
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +0 -392
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/tool-environment.js +0 -27
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +0 -87
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/index.js +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.d.ts +0 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +0 -162
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/manager.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.d.ts +0 -34
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/ports.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +0 -67
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +0 -588
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/typing.js +0 -83
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +0 -132
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +0 -226
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +0 -65
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +0 -202
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +0 -112
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +0 -138
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -48
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +0 -116
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.d.ts +0 -51
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/events.js +0 -79
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +0 -30
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +0 -222
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.d.ts +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +0 -92
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +0 -173
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.d.ts +0 -84
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/rules.js +0 -110
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.d.ts +0 -87
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/types.js +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/url.js +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.d.ts +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/auth.js +0 -23
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-action.js +0 -75
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +0 -22
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +0 -136
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/cards.js +0 -40
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +0 -70
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +0 -646
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.d.ts +0 -17
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +0 -91
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +0 -18
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +0 -148
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +0 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +0 -257
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +0 -133
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +0 -76
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/image-input.js +0 -163
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/interaction-card.js +0 -113
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -13
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -75
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-content.js +0 -117
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +0 -74
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +0 -19
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +0 -90
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/normalize.js +0 -85
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.d.ts +0 -34
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +0 -430
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/resources.js +0 -63
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +0 -60
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.d.ts +0 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/session-command.js +0 -71
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +0 -357
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +0 -33
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.d.ts +0 -11
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +0 -754
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.d.ts +0 -35
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/session-store.js +0 -93
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/commands.js +0 -128
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.d.ts +0 -78
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/contracts.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.d.ts +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/delivery/dispatcher.js +0 -69
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/execution/dispatcher.js +0 -95
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +0 -85
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/index.js +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.d.ts +0 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/configuration.js +0 -109
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/lifecycle/manager.js +0 -73
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.d.ts +0 -24
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/ports.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.d.ts +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/presentation/run-projector.js +0 -258
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.d.ts +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +0 -124
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.d.ts +0 -53
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/connection.js +0 -219
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.d.ts +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/stream-session.js +0 -52
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +0 -31
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/config-schema.json +0 -134
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/commands.js +0 -51
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.d.ts +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/index.js +0 -423
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.d.ts +0 -25
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/store.js +0 -130
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-BLMf2Etg.js +0 -73
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/assets/index-CYTpqItx.css +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +0 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +0 -28
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +0 -32
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +0 -165
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.d.ts +0 -44
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/execution.js +0 -207
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.d.ts +0 -70
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-commands.js +0 -16
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.d.ts +0 -20
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-config.js +0 -154
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.d.ts +0 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-dependencies.js +0 -21
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.d.ts +0 -45
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -417
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -62
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -389
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.d.ts +0 -7
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/shutdown.js +0 -39
- package/node_modules/@types/debug/LICENSE +0 -21
- package/node_modules/@types/debug/README.md +0 -69
- package/node_modules/@types/debug/index.d.ts +0 -50
- package/node_modules/@types/debug/package.json +0 -58
- package/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/@types/ms/LICENSE +0 -21
- package/node_modules/@types/ms/README.md +0 -82
- package/node_modules/@types/ms/index.d.ts +0 -63
- package/node_modules/@types/ms/package.json +0 -26
- package/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/@types/unist/README.md +0 -15
- package/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/@types/unist/package.json +0 -60
- package/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/character-entities/index.js +0 -2132
- package/node_modules/character-entities/license +0 -22
- package/node_modules/character-entities/package.json +0 -78
- package/node_modules/character-entities/readme.md +0 -152
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/dequal/license +0 -21
- package/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/dequal/package.json +0 -57
- package/node_modules/dequal/readme.md +0 -112
- package/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/devlop/license +0 -22
- package/node_modules/devlop/package.json +0 -80
- package/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1455
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -321
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1270
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -321
- package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/license +0 -22
- package/node_modules/mdast-util-from-markdown/package.json +0 -98
- package/node_modules/mdast-util-from-markdown/readme.md +0 -549
- package/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/micromark/dev/index.d.ts +0 -82
- package/node_modules/micromark/dev/index.d.ts.map +0 -1
- package/node_modules/micromark/dev/index.js +0 -68
- package/node_modules/micromark/dev/lib/compile.d.ts +0 -16
- package/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/compile.js +0 -1162
- package/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
- package/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/constructs.js +0 -101
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/create-tokenizer.js +0 -718
- package/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
- package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/content.js +0 -99
- package/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
- package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/document.js +0 -449
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
- package/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/initialize/text.js +0 -248
- package/node_modules/micromark/dev/lib/parse.d.ts +0 -10
- package/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/parse.js +0 -58
- package/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
- package/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/postprocess.js +0 -19
- package/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
- package/node_modules/micromark/dev/lib/preprocess.js +0 -139
- package/node_modules/micromark/dev/stream.d.ts +0 -35
- package/node_modules/micromark/dev/stream.d.ts.map +0 -1
- package/node_modules/micromark/dev/stream.js +0 -270
- package/node_modules/micromark/index.d.ts +0 -82
- package/node_modules/micromark/index.d.ts.map +0 -1
- package/node_modules/micromark/index.js +0 -60
- package/node_modules/micromark/lib/compile.d.ts +0 -16
- package/node_modules/micromark/lib/compile.d.ts.map +0 -1
- package/node_modules/micromark/lib/compile.js +0 -1068
- package/node_modules/micromark/lib/constructs.d.ts +0 -73
- package/node_modules/micromark/lib/constructs.d.ts.map +0 -1
- package/node_modules/micromark/lib/constructs.js +0 -85
- package/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/micromark/lib/create-tokenizer.js +0 -613
- package/node_modules/micromark/lib/initialize/content.d.ts +0 -4
- package/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/content.js +0 -79
- package/node_modules/micromark/lib/initialize/document.d.ts +0 -10
- package/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/document.js +0 -370
- package/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
- package/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/flow.js +0 -58
- package/node_modules/micromark/lib/initialize/text.d.ts +0 -8
- package/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/micromark/lib/initialize/text.js +0 -216
- package/node_modules/micromark/lib/parse.d.ts +0 -10
- package/node_modules/micromark/lib/parse.d.ts.map +0 -1
- package/node_modules/micromark/lib/parse.js +0 -56
- package/node_modules/micromark/lib/postprocess.d.ts +0 -9
- package/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
- package/node_modules/micromark/lib/postprocess.js +0 -18
- package/node_modules/micromark/lib/preprocess.d.ts +0 -13
- package/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
- package/node_modules/micromark/lib/preprocess.js +0 -112
- package/node_modules/micromark/license +0 -22
- package/node_modules/micromark/package.json +0 -87
- package/node_modules/micromark/readme.md +0 -488
- package/node_modules/micromark/stream.d.ts +0 -35
- package/node_modules/micromark/stream.d.ts.map +0 -1
- package/node_modules/micromark/stream.js +0 -256
- package/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
- package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/index.js +0 -22
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -294
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -472
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -178
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -229
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -938
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -658
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -119
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -71
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +0 -67
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -213
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
- package/node_modules/micromark-core-commonmark/index.d.ts +0 -23
- package/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/index.js +0 -22
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/attention.js +0 -231
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -422
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -159
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
- package/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
- package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/content.js +0 -163
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -191
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -827
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-end.js +0 -561
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -110
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -63
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
- package/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/list.js +0 -213
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +0 -61
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -187
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
- package/node_modules/micromark-core-commonmark/license +0 -22
- package/node_modules/micromark-core-commonmark/package.json +0 -62
- package/node_modules/micromark-core-commonmark/readme.md +0 -171
- package/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
- package/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-destination/dev/index.js +0 -255
- package/node_modules/micromark-factory-destination/index.d.ts +0 -42
- package/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-destination/index.js +0 -206
- package/node_modules/micromark-factory-destination/license +0 -22
- package/node_modules/micromark-factory-destination/package.json +0 -57
- package/node_modules/micromark-factory-destination/readme.md +0 -234
- package/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
- package/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-label/dev/index.js +0 -172
- package/node_modules/micromark-factory-label/index.d.ts +0 -37
- package/node_modules/micromark-factory-label/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-label/index.js +0 -148
- package/node_modules/micromark-factory-label/license +0 -22
- package/node_modules/micromark-factory-label/package.json +0 -60
- package/node_modules/micromark-factory-label/readme.md +0 -224
- package/node_modules/micromark-factory-space/dev/index.d.ts +0 -60
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-space/dev/index.js +0 -122
- package/node_modules/micromark-factory-space/index.d.ts +0 -60
- package/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-space/index.js +0 -116
- package/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/micromark-factory-space/package.json +0 -46
- package/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
- package/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-title/dev/index.js +0 -169
- package/node_modules/micromark-factory-title/index.d.ts +0 -36
- package/node_modules/micromark-factory-title/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-title/index.js +0 -158
- package/node_modules/micromark-factory-title/license +0 -22
- package/node_modules/micromark-factory-title/package.json +0 -58
- package/node_modules/micromark-factory-title/readme.md +0 -229
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
- package/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
- package/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
- package/node_modules/micromark-factory-whitespace/index.js +0 -44
- package/node_modules/micromark-factory-whitespace/license +0 -22
- package/node_modules/micromark-factory-whitespace/package.json +0 -57
- package/node_modules/micromark-factory-whitespace/readme.md +0 -205
- package/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/micromark-util-character/license +0 -22
- package/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
- package/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-chunked/dev/index.js +0 -89
- package/node_modules/micromark-util-chunked/index.d.ts +0 -41
- package/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
- package/node_modules/micromark-util-chunked/index.js +0 -81
- package/node_modules/micromark-util-chunked/license +0 -22
- package/node_modules/micromark-util-chunked/package.json +0 -57
- package/node_modules/micromark-util-chunked/readme.md +0 -219
- package/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
- package/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
- package/node_modules/micromark-util-combine-extensions/index.js +0 -143
- package/node_modules/micromark-util-combine-extensions/license +0 -22
- package/node_modules/micromark-util-combine-extensions/package.json +0 -52
- package/node_modules/micromark-util-combine-extensions/readme.md +0 -201
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/micromark-util-edit-map/dev/index.d.ts +0 -78
- package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-edit-map/dev/index.js +0 -237
- package/node_modules/micromark-util-edit-map/index.d.ts +0 -78
- package/node_modules/micromark-util-edit-map/index.d.ts.map +0 -1
- package/node_modules/micromark-util-edit-map/index.js +0 -225
- package/node_modules/micromark-util-edit-map/license +0 -22
- package/node_modules/micromark-util-edit-map/package.json +0 -48
- package/node_modules/micromark-util-edit-map/readme.md +0 -234
- package/node_modules/micromark-util-encode/index.d.ts +0 -14
- package/node_modules/micromark-util-encode/index.d.ts.map +0 -1
- package/node_modules/micromark-util-encode/index.js +0 -33
- package/node_modules/micromark-util-encode/license +0 -22
- package/node_modules/micromark-util-encode/package.json +0 -47
- package/node_modules/micromark-util-encode/readme.md +0 -176
- package/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
- package/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
- package/node_modules/micromark-util-html-tag-name/index.js +0 -93
- package/node_modules/micromark-util-html-tag-name/license +0 -22
- package/node_modules/micromark-util-html-tag-name/package.json +0 -47
- package/node_modules/micromark-util-html-tag-name/readme.md +0 -193
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
- package/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
- package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
- package/node_modules/micromark-util-normalize-identifier/index.js +0 -33
- package/node_modules/micromark-util-normalize-identifier/license +0 -22
- package/node_modules/micromark-util-normalize-identifier/package.json +0 -58
- package/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
- package/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
- package/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
- package/node_modules/micromark-util-resolve-all/index.js +0 -32
- package/node_modules/micromark-util-resolve-all/license +0 -22
- package/node_modules/micromark-util-resolve-all/package.json +0 -48
- package/node_modules/micromark-util-resolve-all/readme.md +0 -238
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
- package/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
- package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
- package/node_modules/micromark-util-sanitize-uri/index.js +0 -107
- package/node_modules/micromark-util-sanitize-uri/license +0 -22
- package/node_modules/micromark-util-sanitize-uri/package.json +0 -59
- package/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
- package/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
- package/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/index.js +0 -228
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
- package/node_modules/micromark-util-subtokenize/license +0 -22
- package/node_modules/micromark-util-subtokenize/package.json +0 -60
- package/node_modules/micromark-util-subtokenize/readme.md +0 -181
- package/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/micromark-util-types/index.d.ts +0 -1315
- package/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/micromark-util-types/license +0 -22
- package/node_modules/micromark-util-types/package.json +0 -37
- package/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/unist-util-stringify-position/index.d.ts +0 -1
- package/node_modules/unist-util-stringify-position/index.js +0 -1
- package/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
- package/node_modules/unist-util-stringify-position/lib/index.js +0 -84
- package/node_modules/unist-util-stringify-position/license +0 -22
- package/node_modules/unist-util-stringify-position/package.json +0 -80
- package/node_modules/unist-util-stringify-position/readme.md +0 -206
- package/packages/octo-runtime-extra-channel-gateway/config-schema.json +0 -458
- package/packages/octo-runtime-extra-channel-wecom/config-schema.json +0 -276
- package/packages/octo-runtime-extra-webui/config-schema.json +0 -134
package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js
DELETED
|
@@ -1,754 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 单 Bot 编排:把授权 IM 消息转换成一次统一执行,并把公开结果投递回原会话。
|
|
3
|
-
* 管理会话、排队、取消和交互归属;平台协议交给 connector,领域业务交给发起方。
|
|
4
|
-
*/
|
|
5
|
-
import { randomUUID } from "node:crypto";
|
|
6
|
-
import { performance } from "node:perf_hooks";
|
|
7
|
-
import { shutdownDeadline, withinShutdown } from "@mininglamp-oss/octo-runtime-host-sdk/shutdown";
|
|
8
|
-
import { isInvocationNotSubmitted } from "@mininglamp-oss/octo-runtime-executor-kernel";
|
|
9
|
-
import { failurePayload, failureMessage } from "@mininglamp-oss/octo-runtime-protocol";
|
|
10
|
-
import { imBotIdentity, validateImConfig } from "../lifecycle/configuration.js";
|
|
11
|
-
import { WecomTransport } from "../transport/channel.js";
|
|
12
|
-
import { createImInvocation } from "../execution/dispatcher.js";
|
|
13
|
-
import { ImDeliveryDispatcher } from "../delivery/dispatcher.js";
|
|
14
|
-
import { ImRunProjector } from "../presentation/run-projector.js";
|
|
15
|
-
import { MemoryImSessionStore } from "./session-store.js";
|
|
16
|
-
// 仅精确匹配已定义的准备期原因;未知异常正文不得进入回复或新增诊断。
|
|
17
|
-
const preparationFailureMessages = new Map([
|
|
18
|
-
["IM_AGENT_WORKDIR_FIXED", "本轮工作目录与固定目录配置冲突,尚未发起执行。请检查工作目录配置。"],
|
|
19
|
-
["IM_RULE_PROTOCOL_INVALID", "规则数据格式不符合协议,尚未发起执行。请检查规则服务返回格式。"]
|
|
20
|
-
]);
|
|
21
|
-
export class ImRuntime {
|
|
22
|
-
dependencies;
|
|
23
|
-
#preparing = new Map();
|
|
24
|
-
config;
|
|
25
|
-
#connector;
|
|
26
|
-
#delivery;
|
|
27
|
-
#sessions = new Map();
|
|
28
|
-
#sessionStore;
|
|
29
|
-
#seen = new Map();
|
|
30
|
-
#queuedOccurrences = new Set();
|
|
31
|
-
#interactions = new Map();
|
|
32
|
-
#responding = new Set();
|
|
33
|
-
#failureNotifications = new Map();
|
|
34
|
-
#finishIncomplete;
|
|
35
|
-
#closed = true;
|
|
36
|
-
#state = "stopped";
|
|
37
|
-
#reconnect;
|
|
38
|
-
#connecting;
|
|
39
|
-
#abort = new AbortController();
|
|
40
|
-
#signal = this.#abort.signal;
|
|
41
|
-
#closing;
|
|
42
|
-
#connectionAbort;
|
|
43
|
-
#error;
|
|
44
|
-
#pending = 0;
|
|
45
|
-
#retry = 0;
|
|
46
|
-
constructor(config, dependencies) {
|
|
47
|
-
this.dependencies = dependencies;
|
|
48
|
-
validateImConfig(config);
|
|
49
|
-
this.config = structuredClone(config);
|
|
50
|
-
this.#sessionStore = dependencies.sessions ?? new MemoryImSessionStore();
|
|
51
|
-
}
|
|
52
|
-
get status() {
|
|
53
|
-
return {
|
|
54
|
-
...this.#connector?.status,
|
|
55
|
-
connection_key: imBotIdentity(this.config),
|
|
56
|
-
type: "wecom",
|
|
57
|
-
bot_name: this.config.bot_name ?? this.config.bot_id,
|
|
58
|
-
enabled: this.config.enabled !== false,
|
|
59
|
-
botId: this.#connector?.botId,
|
|
60
|
-
connected: this.#state === "online",
|
|
61
|
-
state: this.#state,
|
|
62
|
-
error: this.#error ?? null,
|
|
63
|
-
deliveries: this.#delivery?.receiptCount ?? 0,
|
|
64
|
-
sessions: [...this.#sessions.values()].map((session) => ({
|
|
65
|
-
sessionId: session.id,
|
|
66
|
-
generation: session.generation,
|
|
67
|
-
runId: session.lastRunId,
|
|
68
|
-
eventId: session.lastEventId,
|
|
69
|
-
active: !!session.activeInvocationId
|
|
70
|
-
}))
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
async start() {
|
|
74
|
-
if (this.#closing)
|
|
75
|
-
await this.#closing;
|
|
76
|
-
this.dependencies.signal?.throwIfAborted();
|
|
77
|
-
if (this.config.enabled === false)
|
|
78
|
-
return;
|
|
79
|
-
if (!this.#closed)
|
|
80
|
-
return this.#connecting;
|
|
81
|
-
this.#closed = false;
|
|
82
|
-
this.#closing = undefined;
|
|
83
|
-
this.#abort = new AbortController();
|
|
84
|
-
this.#signal = AbortSignal.any([
|
|
85
|
-
this.#abort.signal,
|
|
86
|
-
...(this.dependencies.signal ? [this.dependencies.signal] : [])
|
|
87
|
-
]);
|
|
88
|
-
this.#delivery = new ImDeliveryDispatcher(this.#signal);
|
|
89
|
-
this.#connecting = this.#connect();
|
|
90
|
-
try {
|
|
91
|
-
await this.#connecting;
|
|
92
|
-
}
|
|
93
|
-
finally {
|
|
94
|
-
this.#connecting = undefined;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
async #connect() {
|
|
98
|
-
if (this.#closed || this.#signal.aborted)
|
|
99
|
-
return;
|
|
100
|
-
this.#connectionAbort?.abort();
|
|
101
|
-
await this.#connector?.close();
|
|
102
|
-
if (this.#closed || this.#signal.aborted)
|
|
103
|
-
return;
|
|
104
|
-
this.#connectionAbort = new AbortController();
|
|
105
|
-
const signal = AbortSignal.any([this.#signal, this.#connectionAbort.signal]);
|
|
106
|
-
const credentials = this.dependencies.credentials ?? ((config) => Promise.resolve(config.app_secret));
|
|
107
|
-
const connector = new WecomTransport(this.config, credentials, {
|
|
108
|
-
authorizeSpace: this.dependencies.authorizeSpace,
|
|
109
|
-
onMessage: (message) => {
|
|
110
|
-
if (connector === this.#connector && !signal.aborted)
|
|
111
|
-
this.#receive(message);
|
|
112
|
-
},
|
|
113
|
-
onDiagnostic: (code) => {
|
|
114
|
-
if (connector === this.#connector && !signal.aborted)
|
|
115
|
-
this.#diagnostic(code);
|
|
116
|
-
},
|
|
117
|
-
onDisconnect: (code, retryable = true) => {
|
|
118
|
-
if (connector !== this.#connector || this.#closed || signal.aborted)
|
|
119
|
-
return;
|
|
120
|
-
this.#error = code;
|
|
121
|
-
if (!retryable) {
|
|
122
|
-
this.#connectionAbort?.abort();
|
|
123
|
-
void connector.close().catch(() => this.#diagnostic("IM_DISPOSE_FAILED"));
|
|
124
|
-
this.#state = "stopped";
|
|
125
|
-
if (this.#reconnect) {
|
|
126
|
-
clearTimeout(this.#reconnect);
|
|
127
|
-
this.#reconnect = undefined;
|
|
128
|
-
}
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
this.#state = "retrying";
|
|
132
|
-
this.#scheduleReconnect();
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
this.#connector = connector;
|
|
136
|
-
this.#state = "connecting";
|
|
137
|
-
try {
|
|
138
|
-
await connector.start(signal);
|
|
139
|
-
if (signal.aborted) {
|
|
140
|
-
await connector.close();
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
this.#state = "online";
|
|
144
|
-
this.#log("channel.connected", { state: "online" });
|
|
145
|
-
this.#error = undefined;
|
|
146
|
-
this.#retry = 0;
|
|
147
|
-
}
|
|
148
|
-
catch (error) {
|
|
149
|
-
if (signal.aborted)
|
|
150
|
-
return;
|
|
151
|
-
const code = error instanceof Error && /^(?:IM|WECOM)_[A-Z0-9_]+$/.test(error.message)
|
|
152
|
-
? error.message
|
|
153
|
-
: "IM_CONNECTION_FAILED";
|
|
154
|
-
this.#connectionAbort.abort();
|
|
155
|
-
await connector.close();
|
|
156
|
-
this.#error = code;
|
|
157
|
-
if (this.#reconnect) {
|
|
158
|
-
clearTimeout(this.#reconnect);
|
|
159
|
-
this.#reconnect = undefined;
|
|
160
|
-
}
|
|
161
|
-
if (code === "IM_CREDENTIALS_REQUIRED") {
|
|
162
|
-
// 账号可先登记后补凭据;每次重连重新调用宿主凭据源,无需重启 Daemon。
|
|
163
|
-
this.#state = "waiting_credentials";
|
|
164
|
-
this.#error = undefined;
|
|
165
|
-
this.#scheduleReconnect();
|
|
166
|
-
}
|
|
167
|
-
else if ([
|
|
168
|
-
"IM_BOT_TOKEN_INVALID",
|
|
169
|
-
"IM_TENANT_NOT_ACTIVE",
|
|
170
|
-
"IM_AUTH_HTTP_401",
|
|
171
|
-
"IM_AUTH_HTTP_403",
|
|
172
|
-
"IM_AUTH_IDENTITY_INVALID",
|
|
173
|
-
"IM_BOT_IDENTITY_MISMATCH",
|
|
174
|
-
"IM_REGISTER_HTTP_401",
|
|
175
|
-
"IM_REGISTER_HTTP_403"
|
|
176
|
-
].includes(code) ||
|
|
177
|
-
code.startsWith("WECOM_AUTH_REJECTED"))
|
|
178
|
-
this.#state = "authentication_failed";
|
|
179
|
-
else {
|
|
180
|
-
this.#state = "retrying";
|
|
181
|
-
this.#scheduleReconnect();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
#scheduleReconnect() {
|
|
186
|
-
if (this.#closed || this.#signal.aborted || this.#reconnect)
|
|
187
|
-
return;
|
|
188
|
-
this.#reconnect = setTimeout(() => {
|
|
189
|
-
this.#reconnect = undefined;
|
|
190
|
-
this.#connecting = this.#connect().finally(() => {
|
|
191
|
-
this.#connecting = undefined;
|
|
192
|
-
});
|
|
193
|
-
}, Math.min(30_000, 5_000 * 2 ** this.#retry++));
|
|
194
|
-
this.#reconnect.unref();
|
|
195
|
-
}
|
|
196
|
-
#diagnostic(code, runId, data = {}) {
|
|
197
|
-
try {
|
|
198
|
-
this.dependencies.log?.("warn", "channel.diagnostic", {
|
|
199
|
-
code,
|
|
200
|
-
...data,
|
|
201
|
-
endpoint_id: imBotIdentity(this.config),
|
|
202
|
-
...(runId ? { run_id: runId } : {})
|
|
203
|
-
});
|
|
204
|
-
this.dependencies.onDiagnostic?.(code, {
|
|
205
|
-
endpointId: imBotIdentity(this.config),
|
|
206
|
-
...(runId ? { runId } : {})
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
catch {
|
|
210
|
-
/* Diagnostics cannot fail execution. */
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
#log(event, data = {}) {
|
|
214
|
-
try {
|
|
215
|
-
this.dependencies.log?.("info", event, { endpoint_id: imBotIdentity(this.config), ...data });
|
|
216
|
-
}
|
|
217
|
-
catch {
|
|
218
|
-
/* 诊断不改变业务结果。 */
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
#key(message) {
|
|
222
|
-
return [
|
|
223
|
-
this.#connector.identity,
|
|
224
|
-
imBotIdentity(this.config),
|
|
225
|
-
this.config.adapter.adapter_type ?? "",
|
|
226
|
-
message.conversationKind,
|
|
227
|
-
message.conversationId
|
|
228
|
-
]
|
|
229
|
-
.map(encodeURIComponent)
|
|
230
|
-
.join("/");
|
|
231
|
-
}
|
|
232
|
-
#receive(message) {
|
|
233
|
-
if (this.#closed ||
|
|
234
|
-
(this.config.allowed_sender_ids && !this.config.allowed_sender_ids.includes(message.senderId)))
|
|
235
|
-
return;
|
|
236
|
-
const now = Date.now();
|
|
237
|
-
for (const [id, expiry] of this.#seen)
|
|
238
|
-
if (expiry <= now)
|
|
239
|
-
this.#seen.delete(id);
|
|
240
|
-
const key = this.#key(message), dedupe = `${key}/${encodeURIComponent(message.messageId)}`;
|
|
241
|
-
if (this.#seen.has(dedupe))
|
|
242
|
-
return;
|
|
243
|
-
if (this.#seen.size >= 4096 || Buffer.byteLength(message.text) > 64 * 1024) {
|
|
244
|
-
this.#diagnostic("IM_INBOUND_CAPACITY_EXHAUSTED");
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
this.#seen.set(dedupe, now + 120_000);
|
|
248
|
-
const command = message.text.trim();
|
|
249
|
-
if (/^\/(approve|decline|respond)\s/.test(command)) {
|
|
250
|
-
void this.#respond(message, key).catch(() => this.#diagnostic("IM_INTERACTION_RESPONSE_FAILED"));
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
let session;
|
|
254
|
-
try {
|
|
255
|
-
session = this.#session(key);
|
|
256
|
-
}
|
|
257
|
-
catch {
|
|
258
|
-
const failure = failurePayload({ code: "IM_SESSION_STORE_FAILED" }, {
|
|
259
|
-
stage: "channel_session_read",
|
|
260
|
-
defaultDomain: "runtime"
|
|
261
|
-
}).failure;
|
|
262
|
-
void this.#notifyFailure(message, failure).finally(() => this.#seen.delete(dedupe));
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
try {
|
|
266
|
-
if (command === "/reset") {
|
|
267
|
-
try {
|
|
268
|
-
const binding = this.#sessionStore.reset(key, message.messageId);
|
|
269
|
-
session.id = binding.id;
|
|
270
|
-
session.generation = binding.generation;
|
|
271
|
-
session.providerSession = binding.providerSession;
|
|
272
|
-
session.lastRunId = undefined;
|
|
273
|
-
void this.#reply(message, "会话已经重置", `control:${message.messageId}`, true).catch(() => {
|
|
274
|
-
this.#seen.delete(dedupe);
|
|
275
|
-
this.#diagnostic("IM_RESET_REPLY_FAILED");
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
catch {
|
|
279
|
-
this.#seen.delete(dedupe);
|
|
280
|
-
void this.#reply(message, "会话重置失败,请重试。", `reset-failed:${message.messageId}`).catch(() => this.#diagnostic("IM_RESET_FAILED"));
|
|
281
|
-
}
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
if (command === "/stop" || command === "/cancel") {
|
|
285
|
-
// 控制命令绕过普通消息队列,否则 stop 会排在待取消的长任务之后。
|
|
286
|
-
const preparation = this.#preparing.get(key);
|
|
287
|
-
preparation?.abort();
|
|
288
|
-
const invocationId = session.activeInvocationId;
|
|
289
|
-
void (async () => {
|
|
290
|
-
const cancelled = preparation
|
|
291
|
-
? true
|
|
292
|
-
: invocationId
|
|
293
|
-
? (await this.dependencies.kernel.cancelInvocation(invocationId, "IM user stop"))
|
|
294
|
-
.accepted
|
|
295
|
-
: false;
|
|
296
|
-
await this.#reply(message, cancelled ? "已请求停止本轮执行。" : "当前没有可停止的执行。", `control:${message.messageId}`);
|
|
297
|
-
})().catch(() => this.#diagnostic("IM_CANCEL_FAILED"));
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
this.#enqueue(message, key);
|
|
301
|
-
}
|
|
302
|
-
catch {
|
|
303
|
-
this.#seen.delete(dedupe);
|
|
304
|
-
this.#diagnostic("IM_INBOUND_PROCESSING_FAILED");
|
|
305
|
-
}
|
|
306
|
-
finally {
|
|
307
|
-
if (session)
|
|
308
|
-
this.#releaseSession(key, session);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
#session(key) {
|
|
312
|
-
let session = this.#sessions.get(key);
|
|
313
|
-
if (!session) {
|
|
314
|
-
session = {
|
|
315
|
-
generation: 1,
|
|
316
|
-
...this.#sessionStore.read(key),
|
|
317
|
-
pending: 0,
|
|
318
|
-
tail: Promise.resolve()
|
|
319
|
-
};
|
|
320
|
-
this.#sessions.set(key, session);
|
|
321
|
-
}
|
|
322
|
-
return session;
|
|
323
|
-
}
|
|
324
|
-
#releaseSession(key, session) {
|
|
325
|
-
if (!session.pending && !session.activeInvocationId && this.#sessions.get(key) === session)
|
|
326
|
-
this.#sessions.delete(key);
|
|
327
|
-
}
|
|
328
|
-
#runControls(message, key, invocationId) {
|
|
329
|
-
const controls = {
|
|
330
|
-
failed: false,
|
|
331
|
-
cancel: async () => this.#sessions.get(key)?.activeInvocationId === invocationId &&
|
|
332
|
-
(await this.dependencies.kernel.cancelInvocation(invocationId, "IM card stop")).accepted,
|
|
333
|
-
retry: (senderId, id) => controls.failed && this.#enqueue({ ...message, senderId }, key, id)
|
|
334
|
-
};
|
|
335
|
-
return controls;
|
|
336
|
-
}
|
|
337
|
-
#enqueue(message, key, occurrenceId) {
|
|
338
|
-
if (this.#closed || this.#signal.aborted || this.#pending >= 64) {
|
|
339
|
-
this.#diagnostic("IM_INBOUND_CAPACITY_EXHAUSTED");
|
|
340
|
-
return false;
|
|
341
|
-
}
|
|
342
|
-
const id = occurrenceId ?? message.messageId;
|
|
343
|
-
const queuedKey = JSON.stringify([key, id]);
|
|
344
|
-
if (this.#queuedOccurrences.has(queuedKey))
|
|
345
|
-
return false;
|
|
346
|
-
const previous = this.#sessionStore.occurrence(key, id);
|
|
347
|
-
if (previous) {
|
|
348
|
-
void this.#reply(message, previous.text === message.text
|
|
349
|
-
? previous.notSubmittedFailure
|
|
350
|
-
? `原消息尚未提交,请修复故障后重新发送。\n错误码:${previous.notSubmittedFailure.code}\n诊断编号:${previous.notSubmittedFailure.diagnosticId}`
|
|
351
|
-
: "该消息已经提交,请查看原执行结果。"
|
|
352
|
-
: "消息身份冲突,请重新发送。", `duplicate:${id}`);
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
const session = this.#session(key);
|
|
356
|
-
try {
|
|
357
|
-
if (message.text.trim() !== "/session" && !session.id) {
|
|
358
|
-
const binding = { id: `as_${randomUUID()}`, generation: session.generation };
|
|
359
|
-
this.#sessionStore.save(key, binding);
|
|
360
|
-
session.id = binding.id;
|
|
361
|
-
}
|
|
362
|
-
const executionSession = { ...session };
|
|
363
|
-
this.#queuedOccurrences.add(queuedKey);
|
|
364
|
-
session.pending++;
|
|
365
|
-
this.#pending++;
|
|
366
|
-
session.tail = session.tail
|
|
367
|
-
.then(() => this.#turn(message, key, session, occurrenceId, executionSession))
|
|
368
|
-
.catch(() => this.#diagnostic("IM_TURN_FAILED"))
|
|
369
|
-
.finally(() => {
|
|
370
|
-
this.#queuedOccurrences.delete(queuedKey);
|
|
371
|
-
session.pending--;
|
|
372
|
-
this.#pending--;
|
|
373
|
-
this.#releaseSession(key, session);
|
|
374
|
-
});
|
|
375
|
-
return true;
|
|
376
|
-
}
|
|
377
|
-
finally {
|
|
378
|
-
this.#releaseSession(key, session);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
/** WeCom 沿自身文本回复协议消费共享错误;没有独立错误卡片端口,不复用已坏的展示实例。 */
|
|
382
|
-
#notifyFailure(message, failure, identity) {
|
|
383
|
-
const data = {
|
|
384
|
-
code: failure.code,
|
|
385
|
-
reason_code: failure.reasonCode,
|
|
386
|
-
diagnostic_id: failure.diagnosticId,
|
|
387
|
-
stage: failure.stage,
|
|
388
|
-
failure_component: failure.source.component,
|
|
389
|
-
occurred_at: failure.occurredAt,
|
|
390
|
-
...(failure.source.adapter ? { adapter_type: failure.source.adapter } : {}),
|
|
391
|
-
...(identity ? { invocation_id: identity.invocationId, session_id: identity.sessionId } : {})
|
|
392
|
-
};
|
|
393
|
-
this.#diagnostic(failure.reasonCode, identity?.runId, data);
|
|
394
|
-
if (this.#failureNotifications.size >= 64 || this.#closed || !this.#delivery)
|
|
395
|
-
return Promise.resolve();
|
|
396
|
-
const until = shutdownDeadline(this.dependencies.signal);
|
|
397
|
-
const effect = `failure:${message.messageId}:${failure.diagnosticId}`;
|
|
398
|
-
const text = `${failureMessage(failure.code)}\n错误码:${failure.code}\n诊断编号:${failure.diagnosticId}`;
|
|
399
|
-
const secondary = (code) => this.#diagnostic(code, identity?.runId, {
|
|
400
|
-
...data,
|
|
401
|
-
code,
|
|
402
|
-
reason_code: code,
|
|
403
|
-
primary_code: failure.code
|
|
404
|
-
});
|
|
405
|
-
const notification = withinShutdown(this.#delivery.deliver(effect, () => message.reply(text, effect), {
|
|
406
|
-
transient: true,
|
|
407
|
-
obsolete: () => this.#closed || performance.now() >= until
|
|
408
|
-
}), until, "IM_DELIVERY_UNKNOWN")
|
|
409
|
-
.then((receipt) => {
|
|
410
|
-
if (receipt.state !== "delivered")
|
|
411
|
-
secondary(receipt.code ?? "IM_DELIVERY_FAILED");
|
|
412
|
-
})
|
|
413
|
-
.catch(() => secondary("IM_DELIVERY_UNKNOWN"))
|
|
414
|
-
.finally(() => this.#failureNotifications.delete(failure.diagnosticId));
|
|
415
|
-
this.#failureNotifications.set(failure.diagnosticId, notification);
|
|
416
|
-
return notification;
|
|
417
|
-
}
|
|
418
|
-
async #reply(message, text, effectKey, requireDelivered = false) {
|
|
419
|
-
if (this.#closed || this.#signal.aborted || !this.#delivery)
|
|
420
|
-
return;
|
|
421
|
-
const receipt = await this.#delivery.deliver(effectKey, () => message.reply(text, effectKey));
|
|
422
|
-
if (receipt.state !== "delivered") {
|
|
423
|
-
this.#diagnostic(receipt.code ?? "IM_DELIVERY_FAILED");
|
|
424
|
-
if (requireDelivered)
|
|
425
|
-
throw new Error(receipt.code ?? "IM_DELIVERY_FAILED");
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
async #respond(message, key) {
|
|
429
|
-
const match = /^\/(approve|decline|respond)\s+(\S+)(?:\s+([\s\S]*))?$/.exec(message.text.trim());
|
|
430
|
-
if (!match)
|
|
431
|
-
return;
|
|
432
|
-
const entry = this.#interactions.get(match[2]);
|
|
433
|
-
if (!entry ||
|
|
434
|
-
entry.key !== key ||
|
|
435
|
-
entry.senderId !== message.senderId ||
|
|
436
|
-
entry.request.expiresAt === undefined ||
|
|
437
|
-
!Number.isFinite(Date.parse(entry.request.expiresAt)) ||
|
|
438
|
-
Date.parse(entry.request.expiresAt) <= Date.now()) {
|
|
439
|
-
await this.#reply(message, "该交互已失效或不属于当前会话。", `interaction:${message.messageId}`);
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
const command = match[1], approval = entry.request.kind === "approval";
|
|
443
|
-
if (approval !== (command !== "respond")) {
|
|
444
|
-
await this.#reply(message, "交互响应类型不匹配。", `interaction:${message.messageId}`);
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
const response = {
|
|
448
|
-
interactionId: match[2],
|
|
449
|
-
outcome: command === "approve" ? "accepted" : command === "decline" ? "declined" : "answered"
|
|
450
|
-
};
|
|
451
|
-
if (!approval) {
|
|
452
|
-
if (!match[3]?.trim())
|
|
453
|
-
return;
|
|
454
|
-
response.value =
|
|
455
|
-
entry.request.kind === "elicitation" ? JSON.parse(match[3]) : match[3];
|
|
456
|
-
}
|
|
457
|
-
if (this.#responding.has(response.interactionId))
|
|
458
|
-
return;
|
|
459
|
-
this.#responding.add(response.interactionId);
|
|
460
|
-
try {
|
|
461
|
-
await this.dependencies.kernel.respondInteraction(entry.invocationId, response);
|
|
462
|
-
this.#interactions.delete(response.interactionId);
|
|
463
|
-
}
|
|
464
|
-
finally {
|
|
465
|
-
this.#responding.delete(response.interactionId);
|
|
466
|
-
}
|
|
467
|
-
await this.#reply(message, "已提交本次响应。", `interaction:${message.messageId}`);
|
|
468
|
-
}
|
|
469
|
-
async #turn(message, key, session, occurrenceId, executionSession = session) {
|
|
470
|
-
if (this.#closed || this.#signal.aborted || !this.#delivery)
|
|
471
|
-
return;
|
|
472
|
-
const prompt = message.text.trim();
|
|
473
|
-
if (!prompt)
|
|
474
|
-
return;
|
|
475
|
-
if (prompt === "/session") {
|
|
476
|
-
await this.#reply(message, `session=${session.id} generation=${session.generation}${session.lastRunId ? ` run=${session.lastRunId}` : ""}`, `control:${message.messageId}`);
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
// 准备阶段尚无 invocationId,用独立 controller 让 /stop 和卸载能够取消宿主 Context IO。
|
|
480
|
-
const preparation = new AbortController();
|
|
481
|
-
this.#preparing.set(key, preparation);
|
|
482
|
-
const turnSignal = AbortSignal.any([this.#signal, preparation.signal]);
|
|
483
|
-
let prepared;
|
|
484
|
-
try {
|
|
485
|
-
if (session.id === executionSession.id)
|
|
486
|
-
executionSession.providerSession = session.providerSession;
|
|
487
|
-
// 每轮重新构造材料快照;Provider session 只续接执行,不承载或缓存 Context。
|
|
488
|
-
prepared = createImInvocation(this.config, message, await message.buildContext(turnSignal, {
|
|
489
|
-
// 先取得本轮完整配置快照,再交渠道构造业务材料;加载失败时不会进入 Provider。
|
|
490
|
-
configuredItems: await this.dependencies.prepareContexts?.(this.config, turnSignal)
|
|
491
|
-
}), key, executionSession, turnSignal, occurrenceId);
|
|
492
|
-
if (session.id === prepared.request.sessionId) {
|
|
493
|
-
session.lastEventId = executionSession.lastEventId;
|
|
494
|
-
session.lastRunId = prepared.request.runId;
|
|
495
|
-
this.#saveBinding(key, session);
|
|
496
|
-
}
|
|
497
|
-
turnSignal.throwIfAborted();
|
|
498
|
-
const snapshot = { ...prepared.request };
|
|
499
|
-
this.#sessionStore.remember(key, occurrenceId ?? message.messageId, {
|
|
500
|
-
text: message.text,
|
|
501
|
-
sessionId: executionSession.id,
|
|
502
|
-
runId: prepared.request.runId,
|
|
503
|
-
snapshot
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
catch (error) {
|
|
507
|
-
if (turnSignal.aborted)
|
|
508
|
-
return;
|
|
509
|
-
const preparationMessage = error instanceof Error ? preparationFailureMessages.get(error.message) : undefined;
|
|
510
|
-
if (error instanceof Error &&
|
|
511
|
-
(preparationMessage || /^IM_CONTEXT_(?:LOADING|RESULT)_[A-Z_]+$/.test(error.message)))
|
|
512
|
-
this.#diagnostic(error.message);
|
|
513
|
-
this.#diagnostic("IM_CONTEXT_PREPARATION_FAILED");
|
|
514
|
-
await this.#reply(message, preparationMessage ??
|
|
515
|
-
"本轮输入或执行配置准备失败,尚未发起执行。请检查配置、会话权限或稍后重试。", `prepare:${occurrenceId ?? message.messageId}`);
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
finally {
|
|
519
|
-
this.#preparing.delete(key);
|
|
520
|
-
}
|
|
521
|
-
if (this.#closed || this.#signal.aborted)
|
|
522
|
-
return;
|
|
523
|
-
const { request } = prepared;
|
|
524
|
-
this.#log("agent_run.requested", {
|
|
525
|
-
run_id: request.runId,
|
|
526
|
-
invocation_id: request.invocationId,
|
|
527
|
-
session_id: request.sessionId
|
|
528
|
-
});
|
|
529
|
-
let projector = new ImRunProjector(request.runId, message.conversationKind === "direct");
|
|
530
|
-
const controls = this.#runControls(message, key, request.invocationId);
|
|
531
|
-
let presentation;
|
|
532
|
-
let presentationFailed = false;
|
|
533
|
-
let executionStarted = false;
|
|
534
|
-
let localFailure;
|
|
535
|
-
const ignoredAsyncQuestions = new Set();
|
|
536
|
-
try {
|
|
537
|
-
presentation = message.beginPresentation?.(request.runId, (code) => this.#diagnostic(code, request.runId), controls);
|
|
538
|
-
presentation?.update(projector.snapshot());
|
|
539
|
-
session.activeInvocationId = request.invocationId;
|
|
540
|
-
executionStarted = true;
|
|
541
|
-
for await (const event of this.dependencies.kernel.invoke(request, {
|
|
542
|
-
signal: this.#signal
|
|
543
|
-
})) {
|
|
544
|
-
if (this.#closed || this.#signal.aborted)
|
|
545
|
-
break;
|
|
546
|
-
// 企微尚未接入异步表单;在登记、提示和状态投影前成对过滤,正文继续正常交付。
|
|
547
|
-
// resolved 不带 delivery,须用本轮 requested 的身份识别,避免覆盖同步交互的等待状态。
|
|
548
|
-
if (event.type === "interaction.requested" && event.payload.delivery === "async") {
|
|
549
|
-
if (ignoredAsyncQuestions.size >= 64 &&
|
|
550
|
-
!ignoredAsyncQuestions.has(event.payload.interactionId))
|
|
551
|
-
throw new Error("IM_INTERACTION_CAPACITY_EXHAUSTED");
|
|
552
|
-
ignoredAsyncQuestions.add(event.payload.interactionId);
|
|
553
|
-
continue;
|
|
554
|
-
}
|
|
555
|
-
if (event.type === "interaction.resolved" &&
|
|
556
|
-
ignoredAsyncQuestions.delete(event.payload.interactionId))
|
|
557
|
-
continue;
|
|
558
|
-
if (event.type === "session.update" && session.id === request.sessionId) {
|
|
559
|
-
session.providerSession = event.payload.providerSession;
|
|
560
|
-
this.#saveBinding(key, session);
|
|
561
|
-
}
|
|
562
|
-
// 只有执行策略与事件策略均为 full_access 的审批才是自动处理的审计记录。
|
|
563
|
-
// 问题/elicitation 仍须展示并交回原交互入口,不能一并过滤。
|
|
564
|
-
if (event.type === "interaction.requested" &&
|
|
565
|
-
event.payload.kind === "approval" &&
|
|
566
|
-
request.approvalMode === "full_access" &&
|
|
567
|
-
event.payload.request.policy?.mode === "full_access")
|
|
568
|
-
continue;
|
|
569
|
-
if (event.type === "interaction.requested") {
|
|
570
|
-
if (Array.isArray(event.payload.request.questions) &&
|
|
571
|
-
event.payload.request.questions.some((question) => question !== null &&
|
|
572
|
-
typeof question === "object" &&
|
|
573
|
-
"isSecret" in question &&
|
|
574
|
-
question.isSecret === true)) {
|
|
575
|
-
this.#diagnostic("IM_INTERACTION_SECRET_UNSUPPORTED", request.runId);
|
|
576
|
-
await this.dependencies.kernel.cancelInvocation(request.invocationId, "IM secret input unsupported");
|
|
577
|
-
continue;
|
|
578
|
-
}
|
|
579
|
-
if (this.#interactions.size >= 64)
|
|
580
|
-
throw new Error("IM_INTERACTION_CAPACITY_EXHAUSTED");
|
|
581
|
-
this.#interactions.set(event.payload.interactionId, {
|
|
582
|
-
invocationId: request.invocationId,
|
|
583
|
-
key,
|
|
584
|
-
senderId: message.senderId,
|
|
585
|
-
request: structuredClone(event.payload)
|
|
586
|
-
});
|
|
587
|
-
const interaction = event.payload;
|
|
588
|
-
const display = interaction.request.operation;
|
|
589
|
-
const summary = [
|
|
590
|
-
display?.summary,
|
|
591
|
-
interaction.request.question,
|
|
592
|
-
interaction.request.message
|
|
593
|
-
].find((value) => typeof value === "string");
|
|
594
|
-
const instruction = interaction.kind === "approval"
|
|
595
|
-
? `/approve ${interaction.interactionId} 或 /decline ${interaction.interactionId}`
|
|
596
|
-
: `/respond ${interaction.interactionId} ${interaction.kind === "elicitation" ? "<JSON>" : "<回答>"}`;
|
|
597
|
-
await this.#reply(message, `${summary?.slice(0, 1000) ?? "执行需要你的确认或输入。"}\n${instruction}`, `interaction:${interaction.interactionId}`, true);
|
|
598
|
-
}
|
|
599
|
-
if (event.type === "interaction.resolved")
|
|
600
|
-
this.#interactions.delete(event.payload.interactionId);
|
|
601
|
-
projector.accept(event);
|
|
602
|
-
controls.failed = projector.snapshot().terminal === "failed";
|
|
603
|
-
if (!presentationFailed) {
|
|
604
|
-
try {
|
|
605
|
-
presentation?.update(projector.snapshot());
|
|
606
|
-
}
|
|
607
|
-
catch {
|
|
608
|
-
presentationFailed = true;
|
|
609
|
-
this.#diagnostic("IM_PRESENTATION_FAILED", request.runId);
|
|
610
|
-
if (!projector.snapshot().terminal)
|
|
611
|
-
void this.dependencies.kernel
|
|
612
|
-
.cancelInvocation(request.invocationId, "IM presentation failed")
|
|
613
|
-
.catch(() => this.#diagnostic("IM_CANCEL_FAILED", request.runId));
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
if (!projector.snapshot().terminal)
|
|
618
|
-
throw new Error("IM_RUN_WITHOUT_TERMINAL");
|
|
619
|
-
}
|
|
620
|
-
catch (error) {
|
|
621
|
-
if (!executionStarted || isInvocationNotSubmitted(error)) {
|
|
622
|
-
localFailure = failurePayload({
|
|
623
|
-
code: executionStarted
|
|
624
|
-
? "CLIENT_INVOCATION_ADMISSION_CLOSED"
|
|
625
|
-
: "IM_PRESENTATION_INITIALIZATION_FAILED"
|
|
626
|
-
}, {
|
|
627
|
-
stage: executionStarted ? "channel_admission" : "channel_presentation_initialize",
|
|
628
|
-
defaultDomain: "runtime",
|
|
629
|
-
invocationNotSubmitted: executionStarted,
|
|
630
|
-
runId: request.runId
|
|
631
|
-
}).failure;
|
|
632
|
-
controls.failed = false;
|
|
633
|
-
await this.#notifyFailure(message, localFailure, request);
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
// 流断开无法证明执行失败;尽力取消并提示核查,不自动重跑潜在的业务副作用。
|
|
637
|
-
await this.dependencies.kernel
|
|
638
|
-
.cancelInvocation(request.invocationId, "IM execution stream failed")
|
|
639
|
-
.catch(() => undefined);
|
|
640
|
-
this.#diagnostic("IM_EXECUTION_RESULT_UNKNOWN", request.runId);
|
|
641
|
-
controls.failed = false;
|
|
642
|
-
projector = new ImRunProjector(request.runId, message.conversationKind === "direct");
|
|
643
|
-
if (!presentationFailed) {
|
|
644
|
-
try {
|
|
645
|
-
presentation?.update({ ...projector.snapshot(), resultUnknown: true });
|
|
646
|
-
}
|
|
647
|
-
catch {
|
|
648
|
-
this.#diagnostic("IM_PRESENTATION_FAILED", request.runId);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
finally {
|
|
654
|
-
this.#log("agent_run.finished", {
|
|
655
|
-
run_id: request.runId,
|
|
656
|
-
invocation_id: request.invocationId,
|
|
657
|
-
session_id: request.sessionId,
|
|
658
|
-
status: localFailure ? "not_submitted" : (projector.snapshot().terminal ?? "unknown")
|
|
659
|
-
});
|
|
660
|
-
if (localFailure && !this.#closed) {
|
|
661
|
-
try {
|
|
662
|
-
this.#sessionStore.remember(key, occurrenceId ?? message.messageId, {
|
|
663
|
-
text: message.text,
|
|
664
|
-
sessionId: request.sessionId,
|
|
665
|
-
runId: request.runId,
|
|
666
|
-
snapshot: { ...request },
|
|
667
|
-
notSubmittedFailure: localFailure
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
catch {
|
|
671
|
-
this.#diagnostic("IM_SESSION_STORE_FAILED", request.runId);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
session.activeInvocationId = undefined;
|
|
675
|
-
for (const [id, entry] of this.#interactions)
|
|
676
|
-
if (entry.invocationId === request.invocationId)
|
|
677
|
-
this.#interactions.delete(id);
|
|
678
|
-
try {
|
|
679
|
-
await withinShutdown(Promise.resolve().then(() => presentation?.finish()), shutdownDeadline(this.dependencies.signal), "IM_PRESENTATION_FINISH_INCOMPLETE");
|
|
680
|
-
}
|
|
681
|
-
catch (error) {
|
|
682
|
-
if (error instanceof Error && error.message === "IM_PRESENTATION_FINISH_INCOMPLETE")
|
|
683
|
-
this.#finishIncomplete ??= error;
|
|
684
|
-
this.#diagnostic("IM_PRESENTATION_FAILED", request.runId);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
if (localFailure)
|
|
688
|
-
return;
|
|
689
|
-
if (this.#closed || this.#signal.aborted)
|
|
690
|
-
return;
|
|
691
|
-
const snapshot = projector.snapshot();
|
|
692
|
-
const terminal = snapshot.terminal;
|
|
693
|
-
const text = terminal === "completed"
|
|
694
|
-
? projector.finalText || "本轮执行完成,未返回文本。"
|
|
695
|
-
: terminal === "cancelled"
|
|
696
|
-
? "本轮执行已中断。"
|
|
697
|
-
: terminal === "failed"
|
|
698
|
-
? `本轮执行未成功,请查看运行记录。${snapshot.failure ? `\n错误码:${snapshot.failure.code}\n诊断编号:${snapshot.failure.diagnosticId}` : ""}`
|
|
699
|
-
: "本轮执行结果未知,请查看运行记录,避免重复执行。";
|
|
700
|
-
// 最终文本拥有独立投递身份,即使进度卡投递失败,也必须尝试回复用户。
|
|
701
|
-
await this.#reply(message, text, `final:${request.runId}`);
|
|
702
|
-
}
|
|
703
|
-
#saveBinding(key, session) {
|
|
704
|
-
this.#sessionStore.save(key, {
|
|
705
|
-
id: session.id,
|
|
706
|
-
generation: session.generation,
|
|
707
|
-
providerSession: session.providerSession,
|
|
708
|
-
lastEventId: session.lastEventId,
|
|
709
|
-
lastRunId: session.lastRunId
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
close() {
|
|
713
|
-
if (this.#closing)
|
|
714
|
-
return this.#closing;
|
|
715
|
-
this.#closed = true;
|
|
716
|
-
this.#state = "stopped";
|
|
717
|
-
this.#log("channel.stopped", { state: "stopped" });
|
|
718
|
-
this.#abort.abort();
|
|
719
|
-
this.#connectionAbort?.abort();
|
|
720
|
-
if (this.#reconnect) {
|
|
721
|
-
clearTimeout(this.#reconnect);
|
|
722
|
-
this.#reconnect = undefined;
|
|
723
|
-
}
|
|
724
|
-
this.#closing = Promise.resolve().then(async () => {
|
|
725
|
-
const errors = [];
|
|
726
|
-
const attempt = async (operation) => {
|
|
727
|
-
try {
|
|
728
|
-
await operation();
|
|
729
|
-
}
|
|
730
|
-
catch (error) {
|
|
731
|
-
errors.push(error);
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
await attempt(() => this.#connector?.close());
|
|
735
|
-
await Promise.all([...this.#sessions.values()]
|
|
736
|
-
.filter((session) => session.activeInvocationId)
|
|
737
|
-
.map((session) => attempt(() => this.dependencies.kernel.cancelInvocation(session.activeInvocationId, "IM shutdown"))));
|
|
738
|
-
await attempt(() => this.#connecting);
|
|
739
|
-
await Promise.all([...this.#failureNotifications.values()].map((notification) => attempt(() => notification)));
|
|
740
|
-
await Promise.all([...this.#sessions.values()].map((session) => attempt(() => session.tail)));
|
|
741
|
-
if (!this.dependencies.sessions)
|
|
742
|
-
await attempt(() => this.#sessionStore.close?.());
|
|
743
|
-
if (this.#finishIncomplete)
|
|
744
|
-
errors.push(this.#finishIncomplete);
|
|
745
|
-
if (errors.length)
|
|
746
|
-
throw new AggregateError(errors, "IM_DISPOSE_FAILED");
|
|
747
|
-
this.#sessions.clear();
|
|
748
|
-
this.#seen.clear();
|
|
749
|
-
this.#interactions.clear();
|
|
750
|
-
this.#connector = undefined;
|
|
751
|
-
});
|
|
752
|
-
return this.#closing;
|
|
753
|
-
}
|
|
754
|
-
}
|