@mininglamp-oss/octo-runtime 1.1.10 → 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 +41 -19
- 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 -317
- 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/index.js +14 -1
- package/apps/cli/dist/logs.d.ts +2 -2
- package/apps/cli/dist/logs.js +14 -17
- package/apps/cli/dist/main.js +99 -182
- 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 +23 -6
- package/apps/cli/dist/openclaw.d.ts +0 -8
- package/apps/cli/dist/openclaw.js +2 -114
- package/apps/cli/dist/output.d.ts +19 -1
- package/apps/cli/dist/output.js +185 -44
- package/apps/cli/dist/playboard.js +17 -9
- package/apps/cli/dist/service-control.js +0 -1
- package/apps/cli/dist/state.d.ts +5 -2
- package/apps/cli/dist/state.js +48 -13
- package/dist/public/codex.d.ts +1 -0
- package/dist/public/codex.js +1 -0
- package/dist/public/executor-kernel.d.ts +4 -0
- package/dist/public/executor-kernel.js +2 -0
- package/dist/public/host.d.ts +6 -3
- package/dist/public/host.js +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +20 -0
- 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.d.ts +6 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +78 -262
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +11 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +198 -52
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +58 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +650 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/stdin-writer.js +15 -0
- 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/dist/index.d.ts +2 -0
- 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/activity.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +25 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +4 -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 +41 -19
- 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 -317
- 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/index.js +14 -1
- 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 +99 -182
- 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 +23 -6
- 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.d.ts +19 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +185 -44
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +17 -9
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/service-control.js +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.d.ts +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/state.js +48 -13
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -23
- package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.d.ts +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/async-question-reply.js +210 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/browser.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.d.ts +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +495 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/index.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/internal.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.d.ts +59 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/invocation-lifecycle.js +302 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/notification.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/protocol.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.d.ts +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/runtime-path.js +138 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.d.ts +8 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-catalog.js +53 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.d.ts +82 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/startup-diagnostics.js +371 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.d.ts +12 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/submission-error.js +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.d.ts +87 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/dist/types.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +54 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +1219 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +5988 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +56 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc-fixtures.json +75 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +538 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +116 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +4713 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +761 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +663 -0
- package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +191 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +26 -18
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +153 -14
- 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/async-question-reply.d.ts +1 -30
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/async-question-reply.js +2 -199
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.d.ts +1 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -446
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/endpoint.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/host-run-service.js +13 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.d.ts +1 -53
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js +2 -280
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.d.ts +5 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/lifecycle.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.d.ts +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/runtime-home.js +180 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +41 -15
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.d.ts +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +48 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-catalog.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-diagnostics.js +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/startup-logging.js +18 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +1 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +2 -23
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.d.ts +2 -72
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/types.js +2 -10
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +12 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.d.ts +5 -1
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/errors.js +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.d.ts +5 -6
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/home.js +33 -45
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/identity.js +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.d.ts +4 -6
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/index.js +3 -5
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -17
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
- 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 +52 -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/index.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +1 -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.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
- 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 +33 -135
- package/packages/octo-runtime-protocol/schema/kernel-ipc-fixtures.json +28 -6
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +296 -66
- 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 -72
- 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 -72
- 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/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/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/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 -134
- 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 -22
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extra-service.js +0 -309
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.d.ts +0 -55
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/extras.js +0 -375
- 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/contracts.js → octo-runtime-adapter-sdk/dist/execution-scope.js} +0 -0
- /package/node_modules/@mininglamp-oss/{octo-runtime-extra-channel-gateway/dist/ports.js → octo-runtime-protocol/dist/adapter-metadata.js} +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 卡片 API:读取 Bot 的有效能力配置,按模板引用发送/编辑卡片。
|
|
3
|
-
* 展示数据需符合服务端合同;模板选择与 Run 状态转换由卡片层负责。
|
|
4
|
-
*/
|
|
5
|
-
import type { ChannelType } from "./types.js";
|
|
6
|
-
import { type SendMessageResult } from "./types.js";
|
|
7
|
-
import { type HttpRequestDispatch } from "./client.js";
|
|
8
|
-
export interface CardTemplateRef {
|
|
9
|
-
id: string;
|
|
10
|
-
version: string;
|
|
11
|
-
}
|
|
12
|
-
/** Effective per-bot card policy returned by GET /v1/bot/card/profile. */
|
|
13
|
-
export interface BotCardConfig {
|
|
14
|
-
card_enabled: boolean;
|
|
15
|
-
display_enabled: boolean;
|
|
16
|
-
interaction_enabled: boolean;
|
|
17
|
-
reasoning_enabled: boolean;
|
|
18
|
-
reasoning_template_ref: CardTemplateRef | null;
|
|
19
|
-
}
|
|
20
|
-
export interface CardTemplateViewCapability {
|
|
21
|
-
name: string;
|
|
22
|
-
states: string[];
|
|
23
|
-
wire_profile: string;
|
|
24
|
-
submit_actions: string[];
|
|
25
|
-
}
|
|
26
|
-
export interface CardTemplateCapability {
|
|
27
|
-
id: string;
|
|
28
|
-
version: string;
|
|
29
|
-
available?: boolean;
|
|
30
|
-
views: CardTemplateViewCapability[];
|
|
31
|
-
}
|
|
32
|
-
export interface CardTemplatingCapability {
|
|
33
|
-
supported: boolean;
|
|
34
|
-
wire: string;
|
|
35
|
-
templates: CardTemplateCapability[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Send one Registry-authored type-17 card without any Model B render-owned fields.
|
|
39
|
-
*
|
|
40
|
-
* `onBehalfOf` is intentionally absent (unlike {@link sendCardMessage}): Registry template cards
|
|
41
|
-
* are bot-authored by design, and OBO + type-17 is rejected by P1 Decision 2b — persona-clone
|
|
42
|
-
* turns skip progress cards entirely in `card-progress.ts`.
|
|
43
|
-
*/
|
|
44
|
-
export declare function sendTemplateCardMessage(params: {
|
|
45
|
-
apiUrl: string;
|
|
46
|
-
botToken: string;
|
|
47
|
-
channelId: string;
|
|
48
|
-
channelType: ChannelType;
|
|
49
|
-
templateRef: CardTemplateRef;
|
|
50
|
-
state: string;
|
|
51
|
-
data: object;
|
|
52
|
-
clientMsgNo?: string;
|
|
53
|
-
signal?: AbortSignal;
|
|
54
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
55
|
-
/**
|
|
56
|
-
* Forwarded to postJson. A transient progress frame passes false: it is discardable,
|
|
57
|
-
* and holding the flush while we back off would block the frames behind it. A finalize
|
|
58
|
-
* frame leaves it unset, because that state has to land.
|
|
59
|
-
*/
|
|
60
|
-
retryOn429?: boolean;
|
|
61
|
-
}): Promise<SendMessageResult | undefined>;
|
|
62
|
-
/** Replace one Registry-authored card frame; raw content_edit is intentionally unavailable. */
|
|
63
|
-
export declare function editTemplateCardMessage(params: {
|
|
64
|
-
apiUrl: string;
|
|
65
|
-
botToken: string;
|
|
66
|
-
messageId: string;
|
|
67
|
-
channelId: string;
|
|
68
|
-
channelType: ChannelType;
|
|
69
|
-
templateRef: CardTemplateRef;
|
|
70
|
-
state: string;
|
|
71
|
-
data: object;
|
|
72
|
-
cardSeq: number;
|
|
73
|
-
transient?: boolean;
|
|
74
|
-
signal?: AbortSignal;
|
|
75
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
76
|
-
/**
|
|
77
|
-
* Forwarded to postJson. A transient progress frame passes false: it is discardable,
|
|
78
|
-
* and holding the flush while we back off would block the frames behind it. A finalize
|
|
79
|
-
* frame leaves it unset, because that state has to land.
|
|
80
|
-
*/
|
|
81
|
-
retryOn429?: boolean;
|
|
82
|
-
}): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* D12 生产者能力发现 manifest(octo-server PR #525 P2 D12,additive-only)。
|
|
85
|
-
*/
|
|
86
|
-
export interface CardProfileManifest {
|
|
87
|
-
/**
|
|
88
|
-
* D12 manifest 端点是否**已部署并响应**(非 404)。`false` 时所有卡片能力 fail
|
|
89
|
-
* closed;插件不再使用本地开关或本地推理卡模板兜底。
|
|
90
|
-
*/
|
|
91
|
-
available: boolean;
|
|
92
|
-
/** 兼容保留的 manifest 总闸;实际发送使用 `config` 中服务端已 AND 的有效值。 */
|
|
93
|
-
enabled: boolean;
|
|
94
|
-
/** 支持的 profile 列表,如 `["octo/v1"]`(P2 增 `"octo/v2"`)。 */
|
|
95
|
-
profiles?: string[];
|
|
96
|
-
card_version?: string;
|
|
97
|
-
/**
|
|
98
|
-
* 服务端 advertise 的元素/输入白名单(源自 pkg/cardmsg 权威,additive)。producer 据此按
|
|
99
|
-
* 元素/输入粒度协商 —— 即便 card_version 停在 1.5,也能探测该部署到底吃不吃某元素/输入。
|
|
100
|
-
* 旧部署不返这两字段(undefined)→ 消费方回退保守基线。
|
|
101
|
-
*/
|
|
102
|
-
elements?: string[];
|
|
103
|
-
inputs?: string[];
|
|
104
|
-
/**
|
|
105
|
-
* 本地/导航动作白名单(pkg/cardmsg 权威):`Action.ToggleVisibility`/
|
|
106
|
-
* `Action.CopyToClipboard`/`Action.OpenUrl`。回流 `Action.Submit` 不在此数组中;它由
|
|
107
|
-
* `profiles` 包含 `octo/v2` 表示,也不得放进展示卡 selectAction。
|
|
108
|
-
* 旧部署不返该字段(undefined) → 消费方保守视为不支持任何 action。
|
|
109
|
-
*/
|
|
110
|
-
actions?: string[];
|
|
111
|
-
/** 尺寸/结构上限(node/depth/body caps 等)。 */
|
|
112
|
-
limits?: Record<string, unknown>;
|
|
113
|
-
/** Optional Registry template-ref/v1 capability and explicit Bot catalog. */
|
|
114
|
-
templating?: CardTemplatingCapability;
|
|
115
|
-
/** Effective per-bot policy. Each feature flag already includes the server's global gate. */
|
|
116
|
-
config?: BotCardConfig;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* GET /v1/bot/card/profile — D12 能力发现。发卡前 feature-detect,避免用发送试探
|
|
120
|
-
* (一个 400 无法区分「disabled」与「invalid」)。
|
|
121
|
-
*
|
|
122
|
-
* 返回 `available` 区分端点未部署与已部署;两者都由调用方 fail closed:
|
|
123
|
-
* - 端点未部署(404)→ `{ available:false }`。
|
|
124
|
-
* - 端点已部署但缺失/非法 `config` → `{ available:true }` 且无 `config`。
|
|
125
|
-
* 传输 / 5xx 抛错,交由调用方重试节奏处理。
|
|
126
|
-
*/
|
|
127
|
-
export declare function getCardProfile(params: {
|
|
128
|
-
apiUrl: string;
|
|
129
|
-
botToken: string;
|
|
130
|
-
signal?: AbortSignal;
|
|
131
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
132
|
-
}): Promise<CardProfileManifest>;
|
package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { MessageType } from "./types.js";
|
|
2
|
-
import { postJson, generateClientMsgNo, DEFAULT_TIMEOUT_MS, fetchWithDispatch } from "./client.js";
|
|
3
|
-
import { OctoApiError } from "./errors.js";
|
|
4
|
-
import { trimTrailingSlashes } from "./url.js";
|
|
5
|
-
function validateTemplateFrame(params) {
|
|
6
|
-
const templateRef = params.templateRef;
|
|
7
|
-
if (templateRef === null || typeof templateRef !== "object" || Array.isArray(templateRef)) {
|
|
8
|
-
throw new Error("octo: templateRef must contain exactly id and version");
|
|
9
|
-
}
|
|
10
|
-
const templateRefKeys = Object.keys(templateRef);
|
|
11
|
-
if (templateRefKeys.length !== 2 ||
|
|
12
|
-
!templateRefKeys.includes("id") ||
|
|
13
|
-
!templateRefKeys.includes("version")) {
|
|
14
|
-
throw new Error("octo: templateRef must contain exactly id and version");
|
|
15
|
-
}
|
|
16
|
-
const { id, version } = templateRef;
|
|
17
|
-
if (typeof id !== "string" || typeof version !== "string" || !id.trim() || !version.trim()) {
|
|
18
|
-
throw new Error("octo: templateRef id/version are required");
|
|
19
|
-
}
|
|
20
|
-
if (typeof params.state !== "string" || !params.state.trim()) {
|
|
21
|
-
throw new Error("octo: template state is required");
|
|
22
|
-
}
|
|
23
|
-
const data = params.data;
|
|
24
|
-
if (data === null ||
|
|
25
|
-
typeof data !== "object" ||
|
|
26
|
-
Array.isArray(data) ||
|
|
27
|
-
(Object.getPrototypeOf(data) !== Object.prototype && Object.getPrototypeOf(data) !== null) ||
|
|
28
|
-
!Object.hasOwn(data, "state")) {
|
|
29
|
-
throw new Error("octo: data must be a plain object with own state");
|
|
30
|
-
}
|
|
31
|
-
if (data.state !== params.state) {
|
|
32
|
-
throw new Error("octo: data.state must match state");
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Send one Registry-authored type-17 card without any Model B render-owned fields.
|
|
37
|
-
*
|
|
38
|
-
* `onBehalfOf` is intentionally absent (unlike {@link sendCardMessage}): Registry template cards
|
|
39
|
-
* are bot-authored by design, and OBO + type-17 is rejected by P1 Decision 2b — persona-clone
|
|
40
|
-
* turns skip progress cards entirely in `card-progress.ts`.
|
|
41
|
-
*/
|
|
42
|
-
export async function sendTemplateCardMessage(params) {
|
|
43
|
-
if (!params.channelId.trim()) {
|
|
44
|
-
throw new Error("octo: channelId is required to send a message");
|
|
45
|
-
}
|
|
46
|
-
validateTemplateFrame(params);
|
|
47
|
-
return await postJson(params.apiUrl, params.botToken, "/v1/bot/sendMessage", {
|
|
48
|
-
channel_id: params.channelId,
|
|
49
|
-
channel_type: params.channelType,
|
|
50
|
-
payload: {
|
|
51
|
-
type: MessageType.InteractiveCard,
|
|
52
|
-
template_ref: params.templateRef,
|
|
53
|
-
state: params.state,
|
|
54
|
-
data: params.data
|
|
55
|
-
},
|
|
56
|
-
client_msg_no: params.clientMsgNo ?? generateClientMsgNo()
|
|
57
|
-
}, params.signal, { retryOn429: params.retryOn429 ?? true, dispatchRequest: params.dispatchRequest });
|
|
58
|
-
}
|
|
59
|
-
/** Replace one Registry-authored card frame; raw content_edit is intentionally unavailable. */
|
|
60
|
-
export async function editTemplateCardMessage(params) {
|
|
61
|
-
if (!params.messageId)
|
|
62
|
-
throw new Error("octo: messageId is required to edit a card");
|
|
63
|
-
if (!params.channelId.trim())
|
|
64
|
-
throw new Error("octo: channelId is required to edit a card");
|
|
65
|
-
if (!Number.isSafeInteger(params.cardSeq) || params.cardSeq <= 0) {
|
|
66
|
-
throw new Error("octo: cardSeq must be a positive safe integer");
|
|
67
|
-
}
|
|
68
|
-
validateTemplateFrame(params);
|
|
69
|
-
await postJson(params.apiUrl, params.botToken, "/v1/bot/message/edit", {
|
|
70
|
-
message_id: params.messageId,
|
|
71
|
-
channel_id: params.channelId,
|
|
72
|
-
channel_type: params.channelType,
|
|
73
|
-
template_ref: params.templateRef,
|
|
74
|
-
state: params.state,
|
|
75
|
-
data: params.data,
|
|
76
|
-
card_seq: params.cardSeq,
|
|
77
|
-
...(params.transient ? { transient: true } : {})
|
|
78
|
-
}, params.signal, { retryOn429: params.retryOn429 ?? true, dispatchRequest: params.dispatchRequest });
|
|
79
|
-
}
|
|
80
|
-
function stringArray(value) {
|
|
81
|
-
return Array.isArray(value)
|
|
82
|
-
? value.filter((item) => typeof item === "string")
|
|
83
|
-
: [];
|
|
84
|
-
}
|
|
85
|
-
function parseTemplatingCapability(value) {
|
|
86
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
87
|
-
return undefined;
|
|
88
|
-
const root = value;
|
|
89
|
-
const templates = [];
|
|
90
|
-
for (const candidate of Array.isArray(root.templates) ? root.templates : []) {
|
|
91
|
-
if (!candidate || typeof candidate !== "object" || Array.isArray(candidate))
|
|
92
|
-
continue;
|
|
93
|
-
const template = candidate;
|
|
94
|
-
if (typeof template.id !== "string" || typeof template.version !== "string")
|
|
95
|
-
continue;
|
|
96
|
-
const views = [];
|
|
97
|
-
for (const candidateView of Array.isArray(template.views) ? template.views : []) {
|
|
98
|
-
if (!candidateView || typeof candidateView !== "object" || Array.isArray(candidateView))
|
|
99
|
-
continue;
|
|
100
|
-
const view = candidateView;
|
|
101
|
-
if (typeof view.name !== "string" || typeof view.wire_profile !== "string")
|
|
102
|
-
continue;
|
|
103
|
-
views.push({
|
|
104
|
-
name: view.name,
|
|
105
|
-
wire_profile: view.wire_profile,
|
|
106
|
-
states: stringArray(view.states),
|
|
107
|
-
submit_actions: stringArray(view.submit_actions)
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
templates.push({
|
|
111
|
-
id: template.id,
|
|
112
|
-
version: template.version,
|
|
113
|
-
views,
|
|
114
|
-
...(typeof template.available === "boolean" ? { available: template.available } : {})
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
supported: root.supported === true,
|
|
119
|
-
wire: typeof root.wire === "string" ? root.wire : "",
|
|
120
|
-
templates
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function parseCardTemplateRef(value) {
|
|
124
|
-
if (value === null)
|
|
125
|
-
return null;
|
|
126
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
127
|
-
return undefined;
|
|
128
|
-
const ref = value;
|
|
129
|
-
if (Object.keys(ref).length !== 2 ||
|
|
130
|
-
typeof ref.id !== "string" ||
|
|
131
|
-
!ref.id ||
|
|
132
|
-
ref.id.trim() !== ref.id ||
|
|
133
|
-
typeof ref.version !== "string" ||
|
|
134
|
-
!ref.version ||
|
|
135
|
-
ref.version.trim() !== ref.version) {
|
|
136
|
-
return undefined;
|
|
137
|
-
}
|
|
138
|
-
return { id: ref.id, version: ref.version };
|
|
139
|
-
}
|
|
140
|
-
function parseBotCardConfig(value) {
|
|
141
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
142
|
-
return undefined;
|
|
143
|
-
const config = value;
|
|
144
|
-
if (typeof config.card_enabled !== "boolean" ||
|
|
145
|
-
typeof config.display_enabled !== "boolean" ||
|
|
146
|
-
typeof config.interaction_enabled !== "boolean" ||
|
|
147
|
-
typeof config.reasoning_enabled !== "boolean") {
|
|
148
|
-
return undefined;
|
|
149
|
-
}
|
|
150
|
-
if (!config.card_enabled &&
|
|
151
|
-
(config.display_enabled || config.interaction_enabled || config.reasoning_enabled)) {
|
|
152
|
-
return undefined;
|
|
153
|
-
}
|
|
154
|
-
const reasoningRef = parseCardTemplateRef(config.reasoning_template_ref);
|
|
155
|
-
// The server guarantees this invariant. Reject a malformed response rather than guessing a
|
|
156
|
-
// policy locally: a permissive normalization could re-enable a card the Bot owner disabled.
|
|
157
|
-
if (reasoningRef === undefined ||
|
|
158
|
-
(config.reasoning_enabled && reasoningRef === null) ||
|
|
159
|
-
(!config.reasoning_enabled && reasoningRef !== null)) {
|
|
160
|
-
return undefined;
|
|
161
|
-
}
|
|
162
|
-
return {
|
|
163
|
-
card_enabled: config.card_enabled,
|
|
164
|
-
display_enabled: config.display_enabled,
|
|
165
|
-
interaction_enabled: config.interaction_enabled,
|
|
166
|
-
reasoning_enabled: config.reasoning_enabled,
|
|
167
|
-
reasoning_template_ref: reasoningRef
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* GET /v1/bot/card/profile — D12 能力发现。发卡前 feature-detect,避免用发送试探
|
|
172
|
-
* (一个 400 无法区分「disabled」与「invalid」)。
|
|
173
|
-
*
|
|
174
|
-
* 返回 `available` 区分端点未部署与已部署;两者都由调用方 fail closed:
|
|
175
|
-
* - 端点未部署(404)→ `{ available:false }`。
|
|
176
|
-
* - 端点已部署但缺失/非法 `config` → `{ available:true }` 且无 `config`。
|
|
177
|
-
* 传输 / 5xx 抛错,交由调用方重试节奏处理。
|
|
178
|
-
*/
|
|
179
|
-
export async function getCardProfile(params) {
|
|
180
|
-
const url = `${trimTrailingSlashes(params.apiUrl)}/v1/bot/card/profile`;
|
|
181
|
-
const resp = await fetchWithDispatch(url, {
|
|
182
|
-
method: "GET",
|
|
183
|
-
headers: { Authorization: `Bearer ${params.botToken}` },
|
|
184
|
-
signal: params.signal ?? AbortSignal.timeout(DEFAULT_TIMEOUT_MS)
|
|
185
|
-
}, params.dispatchRequest);
|
|
186
|
-
// 端点尚未部署时 fail closed;不使用本地开关猜测服务端 Bot 策略。
|
|
187
|
-
if (resp.status === 404)
|
|
188
|
-
return { available: false, enabled: false };
|
|
189
|
-
if (!resp.ok) {
|
|
190
|
-
const text = await resp.text().catch(() => "");
|
|
191
|
-
// Structured, so a caller can tell a rate limit from any other failure and honour the
|
|
192
|
-
// wait the server asked for. This is the one hot path that does not go through postJson,
|
|
193
|
-
// and flattening a 429 into a generic Error here threw away the Retry-After that the
|
|
194
|
-
// progress-card cooldown needs.
|
|
195
|
-
throw OctoApiError.from(resp, "GET /v1/bot/card/profile", text);
|
|
196
|
-
}
|
|
197
|
-
// 端点已部署(available:true);manifest 内容异常时保守视作 enabled:false。
|
|
198
|
-
const raw = (await resp.json().catch(() => null));
|
|
199
|
-
if (!raw || typeof raw !== "object")
|
|
200
|
-
return { available: true, enabled: false };
|
|
201
|
-
const templating = parseTemplatingCapability(raw.templating);
|
|
202
|
-
const config = parseBotCardConfig(raw.config);
|
|
203
|
-
return {
|
|
204
|
-
available: raw.available !== false,
|
|
205
|
-
// 兼容布尔与 1/0 序列化(与本仓 GroupMember.robot / getMentionPref 的 flag 惯例一致)。
|
|
206
|
-
enabled: raw.enabled === true || raw.enabled === 1,
|
|
207
|
-
...(Array.isArray(raw.profiles)
|
|
208
|
-
? { profiles: raw.profiles.filter((e) => typeof e === "string") }
|
|
209
|
-
: {}),
|
|
210
|
-
...(typeof raw.card_version === "string" ? { card_version: raw.card_version } : {}),
|
|
211
|
-
...(Array.isArray(raw.elements)
|
|
212
|
-
? { elements: raw.elements.filter((e) => typeof e === "string") }
|
|
213
|
-
: {}),
|
|
214
|
-
...(Array.isArray(raw.inputs)
|
|
215
|
-
? { inputs: raw.inputs.filter((e) => typeof e === "string") }
|
|
216
|
-
: {}),
|
|
217
|
-
...(Array.isArray(raw.actions)
|
|
218
|
-
? { actions: raw.actions.filter((e) => typeof e === "string") }
|
|
219
|
-
: {}),
|
|
220
|
-
...(raw.limits && typeof raw.limits === "object"
|
|
221
|
-
? { limits: raw.limits }
|
|
222
|
-
: {}),
|
|
223
|
-
...(templating ? { templating } : {}),
|
|
224
|
-
...(config ? { config } : {})
|
|
225
|
-
};
|
|
226
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
2
|
-
/** 在发送边界检查生命周期,可用 Bot 持有值替换鉴权头;不返回异步许可。 */
|
|
3
|
-
export type HttpRequestDispatch = (signal: AbortSignal, send: (signal: AbortSignal, botToken?: string) => Promise<Response>) => Promise<Response>;
|
|
4
|
-
/** 每次尝试(含 429)使用生效凭据;无 Authorization 的签名 PUT 不附加 Bot Token。 */
|
|
5
|
-
export declare function fetchWithDispatch(url: string, options: RequestInit & {
|
|
6
|
-
signal: AbortSignal;
|
|
7
|
-
}, dispatch?: HttpRequestDispatch): Promise<Response>;
|
|
8
|
-
/**
|
|
9
|
-
* 生成出站消息的客户端幂等编号 client_msg_no(UUID)。
|
|
10
|
-
*
|
|
11
|
-
* WuKongIM 以 client_msg_no 做服务端去重(见 pkg/wkdb/message.go:相同
|
|
12
|
-
* client_msg_no 只落库一条)。图文混排 payload 体积大、链路长、更易触发重试,
|
|
13
|
-
* 故出站统一附带 client_msg_no,保证重试不会产生重复消息。
|
|
14
|
-
*/
|
|
15
|
-
export declare function generateClientMsgNo(): string;
|
|
16
|
-
/**
|
|
17
|
-
* Parse JSON with int64 message_id protection.
|
|
18
|
-
* Converts 16+ digit numeric message_id values to strings before JSON.parse
|
|
19
|
-
* to prevent JavaScript precision loss for IDs exceeding Number.MAX_SAFE_INTEGER.
|
|
20
|
-
*/
|
|
21
|
-
export declare function parseOctoJson<T>(text: string): T;
|
|
22
|
-
/** At most three attempts per call: the original plus two retries. */
|
|
23
|
-
export declare const MAX_429_RETRIES = 2;
|
|
24
|
-
/**
|
|
25
|
-
* A wait longer than this is not worth holding the call for. Used only to decide whether
|
|
26
|
-
* to retry — never to shorten the server's requested wait, because a shortened wait means
|
|
27
|
-
* going back before the server said we could.
|
|
28
|
-
*/
|
|
29
|
-
export declare const MAX_RETRY_AFTER_MS = 10000;
|
|
30
|
-
/** Cumulative backoff sleep budget for one call. Not an end-to-end deadline. */
|
|
31
|
-
export declare const MAX_429_BACKOFF_WAIT_MS = 15000;
|
|
32
|
-
/**
|
|
33
|
-
* Deadline applied to a POST when the caller expresses none of its own.
|
|
34
|
-
*
|
|
35
|
-
* `fetch` has no default timeout, so without this a hung connection blocks its caller
|
|
36
|
-
* indefinitely. Callers that pass a signal keep full control: the events long poll asks
|
|
37
|
-
* for far more than this on purpose, and intersecting the two would abort a legitimate
|
|
38
|
-
* hold and discard the batch the server was about to return.
|
|
39
|
-
*/
|
|
40
|
-
export declare const DEFAULT_POST_TIMEOUT_MS = 30000;
|
|
41
|
-
/**
|
|
42
|
-
* Absolute ceiling on one POST attempt, applied even when the caller supplied its own signal.
|
|
43
|
-
*
|
|
44
|
-
* The caller's signal is honoured as-is for anything under this, because it knows what this
|
|
45
|
-
* particular request needs — the events long poll deliberately asks for up to 40s and cutting
|
|
46
|
-
* it short would abort a legitimate hold. But a signal that carries no deadline at all would
|
|
47
|
-
* otherwise make the request unbounded, which is the class of hang this module is trying to
|
|
48
|
-
* remove; nothing here has any business running for a full minute.
|
|
49
|
-
*/
|
|
50
|
-
export declare const POST_HARD_CEILING_MS = 60000;
|
|
51
|
-
interface JsonRequestOptions {
|
|
52
|
-
dispatchRequest?: HttpRequestDispatch;
|
|
53
|
-
retryOn429?: boolean;
|
|
54
|
-
/** Receipt uploads use the caller's throttled diagnostic instead. */
|
|
55
|
-
logRateLimit?: boolean;
|
|
56
|
-
idempotencyKey?: string;
|
|
57
|
-
expectedStatus?: number;
|
|
58
|
-
redirect?: "error" | "follow" | "manual";
|
|
59
|
-
/** Optional decoded response cap for callers that fetch large documents. */
|
|
60
|
-
maxResponseBytes?: number;
|
|
61
|
-
}
|
|
62
|
-
export declare function readResponseText(response: Response, maxBytes?: number): Promise<string>;
|
|
63
|
-
export declare function postJson<T>(apiUrl: string, botToken: string, path: string, payload: Record<string, unknown>, signal?: AbortSignal, opts?: JsonRequestOptions): Promise<T | undefined>;
|
|
64
|
-
export declare function getJson<T>(apiUrl: string, botToken: string, path: string, signal?: AbortSignal, opts?: JsonRequestOptions): Promise<T | undefined>;
|
|
65
|
-
export {};
|
package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP 基础设施:统一鉴权请求、超时、限流重试和 64 位消息 ID 解析。
|
|
3
|
-
* 防止 ID 精度丢失与无限等待;不读取 CLI 配置,也不记录 token。
|
|
4
|
-
*/
|
|
5
|
-
// Adapted from Mininglamp-OSS/openclaw-channel-octo/src/api-fetch.ts.
|
|
6
|
-
import { randomUUID } from "node:crypto";
|
|
7
|
-
import { OctoApiError, OctoApiStatusMismatchError, OctoApiProtocolError } from "./errors.js";
|
|
8
|
-
import { trimTrailingSlashes } from "./url.js";
|
|
9
|
-
export const DEFAULT_TIMEOUT_MS = 30_000;
|
|
10
|
-
/** 每次尝试(含 429)使用生效凭据;无 Authorization 的签名 PUT 不附加 Bot Token。 */
|
|
11
|
-
export function fetchWithDispatch(url, options, dispatch) {
|
|
12
|
-
const send = (signal, botToken) => {
|
|
13
|
-
signal.throwIfAborted();
|
|
14
|
-
const headers = new Headers(options.headers);
|
|
15
|
-
if (botToken !== undefined && headers.has("Authorization")) {
|
|
16
|
-
headers.delete("Authorization");
|
|
17
|
-
return fetch(url, {
|
|
18
|
-
...options,
|
|
19
|
-
headers: { ...Object.fromEntries(headers), Authorization: `Bearer ${botToken}` },
|
|
20
|
-
signal
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
return fetch(url, { ...options, signal });
|
|
24
|
-
};
|
|
25
|
-
return dispatch ? dispatch(options.signal, send) : send(options.signal);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 生成出站消息的客户端幂等编号 client_msg_no(UUID)。
|
|
29
|
-
*
|
|
30
|
-
* WuKongIM 以 client_msg_no 做服务端去重(见 pkg/wkdb/message.go:相同
|
|
31
|
-
* client_msg_no 只落库一条)。图文混排 payload 体积大、链路长、更易触发重试,
|
|
32
|
-
* 故出站统一附带 client_msg_no,保证重试不会产生重复消息。
|
|
33
|
-
*/
|
|
34
|
-
export function generateClientMsgNo() {
|
|
35
|
-
return randomUUID();
|
|
36
|
-
}
|
|
37
|
-
const DEFAULT_HEADERS = {
|
|
38
|
-
"Content-Type": "application/json"
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Parse JSON with int64 message_id protection.
|
|
42
|
-
* Converts 16+ digit numeric message_id values to strings before JSON.parse
|
|
43
|
-
* to prevent JavaScript precision loss for IDs exceeding Number.MAX_SAFE_INTEGER.
|
|
44
|
-
*/
|
|
45
|
-
export function parseOctoJson(text) {
|
|
46
|
-
const safeText = text.replace(/"message_id"\s*:\s*(\d{16,})/g, '"message_id":"$1"');
|
|
47
|
-
return JSON.parse(safeText);
|
|
48
|
-
}
|
|
49
|
-
/** At most three attempts per call: the original plus two retries. */
|
|
50
|
-
export const MAX_429_RETRIES = 2;
|
|
51
|
-
/**
|
|
52
|
-
* A wait longer than this is not worth holding the call for. Used only to decide whether
|
|
53
|
-
* to retry — never to shorten the server's requested wait, because a shortened wait means
|
|
54
|
-
* going back before the server said we could.
|
|
55
|
-
*/
|
|
56
|
-
export const MAX_RETRY_AFTER_MS = 10_000;
|
|
57
|
-
/** Cumulative backoff sleep budget for one call. Not an end-to-end deadline. */
|
|
58
|
-
export const MAX_429_BACKOFF_WAIT_MS = 15_000;
|
|
59
|
-
/**
|
|
60
|
-
* Deadline applied to a POST when the caller expresses none of its own.
|
|
61
|
-
*
|
|
62
|
-
* `fetch` has no default timeout, so without this a hung connection blocks its caller
|
|
63
|
-
* indefinitely. Callers that pass a signal keep full control: the events long poll asks
|
|
64
|
-
* for far more than this on purpose, and intersecting the two would abort a legitimate
|
|
65
|
-
* hold and discard the batch the server was about to return.
|
|
66
|
-
*/
|
|
67
|
-
export const DEFAULT_POST_TIMEOUT_MS = DEFAULT_TIMEOUT_MS;
|
|
68
|
-
/**
|
|
69
|
-
* Absolute ceiling on one POST attempt, applied even when the caller supplied its own signal.
|
|
70
|
-
*
|
|
71
|
-
* The caller's signal is honoured as-is for anything under this, because it knows what this
|
|
72
|
-
* particular request needs — the events long poll deliberately asks for up to 40s and cutting
|
|
73
|
-
* it short would abort a legitimate hold. But a signal that carries no deadline at all would
|
|
74
|
-
* otherwise make the request unbounded, which is the class of hang this module is trying to
|
|
75
|
-
* remove; nothing here has any business running for a full minute.
|
|
76
|
-
*/
|
|
77
|
-
export const POST_HARD_CEILING_MS = 60_000;
|
|
78
|
-
/** Sleep that rejects as soon as the caller's signal aborts, preserving `cause`. */
|
|
79
|
-
function backoffSleep(ms, signal, cause) {
|
|
80
|
-
const aborted = () => new Error("aborted while backing off from a rate limit", { cause });
|
|
81
|
-
// Checked before arming anything: an abort that landed between the response returning
|
|
82
|
-
// and this call would otherwise be missed entirely and we would serve the full wait.
|
|
83
|
-
if (signal?.aborted)
|
|
84
|
-
return Promise.reject(aborted());
|
|
85
|
-
return new Promise((resolve, reject) => {
|
|
86
|
-
const onAbort = () => {
|
|
87
|
-
clearTimeout(timer);
|
|
88
|
-
// Surface the rate limiting as the cause; without it the failure site shows only a
|
|
89
|
-
// generic abort and the 429 diagnosis is lost.
|
|
90
|
-
reject(aborted());
|
|
91
|
-
};
|
|
92
|
-
const timer = setTimeout(() => {
|
|
93
|
-
signal?.removeEventListener("abort", onAbort);
|
|
94
|
-
resolve();
|
|
95
|
-
}, ms);
|
|
96
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
export async function readResponseText(response, maxBytes) {
|
|
100
|
-
if (maxBytes === undefined)
|
|
101
|
-
return response.text();
|
|
102
|
-
const reader = response.body?.getReader();
|
|
103
|
-
if (!reader)
|
|
104
|
-
return "";
|
|
105
|
-
let bytes = 0;
|
|
106
|
-
const chunks = [];
|
|
107
|
-
try {
|
|
108
|
-
// Content-Length can understate a compressed or chunked response, so the
|
|
109
|
-
// decoded stream remains authoritative even after this early rejection.
|
|
110
|
-
if (Number(response.headers.get("content-length")) > maxBytes) {
|
|
111
|
-
throw new Error("Octo API response exceeds byte limit");
|
|
112
|
-
}
|
|
113
|
-
for (;;) {
|
|
114
|
-
const { done, value } = (await reader.read());
|
|
115
|
-
if (done)
|
|
116
|
-
break;
|
|
117
|
-
if (!(value instanceof Uint8Array))
|
|
118
|
-
throw new Error("Octo API response stream is invalid");
|
|
119
|
-
bytes += value.byteLength;
|
|
120
|
-
if (bytes > maxBytes)
|
|
121
|
-
throw new Error("Octo API response exceeds byte limit");
|
|
122
|
-
chunks.push(Buffer.from(value));
|
|
123
|
-
}
|
|
124
|
-
return Buffer.concat(chunks, bytes).toString("utf8");
|
|
125
|
-
}
|
|
126
|
-
catch (error) {
|
|
127
|
-
await reader.cancel().catch(() => { });
|
|
128
|
-
throw error;
|
|
129
|
-
}
|
|
130
|
-
finally {
|
|
131
|
-
reader.releaseLock();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async function requestJson(apiUrl, botToken, path, method, payload, signal, opts = {}) {
|
|
135
|
-
const url = `${trimTrailingSlashes(apiUrl)}${path}`;
|
|
136
|
-
const retryOn429 = opts.retryOn429 ?? true;
|
|
137
|
-
let waited = 0;
|
|
138
|
-
for (let attempt = 0;; attempt++) {
|
|
139
|
-
if (signal?.aborted)
|
|
140
|
-
throw signal.reason;
|
|
141
|
-
// Rebuilt per attempt: a deadline created once outside the loop is shared across
|
|
142
|
-
// attempts, so a retry could start on a budget the first attempt already spent.
|
|
143
|
-
const fetchSignal = signal
|
|
144
|
-
? AbortSignal.any([signal, AbortSignal.timeout(POST_HARD_CEILING_MS)])
|
|
145
|
-
: AbortSignal.timeout(DEFAULT_POST_TIMEOUT_MS);
|
|
146
|
-
const response = await fetchWithDispatch(url, {
|
|
147
|
-
method,
|
|
148
|
-
headers: {
|
|
149
|
-
...(payload ? DEFAULT_HEADERS : {}),
|
|
150
|
-
Authorization: `Bearer ${botToken}`,
|
|
151
|
-
...(opts.idempotencyKey ? { "Idempotency-Key": opts.idempotencyKey } : {})
|
|
152
|
-
},
|
|
153
|
-
...(payload ? { body: JSON.stringify(payload) } : {}),
|
|
154
|
-
signal: fetchSignal,
|
|
155
|
-
...(opts.redirect ? { redirect: opts.redirect } : {})
|
|
156
|
-
}, opts.dispatchRequest);
|
|
157
|
-
if (response.ok) {
|
|
158
|
-
if (opts.expectedStatus !== undefined && response.status !== opts.expectedStatus) {
|
|
159
|
-
throw new OctoApiStatusMismatchError(path, response.status, opts.expectedStatus);
|
|
160
|
-
}
|
|
161
|
-
const text = await readResponseText(response, opts.maxResponseBytes);
|
|
162
|
-
if (!text)
|
|
163
|
-
return undefined;
|
|
164
|
-
try {
|
|
165
|
-
return parseOctoJson(text);
|
|
166
|
-
}
|
|
167
|
-
catch {
|
|
168
|
-
throw new OctoApiProtocolError(`Octo API ${path} returned invalid JSON: ${text.slice(0, 200)}`);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
const body = await readResponseText(response, opts.maxResponseBytes).catch(() => "");
|
|
172
|
-
const err = OctoApiError.from(response, path, body);
|
|
173
|
-
if (!err.isRateLimited)
|
|
174
|
-
throw err;
|
|
175
|
-
// Logged on every rate limit, including the one we give up on: the scope and the
|
|
176
|
-
// remaining count are the only way to tell which bucket ran dry and whose traffic
|
|
177
|
-
// filled it, and they are discarded once this error leaves here.
|
|
178
|
-
if (opts.logRateLimit !== false)
|
|
179
|
-
console.warn(`octo: rate limited on ${path} (scope=${err.rateLimitScope ?? "?"} ` +
|
|
180
|
-
`remaining=${err.rateLimitRemaining ?? "?"} retry_after=${err.retryAfterMs}ms) ` +
|
|
181
|
-
`attempt=${attempt + 1}/${retryOn429 ? MAX_429_RETRIES + 1 : 1}`);
|
|
182
|
-
if (!retryOn429 || attempt >= MAX_429_RETRIES)
|
|
183
|
-
throw err;
|
|
184
|
-
// A wait this long is the server telling us to go away, not to try again shortly.
|
|
185
|
-
// Clamping it down instead would just return before it was ready for us.
|
|
186
|
-
if (err.retryAfterMs > MAX_RETRY_AFTER_MS)
|
|
187
|
-
throw err;
|
|
188
|
-
// Jitter only ever adds. Retry-After is the earliest acceptable retry time, so a
|
|
189
|
-
// downward jitter would put us back on the server before it allowed it.
|
|
190
|
-
const delay = Math.round(err.retryAfterMs * (1 + Math.random() * 0.25));
|
|
191
|
-
if (waited + delay > MAX_429_BACKOFF_WAIT_MS)
|
|
192
|
-
throw err;
|
|
193
|
-
await backoffSleep(delay, signal, err);
|
|
194
|
-
waited += delay;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
export async function postJson(apiUrl, botToken, path, payload, signal, opts) {
|
|
198
|
-
return requestJson(apiUrl, botToken, path, "POST", payload, signal, opts);
|
|
199
|
-
}
|
|
200
|
-
export async function getJson(apiUrl, botToken, path, signal, opts) {
|
|
201
|
-
return requestJson(apiUrl, botToken, path, "GET", undefined, signal, opts);
|
|
202
|
-
}
|