@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-gateway/dist/transport/api/files.js
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 文件输入辅助与渠道固定产物交付;显式业务上传仍由 Agent 工具负责。
|
|
3
|
-
* 合同:.octospec/tasks/182-channel-artifact-delivery/brief.md
|
|
4
|
-
*/
|
|
5
|
-
// Adapted from Mininglamp-OSS/openclaw-channel-octo/src/api-fetch.ts.
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
import { open } from "node:fs/promises";
|
|
8
|
-
import { readResponseText, fetchWithDispatch } from "./client.js";
|
|
9
|
-
import { trimTrailingSlashes } from "./url.js";
|
|
10
|
-
/** 校验服务端返回的长期下载地址;不把 PUT 地址、签名有效期或 Bot 鉴权路由冒充附件。 */
|
|
11
|
-
export function attachmentUrl(raw, apiUrl) {
|
|
12
|
-
if (typeof raw !== "string" || !raw.trim() || raw.length > 8192)
|
|
13
|
-
throw new Error("invalid-download-url");
|
|
14
|
-
let url;
|
|
15
|
-
try {
|
|
16
|
-
url = new URL(raw, `${trimTrailingSlashes(apiUrl)}/`);
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
throw new Error("invalid-download-url");
|
|
20
|
-
}
|
|
21
|
-
const api = new URL(apiUrl);
|
|
22
|
-
if (url.username ||
|
|
23
|
-
url.password ||
|
|
24
|
-
(url.protocol !== "https:" &&
|
|
25
|
-
!(url.protocol === "http:" &&
|
|
26
|
-
url.origin === api.origin &&
|
|
27
|
-
["localhost", "127.0.0.1", "[::1]"].includes(url.hostname))) ||
|
|
28
|
-
/\/(?:v1\/)?(?:bot\/)?file\/(?:preview|download|upload)(?:\/|$)/i.test(url.pathname) ||
|
|
29
|
-
/\/(?:v1\/)?botfile(?:\/|$)/i.test(url.pathname) ||
|
|
30
|
-
[...url.searchParams.keys()].some((key) => /^(?:x-amz-|x-goog-|q-sign-|signature$|sig$|expires$|expiry$|expire$|token$|access_token$|ossaccesskeyid$)/i.test(key)))
|
|
31
|
-
throw new Error("unstable-download-url");
|
|
32
|
-
return url.href;
|
|
33
|
-
}
|
|
34
|
-
/** 当前 Bot 获取聊天上传凭据后直传;只交付独立 downloadUrl,绝不转发 Bot Token。 */
|
|
35
|
-
export async function uploadChatAttachment(apiUrl, token, bytes, filename, mime, signal, dispatchRequest) {
|
|
36
|
-
signal = AbortSignal.any([signal, AbortSignal.timeout(30_000)]);
|
|
37
|
-
signal.throwIfAborted();
|
|
38
|
-
const query = new URLSearchParams({ filename, fileSize: String(bytes.byteLength) });
|
|
39
|
-
const response = await fetchWithDispatch(`${trimTrailingSlashes(apiUrl)}/v1/bot/upload/presigned?${query.toString()}`, {
|
|
40
|
-
method: "GET",
|
|
41
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
42
|
-
signal,
|
|
43
|
-
redirect: "error"
|
|
44
|
-
}, dispatchRequest);
|
|
45
|
-
const body = await readResponseText(response, 64 << 10);
|
|
46
|
-
if (!response.ok)
|
|
47
|
-
throw new Error("upload-rejected");
|
|
48
|
-
let result;
|
|
49
|
-
try {
|
|
50
|
-
result = JSON.parse(body);
|
|
51
|
-
}
|
|
52
|
-
catch {
|
|
53
|
-
throw new Error("invalid-upload-response");
|
|
54
|
-
}
|
|
55
|
-
if (!result || typeof result !== "object")
|
|
56
|
-
throw new Error("invalid-upload-response");
|
|
57
|
-
const download = attachmentUrl(result.downloadUrl, apiUrl);
|
|
58
|
-
if (result.method !== "PUT" ||
|
|
59
|
-
typeof result.uploadUrl !== "string" ||
|
|
60
|
-
result.uploadUrl.length > 16_384 ||
|
|
61
|
-
(result.maxFileSize !== undefined && result.maxFileSize !== bytes.byteLength) ||
|
|
62
|
-
(result.expiredTime !== undefined &&
|
|
63
|
-
(typeof result.expiredTime !== "number" || result.expiredTime * 1000 <= Date.now())))
|
|
64
|
-
throw new Error("invalid-upload-response");
|
|
65
|
-
let upload;
|
|
66
|
-
try {
|
|
67
|
-
upload = new URL(result.uploadUrl);
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
throw new Error("invalid-upload-response");
|
|
71
|
-
}
|
|
72
|
-
const api = new URL(apiUrl);
|
|
73
|
-
if (upload.username ||
|
|
74
|
-
upload.password ||
|
|
75
|
-
(upload.protocol !== "https:" &&
|
|
76
|
-
!(upload.protocol === "http:" &&
|
|
77
|
-
upload.origin === api.origin &&
|
|
78
|
-
["localhost", "127.0.0.1", "[::1]"].includes(upload.hostname))))
|
|
79
|
-
throw new Error("invalid-upload-response");
|
|
80
|
-
const headers = {};
|
|
81
|
-
const contentType = result.contentType ?? ensureTextCharset(mime);
|
|
82
|
-
for (const [name, value] of [
|
|
83
|
-
["Content-Type", contentType],
|
|
84
|
-
["Content-Disposition", result.contentDisposition]
|
|
85
|
-
]) {
|
|
86
|
-
if (value === undefined)
|
|
87
|
-
continue;
|
|
88
|
-
if (typeof value !== "string" || value.length > 8192 || /[\r\n]/.test(value))
|
|
89
|
-
throw new Error("invalid-upload-response");
|
|
90
|
-
headers[name] = value;
|
|
91
|
-
}
|
|
92
|
-
signal.throwIfAborted();
|
|
93
|
-
// PUT 必须原样回显签名的类型/文件名;临时上传地址仅在此使用,网络未知不自动重放。
|
|
94
|
-
// presign 等待期间目标身份或任务可能取消;直传前检查,但不等待 WS 握手。
|
|
95
|
-
const stored = await fetchWithDispatch(upload.href, {
|
|
96
|
-
method: "PUT",
|
|
97
|
-
headers,
|
|
98
|
-
body: new Uint8Array(bytes),
|
|
99
|
-
redirect: "error",
|
|
100
|
-
signal
|
|
101
|
-
}, dispatchRequest);
|
|
102
|
-
await stored.body?.cancel();
|
|
103
|
-
signal.throwIfAborted();
|
|
104
|
-
if (!stored.ok)
|
|
105
|
-
throw new Error("upload-rejected");
|
|
106
|
-
return download;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Infer MIME type from filename extension. Returns a sensible default if unknown.
|
|
110
|
-
*/
|
|
111
|
-
export function inferContentType(filename) {
|
|
112
|
-
const ext = path.extname(filename).toLowerCase();
|
|
113
|
-
const map = {
|
|
114
|
-
".jpg": "image/jpeg",
|
|
115
|
-
".jpeg": "image/jpeg",
|
|
116
|
-
".png": "image/png",
|
|
117
|
-
".gif": "image/gif",
|
|
118
|
-
".webp": "image/webp",
|
|
119
|
-
".svg": "image/svg+xml",
|
|
120
|
-
".bmp": "image/bmp",
|
|
121
|
-
".ico": "image/x-icon",
|
|
122
|
-
".tif": "image/tiff",
|
|
123
|
-
".tiff": "image/tiff",
|
|
124
|
-
".mp4": "video/mp4",
|
|
125
|
-
".webm": "video/webm",
|
|
126
|
-
".mov": "video/quicktime",
|
|
127
|
-
".mp3": "audio/mpeg",
|
|
128
|
-
".wav": "audio/wav",
|
|
129
|
-
".ogg": "audio/ogg",
|
|
130
|
-
".pdf": "application/pdf",
|
|
131
|
-
".zip": "application/zip",
|
|
132
|
-
".doc": "application/msword",
|
|
133
|
-
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
134
|
-
".ppt": "application/vnd.ms-powerpoint",
|
|
135
|
-
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
136
|
-
".xls": "application/vnd.ms-excel",
|
|
137
|
-
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
138
|
-
".txt": "text/plain",
|
|
139
|
-
".md": "text/markdown",
|
|
140
|
-
".markdown": "text/markdown",
|
|
141
|
-
".csv": "text/csv",
|
|
142
|
-
".html": "text/html",
|
|
143
|
-
".htm": "text/html",
|
|
144
|
-
".css": "text/css",
|
|
145
|
-
".xml": "text/xml",
|
|
146
|
-
".yaml": "text/yaml",
|
|
147
|
-
".yml": "text/yaml",
|
|
148
|
-
".json": "application/json"
|
|
149
|
-
};
|
|
150
|
-
return map[ext] ?? "application/octet-stream";
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Ensure text/* content types include a charset parameter.
|
|
154
|
-
* If the content type starts with "text/" and has no charset, appends "; charset=utf-8".
|
|
155
|
-
*/
|
|
156
|
-
export function ensureTextCharset(contentType) {
|
|
157
|
-
if (contentType.startsWith("text/") && !contentType.includes("charset")) {
|
|
158
|
-
return contentType + "; charset=utf-8";
|
|
159
|
-
}
|
|
160
|
-
return contentType;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Parse image dimensions from buffer (PNG/JPEG/GIF/WebP).
|
|
164
|
-
* Lightweight — reads only the header bytes, no external dependencies.
|
|
165
|
-
*/
|
|
166
|
-
export function parseImageDimensions(buf, mime) {
|
|
167
|
-
try {
|
|
168
|
-
if (mime === "image/png" && buf.length > 24) {
|
|
169
|
-
// PNG: width at offset 16 (4 bytes BE), height at offset 20 (4 bytes BE)
|
|
170
|
-
return { width: buf.readUInt32BE(16), height: buf.readUInt32BE(20) };
|
|
171
|
-
}
|
|
172
|
-
if ((mime === "image/jpeg" || mime === "image/jpg") && buf.length > 2) {
|
|
173
|
-
// JPEG: scan for SOF0/SOF2 marker (0xFF 0xC0 or 0xFF 0xC2)
|
|
174
|
-
let offset = 2;
|
|
175
|
-
while (offset < buf.length - 8) {
|
|
176
|
-
if (buf[offset] !== 0xff)
|
|
177
|
-
break;
|
|
178
|
-
const marker = buf[offset + 1];
|
|
179
|
-
if (marker === 0xc0 || marker === 0xc2) {
|
|
180
|
-
return { width: buf.readUInt16BE(offset + 7), height: buf.readUInt16BE(offset + 5) };
|
|
181
|
-
}
|
|
182
|
-
const len = buf.readUInt16BE(offset + 2);
|
|
183
|
-
offset += 2 + len;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (mime === "image/gif" && buf.length > 10) {
|
|
187
|
-
// GIF: width at offset 6 (2 bytes LE), height at offset 8 (2 bytes LE)
|
|
188
|
-
return { width: buf.readUInt16LE(6), height: buf.readUInt16LE(8) };
|
|
189
|
-
}
|
|
190
|
-
if (mime === "image/webp" && buf.length > 30) {
|
|
191
|
-
// WebP VP8: width at offset 26, height at offset 28 (both 2 bytes LE)
|
|
192
|
-
if (buf.toString("ascii", 12, 16) === "VP8 " && buf.length > 29) {
|
|
193
|
-
return { width: buf.readUInt16LE(26) & 0x3fff, height: buf.readUInt16LE(28) & 0x3fff };
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
catch {
|
|
198
|
-
/* ignore parse errors */
|
|
199
|
-
}
|
|
200
|
-
return null;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Parse image dimensions from a file path by reading only the first 64KB.
|
|
204
|
-
* Avoids loading the entire file into memory.
|
|
205
|
-
*/
|
|
206
|
-
export async function parseImageDimensionsFromFile(filePath, mime) {
|
|
207
|
-
const HEADER_SIZE = 65536; // 64KB — enough for PNG/JPEG/GIF/WebP headers
|
|
208
|
-
let fh;
|
|
209
|
-
try {
|
|
210
|
-
fh = await open(filePath, "r");
|
|
211
|
-
const buf = Buffer.alloc(HEADER_SIZE);
|
|
212
|
-
const { bytesRead } = await fh.read(buf, 0, HEADER_SIZE, 0);
|
|
213
|
-
return parseImageDimensions(buf.subarray(0, bytesRead), mime);
|
|
214
|
-
}
|
|
215
|
-
catch {
|
|
216
|
-
/* ignore read/parse errors */
|
|
217
|
-
}
|
|
218
|
-
finally {
|
|
219
|
-
await fh?.close();
|
|
220
|
-
}
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Octo REST 公共入口:集中导出通道手动调用所需的接口。
|
|
3
|
-
* Channel 直接使用这些 API;LLM toolCall 使用 octo-cli,两者不互相启动或代替。
|
|
4
|
-
*/
|
|
5
|
-
export * from "./client.js";
|
|
6
|
-
export * from "./errors.js";
|
|
7
|
-
export * from "./types.js";
|
|
8
|
-
export * from "./messages.js";
|
|
9
|
-
export * from "./cards.js";
|
|
10
|
-
export * from "./conversations.js";
|
|
11
|
-
export * from "./rules.js";
|
|
12
|
-
export * from "./events.js";
|
|
13
|
-
export * from "./files.js";
|
package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Octo REST 公共入口:集中导出通道手动调用所需的接口。
|
|
3
|
-
* Channel 直接使用这些 API;LLM toolCall 使用 octo-cli,两者不互相启动或代替。
|
|
4
|
-
*/
|
|
5
|
-
export * from "./client.js";
|
|
6
|
-
export * from "./errors.js";
|
|
7
|
-
export * from "./types.js";
|
|
8
|
-
export * from "./messages.js";
|
|
9
|
-
export * from "./cards.js";
|
|
10
|
-
export * from "./conversations.js";
|
|
11
|
-
export * from "./rules.js";
|
|
12
|
-
export * from "./events.js";
|
|
13
|
-
export * from "./files.js";
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 消息 API:封装文本、媒体、typing、已读与心跳等平台请求。
|
|
3
|
-
* 调用方传入明确地址和凭据,幂等编号支持安全重试;此层不发起 AgentRun。
|
|
4
|
-
*/
|
|
5
|
-
import type { ChannelType } from "./types.js";
|
|
6
|
-
import { MessageType, type MentionEntity, type RichTextBlock, type SendMessageResult } from "./types.js";
|
|
7
|
-
import { type HttpRequestDispatch } from "./client.js";
|
|
8
|
-
/**
|
|
9
|
-
* Send a media message (image or file) to a channel.
|
|
10
|
-
*/
|
|
11
|
-
export declare function sendMediaMessage(params: {
|
|
12
|
-
apiUrl: string;
|
|
13
|
-
botToken: string;
|
|
14
|
-
channelId: string;
|
|
15
|
-
channelType: ChannelType;
|
|
16
|
-
type: MessageType;
|
|
17
|
-
url: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
size?: number;
|
|
20
|
-
width?: number;
|
|
21
|
-
height?: number;
|
|
22
|
-
mentionUids?: string[];
|
|
23
|
-
mentionEntities?: MentionEntity[];
|
|
24
|
-
onBehalfOf?: string;
|
|
25
|
-
clientMsgNo?: string;
|
|
26
|
-
signal?: AbortSignal;
|
|
27
|
-
}): Promise<SendMessageResult | undefined>;
|
|
28
|
-
export declare function sendMessage(params: {
|
|
29
|
-
apiUrl: string;
|
|
30
|
-
botToken: string;
|
|
31
|
-
channelId: string;
|
|
32
|
-
channelType: ChannelType;
|
|
33
|
-
content: string;
|
|
34
|
-
mentionUids?: string[];
|
|
35
|
-
mentionEntities?: MentionEntity[];
|
|
36
|
-
mentionAll?: boolean;
|
|
37
|
-
replyMsgId?: string;
|
|
38
|
-
onBehalfOf?: string;
|
|
39
|
-
clientMsgNo?: string;
|
|
40
|
-
signal?: AbortSignal;
|
|
41
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
42
|
-
}): Promise<SendMessageResult | undefined>;
|
|
43
|
-
/**
|
|
44
|
-
* 发送一条 RichText(=14) 图文混排消息。
|
|
45
|
-
*
|
|
46
|
-
* 替代「sendMessage 文本 + 循环 uploadMedia」的多次 HTTP:调用方先批量上传图片
|
|
47
|
-
* 拿到 url(含 width/height),再把文本与图片按顺序组成一条 `content` block 数组
|
|
48
|
-
* 提交。一条 payload = 一次 HTTP,server 端图文不再拆条。
|
|
49
|
-
*
|
|
50
|
-
* 契约(见 octo-lib richtext.go):
|
|
51
|
-
* - `content` 必填且非空;text block 的 text 非空、image block 的 url 为
|
|
52
|
-
* http/https 且 width/height >0 —— 校验由调用方/ server 负责,本函数只组装。
|
|
53
|
-
* - `plain` 出站可附带(供老客户端/降级),server 会用 content 权威重算覆盖。
|
|
54
|
-
* - `client_msg_no` 默认自动生成(幂等去重),调用方可显式传入复用。
|
|
55
|
-
*/
|
|
56
|
-
export declare function sendRichTextMessage(params: {
|
|
57
|
-
apiUrl: string;
|
|
58
|
-
botToken: string;
|
|
59
|
-
channelId: string;
|
|
60
|
-
channelType: ChannelType;
|
|
61
|
-
blocks: RichTextBlock[];
|
|
62
|
-
plain?: string;
|
|
63
|
-
mentionUids?: string[];
|
|
64
|
-
mentionEntities?: MentionEntity[];
|
|
65
|
-
mentionAll?: boolean;
|
|
66
|
-
replyMsgId?: string;
|
|
67
|
-
onBehalfOf?: string;
|
|
68
|
-
clientMsgNo?: string;
|
|
69
|
-
signal?: AbortSignal;
|
|
70
|
-
}): Promise<SendMessageResult | undefined>;
|
|
71
|
-
export declare function sendTyping(params: {
|
|
72
|
-
apiUrl: string;
|
|
73
|
-
botToken: string;
|
|
74
|
-
channelId: string;
|
|
75
|
-
channelType: ChannelType;
|
|
76
|
-
onBehalfOf?: string;
|
|
77
|
-
signal?: AbortSignal;
|
|
78
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
79
|
-
}): Promise<void>;
|
|
80
|
-
export declare function sendReadReceipt(params: {
|
|
81
|
-
apiUrl: string;
|
|
82
|
-
botToken: string;
|
|
83
|
-
channelId: string;
|
|
84
|
-
channelType: ChannelType;
|
|
85
|
-
messageIds?: string[];
|
|
86
|
-
signal?: AbortSignal;
|
|
87
|
-
}): Promise<void>;
|
|
88
|
-
export declare function sendHeartbeat(params: {
|
|
89
|
-
apiUrl: string;
|
|
90
|
-
botToken: string;
|
|
91
|
-
signal?: AbortSignal;
|
|
92
|
-
}): Promise<void>;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { MessageType } from "./types.js";
|
|
2
|
-
import { postJson, generateClientMsgNo } from "./client.js";
|
|
3
|
-
/**
|
|
4
|
-
* Send a media message (image or file) to a channel.
|
|
5
|
-
*/
|
|
6
|
-
export async function sendMediaMessage(params) {
|
|
7
|
-
// Last-line guard: never POST an empty channel_id — the server answers an
|
|
8
|
-
// opaque 500. Upstream resolvers should already reject this, but any future
|
|
9
|
-
// caller that bypasses them is stopped here. (#138)
|
|
10
|
-
if (!params.channelId || !params.channelId.trim()) {
|
|
11
|
-
throw new Error("octo: channelId is required to send a message");
|
|
12
|
-
}
|
|
13
|
-
const payload = {
|
|
14
|
-
type: params.type,
|
|
15
|
-
url: params.url
|
|
16
|
-
};
|
|
17
|
-
// Image (type=2) needs width/height/name/size; File (type=8) needs name/size
|
|
18
|
-
if (params.type === MessageType.Image) {
|
|
19
|
-
if (params.width)
|
|
20
|
-
payload.width = params.width;
|
|
21
|
-
if (params.height)
|
|
22
|
-
payload.height = params.height;
|
|
23
|
-
if (params.name)
|
|
24
|
-
payload.name = params.name;
|
|
25
|
-
if (params.size != null)
|
|
26
|
-
payload.size = params.size;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
if (params.name)
|
|
30
|
-
payload.name = params.name;
|
|
31
|
-
if (params.size != null)
|
|
32
|
-
payload.size = params.size;
|
|
33
|
-
}
|
|
34
|
-
if ((params.mentionUids && params.mentionUids.length > 0) ||
|
|
35
|
-
(params.mentionEntities && params.mentionEntities.length > 0)) {
|
|
36
|
-
const mention = {};
|
|
37
|
-
if (params.mentionUids && params.mentionUids.length > 0) {
|
|
38
|
-
mention.uids = params.mentionUids;
|
|
39
|
-
}
|
|
40
|
-
if (params.mentionEntities && params.mentionEntities.length > 0) {
|
|
41
|
-
mention.entities = params.mentionEntities;
|
|
42
|
-
}
|
|
43
|
-
payload.mention = mention;
|
|
44
|
-
}
|
|
45
|
-
return await postJson(params.apiUrl, params.botToken, "/v1/bot/sendMessage", {
|
|
46
|
-
channel_id: params.channelId,
|
|
47
|
-
channel_type: params.channelType,
|
|
48
|
-
payload,
|
|
49
|
-
client_msg_no: params.clientMsgNo ?? generateClientMsgNo(),
|
|
50
|
-
...(params.onBehalfOf ? { on_behalf_of: params.onBehalfOf } : {})
|
|
51
|
-
}, params.signal);
|
|
52
|
-
}
|
|
53
|
-
// SendMessageResult: use the canonical definition from types.ts
|
|
54
|
-
// (message_id is string due to int64 protection in postJson)
|
|
55
|
-
export async function sendMessage(params) {
|
|
56
|
-
// Last-line guard: never POST an empty channel_id — the server answers an
|
|
57
|
-
// opaque 500. Upstream resolvers should already reject this, but any future
|
|
58
|
-
// caller that bypasses them is stopped here. (#138)
|
|
59
|
-
if (!params.channelId || !params.channelId.trim()) {
|
|
60
|
-
throw new Error("octo: channelId is required to send a message");
|
|
61
|
-
}
|
|
62
|
-
const payload = {
|
|
63
|
-
type: MessageType.Text,
|
|
64
|
-
content: params.content
|
|
65
|
-
};
|
|
66
|
-
// Add mention field if any UIDs specified, entities present, or mentionAll
|
|
67
|
-
if ((params.mentionUids && params.mentionUids.length > 0) ||
|
|
68
|
-
(params.mentionEntities && params.mentionEntities.length > 0) ||
|
|
69
|
-
params.mentionAll) {
|
|
70
|
-
const mention = {};
|
|
71
|
-
if (params.mentionUids && params.mentionUids.length > 0) {
|
|
72
|
-
mention.uids = params.mentionUids;
|
|
73
|
-
}
|
|
74
|
-
if (params.mentionEntities && params.mentionEntities.length > 0) {
|
|
75
|
-
mention.entities = params.mentionEntities;
|
|
76
|
-
}
|
|
77
|
-
if (params.mentionAll) {
|
|
78
|
-
mention.all = 1;
|
|
79
|
-
}
|
|
80
|
-
payload.mention = mention;
|
|
81
|
-
}
|
|
82
|
-
// Add reply field if replyMsgId is provided
|
|
83
|
-
if (params.replyMsgId) {
|
|
84
|
-
payload.reply = { message_id: params.replyMsgId };
|
|
85
|
-
}
|
|
86
|
-
return await postJson(params.apiUrl, params.botToken, "/v1/bot/sendMessage", {
|
|
87
|
-
channel_id: params.channelId,
|
|
88
|
-
channel_type: params.channelType,
|
|
89
|
-
payload,
|
|
90
|
-
client_msg_no: params.clientMsgNo ?? generateClientMsgNo(),
|
|
91
|
-
...(params.onBehalfOf ? { on_behalf_of: params.onBehalfOf } : {})
|
|
92
|
-
}, params.signal, { dispatchRequest: params.dispatchRequest });
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* 发送一条 RichText(=14) 图文混排消息。
|
|
96
|
-
*
|
|
97
|
-
* 替代「sendMessage 文本 + 循环 uploadMedia」的多次 HTTP:调用方先批量上传图片
|
|
98
|
-
* 拿到 url(含 width/height),再把文本与图片按顺序组成一条 `content` block 数组
|
|
99
|
-
* 提交。一条 payload = 一次 HTTP,server 端图文不再拆条。
|
|
100
|
-
*
|
|
101
|
-
* 契约(见 octo-lib richtext.go):
|
|
102
|
-
* - `content` 必填且非空;text block 的 text 非空、image block 的 url 为
|
|
103
|
-
* http/https 且 width/height >0 —— 校验由调用方/ server 负责,本函数只组装。
|
|
104
|
-
* - `plain` 出站可附带(供老客户端/降级),server 会用 content 权威重算覆盖。
|
|
105
|
-
* - `client_msg_no` 默认自动生成(幂等去重),调用方可显式传入复用。
|
|
106
|
-
*/
|
|
107
|
-
export async function sendRichTextMessage(params) {
|
|
108
|
-
// Last-line guard: never POST an empty channel_id — the server answers an
|
|
109
|
-
// opaque 500. Upstream resolvers should already reject this, but any future
|
|
110
|
-
// caller that bypasses them is stopped here. (#138)
|
|
111
|
-
if (!params.channelId || !params.channelId.trim()) {
|
|
112
|
-
throw new Error("octo: channelId is required to send a message");
|
|
113
|
-
}
|
|
114
|
-
const payload = {
|
|
115
|
-
type: MessageType.RichText,
|
|
116
|
-
content: params.blocks
|
|
117
|
-
};
|
|
118
|
-
if (typeof params.plain === "string") {
|
|
119
|
-
payload.plain = params.plain;
|
|
120
|
-
}
|
|
121
|
-
if ((params.mentionUids && params.mentionUids.length > 0) ||
|
|
122
|
-
(params.mentionEntities && params.mentionEntities.length > 0) ||
|
|
123
|
-
params.mentionAll) {
|
|
124
|
-
const mention = {};
|
|
125
|
-
if (params.mentionUids && params.mentionUids.length > 0) {
|
|
126
|
-
mention.uids = params.mentionUids;
|
|
127
|
-
}
|
|
128
|
-
if (params.mentionEntities && params.mentionEntities.length > 0) {
|
|
129
|
-
mention.entities = params.mentionEntities;
|
|
130
|
-
}
|
|
131
|
-
if (params.mentionAll) {
|
|
132
|
-
mention.all = 1;
|
|
133
|
-
}
|
|
134
|
-
payload.mention = mention;
|
|
135
|
-
}
|
|
136
|
-
if (params.replyMsgId) {
|
|
137
|
-
payload.reply = { message_id: params.replyMsgId };
|
|
138
|
-
}
|
|
139
|
-
return await postJson(params.apiUrl, params.botToken, "/v1/bot/sendMessage", {
|
|
140
|
-
channel_id: params.channelId,
|
|
141
|
-
channel_type: params.channelType,
|
|
142
|
-
payload,
|
|
143
|
-
client_msg_no: params.clientMsgNo ?? generateClientMsgNo(),
|
|
144
|
-
...(params.onBehalfOf ? { on_behalf_of: params.onBehalfOf } : {})
|
|
145
|
-
}, params.signal);
|
|
146
|
-
}
|
|
147
|
-
export async function sendTyping(params) {
|
|
148
|
-
await postJson(params.apiUrl, params.botToken, "/v1/bot/typing", {
|
|
149
|
-
channel_id: params.channelId,
|
|
150
|
-
channel_type: params.channelType,
|
|
151
|
-
...(params.onBehalfOf ? { on_behalf_of: params.onBehalfOf } : {})
|
|
152
|
-
// A discardable hint, re-sent every few seconds while the model works. Retrying it
|
|
153
|
-
// only adds pressure to a bucket that is already empty.
|
|
154
|
-
}, params.signal, { retryOn429: false, dispatchRequest: params.dispatchRequest });
|
|
155
|
-
}
|
|
156
|
-
export async function sendReadReceipt(params) {
|
|
157
|
-
await postJson(params.apiUrl, params.botToken, "/v1/bot/readReceipt", {
|
|
158
|
-
channel_id: params.channelId,
|
|
159
|
-
channel_type: params.channelType,
|
|
160
|
-
...(params.messageIds && params.messageIds.length > 0
|
|
161
|
-
? { message_ids: params.messageIds }
|
|
162
|
-
: {})
|
|
163
|
-
// Same reasoning as typing: nothing downstream depends on this landing.
|
|
164
|
-
}, params.signal, { retryOn429: false });
|
|
165
|
-
}
|
|
166
|
-
export async function sendHeartbeat(params) {
|
|
167
|
-
await postJson(params.apiUrl, params.botToken, "/v1/bot/heartbeat", {}, params.signal, {
|
|
168
|
-
// A missed beat costs nothing: the next one is one interval away, and no server-side
|
|
169
|
-
// reader consumes the heartbeat key. Sleeping inside the call would only add pressure
|
|
170
|
-
// to a bucket that is already empty, and would hold the beat's single-flight slot.
|
|
171
|
-
retryOn429: false
|
|
172
|
-
});
|
|
173
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export interface RuleDocument {
|
|
2
|
-
content: string;
|
|
3
|
-
version: number;
|
|
4
|
-
updated_at: string | null;
|
|
5
|
-
updated_by: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 群级免@偏好(per-group mention preference)。
|
|
9
|
-
*
|
|
10
|
-
* 后端 octo-server#237 暴露 GET /v1/bot/groups/:group_no/mention_pref。
|
|
11
|
-
* 两个权限轴 AND 合成(octo-server YUJ-2996):
|
|
12
|
-
* - `no_mention`:bot 主人意愿(bot_mention_pref,无记录=false)
|
|
13
|
-
* - `group_allow_no_mention`:群主/管理员的群级总开关(group.allow_no_mention,
|
|
14
|
-
* 无群记录回退默认 true=允许)
|
|
15
|
-
* - `effective = no_mention && group_allow_no_mention`:最终是否免@即可触发。
|
|
16
|
-
*
|
|
17
|
-
* gate 只看 `effective`。`no_mention` / `group_allow_no_mention` 保留供观测/日志,
|
|
18
|
-
* 并为旧 server(仅返回 no_mention)提供回退。
|
|
19
|
-
*/
|
|
20
|
-
export interface MentionPref {
|
|
21
|
-
/** bot 主人意愿轴。旧 server 只有这个字段。 */
|
|
22
|
-
no_mention: boolean;
|
|
23
|
-
/** 群级总开关轴;无群记录回退 true(允许)。 */
|
|
24
|
-
group_allow_no_mention: boolean;
|
|
25
|
-
/** 两轴 AND:免@即可触发回复。gate 据此决策。 */
|
|
26
|
-
effective: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 获取某群对当前 bot 的免@偏好。
|
|
30
|
-
*
|
|
31
|
-
* 失败(网络错误 / 非 2xx / 解析失败)一律回退到账号级行为
|
|
32
|
-
* (effective=false,即保持需@),绝不抛错,避免 gate 崩溃。
|
|
33
|
-
*
|
|
34
|
-
* 兼容旧 server:YUJ-2996 之前的 server 只返回 `{ no_mention }`,没有
|
|
35
|
-
* `effective` / `group_allow_no_mention`。此时 group 轴缺省视为 true(允许),
|
|
36
|
-
* effective 回退为 no_mention,行为与升级前完全一致(零回归)。
|
|
37
|
-
*/
|
|
38
|
-
export declare function getMentionPref(params: {
|
|
39
|
-
apiUrl: string;
|
|
40
|
-
botToken: string;
|
|
41
|
-
groupNo: string;
|
|
42
|
-
log?: {
|
|
43
|
-
info?: (msg: string) => void;
|
|
44
|
-
error?: (msg: string) => void;
|
|
45
|
-
};
|
|
46
|
-
}): Promise<MentionPref>;
|
|
47
|
-
export declare function getGroupMd(params: {
|
|
48
|
-
apiUrl: string;
|
|
49
|
-
botToken: string;
|
|
50
|
-
groupNo: string;
|
|
51
|
-
signal?: AbortSignal;
|
|
52
|
-
log?: {
|
|
53
|
-
info?: (msg: string) => void;
|
|
54
|
-
error?: (msg: string) => void;
|
|
55
|
-
};
|
|
56
|
-
}): Promise<{
|
|
57
|
-
content: string;
|
|
58
|
-
version: number;
|
|
59
|
-
updated_at: string | null;
|
|
60
|
-
updated_by: string;
|
|
61
|
-
}>;
|
|
62
|
-
/**
|
|
63
|
-
* Get thread THREAD.md content (throws on non-2xx — used by agent-tools).
|
|
64
|
-
* GET /v1/bot/groups/{groupNo}/threads/{shortId}/md
|
|
65
|
-
*
|
|
66
|
-
* See also: group-md.ts `fetchThreadMdFromApi()` which returns null on error
|
|
67
|
-
* and is used for background cache refresh where failures are non-fatal.
|
|
68
|
-
*/
|
|
69
|
-
export declare function getThreadMd(params: {
|
|
70
|
-
apiUrl: string;
|
|
71
|
-
botToken: string;
|
|
72
|
-
groupNo: string;
|
|
73
|
-
shortId: string;
|
|
74
|
-
signal?: AbortSignal;
|
|
75
|
-
log?: {
|
|
76
|
-
info?: (msg: string) => void;
|
|
77
|
-
error?: (msg: string) => void;
|
|
78
|
-
};
|
|
79
|
-
}): Promise<{
|
|
80
|
-
content: string;
|
|
81
|
-
version: number;
|
|
82
|
-
updated_at: string | null;
|
|
83
|
-
updated_by: string;
|
|
84
|
-
}>;
|