@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,458 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "urn:mininglamp-oss:octo-runtime:extra:channel-gateway:config",
|
|
4
|
-
"title": "Octo IM Extra 完整配置声明",
|
|
5
|
-
"description": "描述 module、enabled 和 config 的完整 JSON 声明,供接入方参考、生成类型或自行构造校验器。加载入口仍接收 JsonObject,不自动执行本 schema、不转换配置、不填充 default。default 记录插件现有的省略行为,不代表宿主必须采用该业务选择。",
|
|
6
|
-
"$comment": "声明文件最多 1 MiB,POSIX 权限须为 0600;单 Bot JSON 最多 256 KiB。Bot 按规范化 api_url 与 bot_id 组合判重。路径可访问性、凭据、身份和 Space 授权、重试起点不大于上限等关系仍需运行时检查。Context 内部对象遵循 octo.context-envelope/v3,具体协议约束由现有运行时校验,本文件不重复展开。",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": ["config"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"module": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"const": "@mininglamp-oss/octo-runtime-extra-channel-gateway",
|
|
14
|
-
"description": "可选旧声明。CLI 从 manifest.json 选择模块;省略时使用有效清单,保留时须与清单文字一致。SDK 原生 import 不需要此字段。此 schema 约束固定包名,宿主使用其他公开路径时可自行调整。"
|
|
15
|
-
},
|
|
16
|
-
"enabled": {
|
|
17
|
-
"type": "boolean",
|
|
18
|
-
"default": true,
|
|
19
|
-
"description": "可选。是否加载整个 Octo IM 插件;省略视为 true,false 时加载器不导入插件。与 config.bots[].enabled 的单 Bot 开关不同。"
|
|
20
|
-
},
|
|
21
|
-
"config": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"additionalProperties": true,
|
|
24
|
-
"description": "必填。传给 Octo IM Extra load 的原始 JSON 对象;来源由宿主决定。未识别的可选扩展字段当前保留并忽略,不代表该能力已经应用。",
|
|
25
|
-
"properties": {
|
|
26
|
-
"bots": {
|
|
27
|
-
"type": "array",
|
|
28
|
-
"maxItems": 64,
|
|
29
|
-
"default": [],
|
|
30
|
-
"description": "可选。完整 Bot 列表,最多 64 个;省略或空数组表示没有连接。多个 Bot 属于同一个 Extra;宿主保存时替换完整声明,不按 bot_id 追加、合并或补齐旧配置。同一规范化 api_url 与 bot_id 不可重复。",
|
|
31
|
-
"items": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"additionalProperties": true,
|
|
34
|
-
"required": ["api_url", "bot_id", "adapter"],
|
|
35
|
-
"description": "一个 Octo Bot 的连接、准入、执行与投递设置;单项最多 256 KiB。允许暂存无凭据配置,但启用建联必须有有效 Bot Token;无效项单独报告,其他有效项继续初始化。未知可选扩展保留并忽略。",
|
|
36
|
-
"properties": {
|
|
37
|
-
"api_url": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": "uri",
|
|
40
|
-
"pattern": "^(?:https://[^/?#@\\s]+|http://(?:localhost|127\\.0\\.0\\.1|\\[::1\\])(?::[0-9]+)?)(?:/[^?#\\s]*)?$",
|
|
41
|
-
"description": "必填。当前 Bot 所属 Octo 环境的 REST API 基址,通常以 /api 结尾;必须填纯 URL,不能写 Markdown 链接或 WebSocket 地址。非本机使用 https;http 仅允许 localhost、127.0.0.1 或 [::1]。禁止 URL 凭据、query 和 fragment;Token 必须与该环境匹配。",
|
|
42
|
-
"examples": ["https://im-test.deepminer.com.cn/api"]
|
|
43
|
-
},
|
|
44
|
-
"bot_id": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"pattern": "\\S",
|
|
47
|
-
"description": "必填。Octo 平台分配的 Bot 业务 ID,须与 Bot Token 认证身份一致;不是展示名称、Runtime ID 或 OpenClaw Agent ID。省略 adapter.workdir 时还用于本地默认目录的一段,因此此时不得为 .、.. 或含斜杠、反斜杠、NUL 的值。",
|
|
48
|
-
"examples": ["<OCTO_BOT_ID>"]
|
|
49
|
-
},
|
|
50
|
-
"bot_name": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"pattern": "\\S",
|
|
53
|
-
"description": "可选。本地展示名称,省略时显示 bot_id;用于宿主区分多个 Bot,不修改服务端名称、不参与身份认证和消息 mention 匹配。",
|
|
54
|
-
"examples": ["项目助理"]
|
|
55
|
-
},
|
|
56
|
-
"enabled": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"default": true,
|
|
59
|
-
"description": "可选。是否启动此 Bot;省略为 true,false 时保留配置与 stopped 状态但不连接,不影响其他 Bot。"
|
|
60
|
-
},
|
|
61
|
-
"stable_context_refresh_interval_turns": {
|
|
62
|
-
"type": "integer",
|
|
63
|
-
"minimum": 1,
|
|
64
|
-
"maximum": 9007199254740991,
|
|
65
|
-
"default": 30,
|
|
66
|
-
"description": "自动稳定渠道说明的用户任务刷新周期;每会话第 1、N、2N…轮携带,默认 30。reset/new 后重新计轮;工具调用、同轮自动重试和同代次卡片重试不计新轮。只控制 Gateway 自有稳定说明,不省略宿主显式 Context、本轮 actor 或历史增量。"
|
|
67
|
-
},
|
|
68
|
-
"bf_token": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"writeOnly": true,
|
|
71
|
-
"anyOf": [
|
|
72
|
-
{
|
|
73
|
-
"pattern": "^\\s*$"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"pattern": "^\\s*bf_[A-Za-z0-9_-]+\\s*$"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"description": "可选;实际启用建联时必需。宿主从自己的配置来源取得并传入的 Bot Token 值,由 Octo 为此 Bot 签发,以 bf_ 开头,用于 octo-auth、注册和消息 API;不是个人登录 Token、enroll token 或模型 API Key。去除首尾空白后须符合 ^bf_[A-Za-z0-9_-]+$;空值允许暂存但不能建联。插件不读取凭据文件或配置中心。不得进入模型文本、公开状态或日志。",
|
|
80
|
-
"examples": ["bf_REPLACE_WITH_REAL_BOT_TOKEN"]
|
|
81
|
-
},
|
|
82
|
-
"adapter": {
|
|
83
|
-
"type": "object",
|
|
84
|
-
"additionalProperties": true,
|
|
85
|
-
"description": "必填。本 Bot 的执行引擎与固定工作目录设置;宿主先装配对应 Provider,本字段不触发安装。 宿主已安装且已装配的执行引擎。未知扩展字段当前忽略;model 与 effort 由业务方选择,不使用 schema 替宿主决定引擎或模型目录。",
|
|
86
|
-
"properties": {
|
|
87
|
-
"adapter_type": {
|
|
88
|
-
"type": "string",
|
|
89
|
-
"pattern": "\\S",
|
|
90
|
-
"default": "codex",
|
|
91
|
-
"description": "可选。宿主已装配的 Adapter 类型标识,本插件省略时默认 codex,例如 claude-code、codebuddy、openclaw。不是 npm 包名或模型 ID;选择 OpenClaw 时显式填 openclaw。",
|
|
92
|
-
"examples": ["codex", "claude-code", "openclaw"]
|
|
93
|
-
},
|
|
94
|
-
"workdir": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"pattern": "^(?:/|[A-Za-z]:[\\\\/]|\\\\\\\\[^\\\\/]+[\\\\/][^\\\\/]+)",
|
|
97
|
-
"description": "本地引擎可选,OpenClaw 禁止。本地引擎省略时,本业务入口使用并创建运行用户 Home 下的 octo-runtime/channels/{bot_id};显式填写时须为运行机器绝对路径,不能写 ~。它是本 Bot 长期 Agent 的固定目录,任务、会话和 reset 均不改变,Context workspace 不得覆盖。OpenClaw 使用目标 Provider Agent 自己的工作区;路径可访问性仍需运行时检查。",
|
|
98
|
-
"examples": ["/absolute/workspace"]
|
|
99
|
-
},
|
|
100
|
-
"model": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"pattern": "\\S",
|
|
103
|
-
"description": "可选。所选 Provider 可识别的模型 ID,由业务方按自己的模型配置填写;不固定某个模型,也不在 schema 枚举模型目录。省略不传显式模型选择,按执行解析与 Provider 配置处理;填写不保证已授权或实际可用。",
|
|
104
|
-
"examples": ["<PROVIDER_MODEL_ID>"]
|
|
105
|
-
},
|
|
106
|
-
"effort": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"enum": ["low", "medium", "high", "xhigh"],
|
|
109
|
-
"description": "可选。统一推理强度档位,由业务方选择;省略不显式指定。实际应用、映射或不支持结果按 Adapter 与 Provider 合同处理。"
|
|
110
|
-
},
|
|
111
|
-
"provider_agent_id": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"pattern": "^[a-z0-9_][a-z0-9_-]{0,63}$",
|
|
114
|
-
"description": "仅 adapter_type=openclaw 时可选。指向 OpenClaw Gateway 中已存在、预先配置好的目标 Agent;需要选择非默认 Agent 时填写,省略使用 main。不是 Octo bot_id、Runtime ID、Provider 会话 ID 或模型 ID。不会创建 Agent、切换为其他 Agent 或覆盖其工作区;目标不存在时执行失败。其他 Adapter 禁止设置。",
|
|
115
|
-
"examples": ["main", "research_assistant"]
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"if": {
|
|
119
|
-
"required": ["adapter_type"],
|
|
120
|
-
"properties": {
|
|
121
|
-
"adapter_type": {
|
|
122
|
-
"const": "openclaw"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"then": {
|
|
127
|
-
"not": {
|
|
128
|
-
"required": ["workdir"]
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"else": {
|
|
132
|
-
"not": {
|
|
133
|
-
"required": ["provider_agent_id"]
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"context": {
|
|
138
|
-
"type": "object",
|
|
139
|
-
"description": "可选。遵循 octo-runtime 的 octo.context-envelope/v3 协议;配置后,IM Channel 在每次执行 AgentRun 时固定附带这些配置项。items 的内部对象结构不在本配置 schema 中展开,具体内容由现有 Context v3 协议校验。",
|
|
140
|
-
"additionalProperties": false,
|
|
141
|
-
"required": ["schema", "items"],
|
|
142
|
-
"properties": {
|
|
143
|
-
"schema": {
|
|
144
|
-
"type": "string",
|
|
145
|
-
"const": "octo.context-envelope/v3",
|
|
146
|
-
"description": "必填。固定使用 octo-runtime 的 Context v3 协议标识。"
|
|
147
|
-
},
|
|
148
|
-
"items": {
|
|
149
|
-
"type": "array",
|
|
150
|
-
"description": "必填。执行 AgentRun 时固定附带的 Context 项;允许空数组,每项为遵循 Context v3 协议的 JSON 对象,此处不展开内部字段。",
|
|
151
|
-
"items": {
|
|
152
|
-
"type": "object",
|
|
153
|
-
"additionalProperties": true
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"approval_mode": {
|
|
159
|
-
"type": "string",
|
|
160
|
-
"enum": ["ask", "assisted", "full_access"],
|
|
161
|
-
"default": "full_access",
|
|
162
|
-
"description": "可选。本 Bot 默认执行审批策略:ask 请求审批,assisted 使用辅助审批策略,full_access 请求完整访问策略。具体支持及行为由所选 Adapter 决定,不绕过平台身份与资源权限;本轮 Context 的审批项可按现有合同覆盖。"
|
|
163
|
-
},
|
|
164
|
-
"run_timeout_ms": {
|
|
165
|
-
"type": "integer",
|
|
166
|
-
"minimum": 100,
|
|
167
|
-
"maximum": 86400000,
|
|
168
|
-
"default": 86400000,
|
|
169
|
-
"description": "可选。本 Bot 默认单轮任务总时限,单位毫秒,范围 100..86400000,省略为一天。本轮 Context 的 limits 可按执行合同覆盖。所有重试共用剩余任务期限,不为每次尝试重新获得完整时长;不同于连续故障恢复预算。"
|
|
170
|
-
},
|
|
171
|
-
"codex_retry": {
|
|
172
|
-
"type": "object",
|
|
173
|
-
"additionalProperties": true,
|
|
174
|
-
"description": "可选。此 Octo IM 业务入口对 Codex 暂态失败的恢复策略;省略使用各字段所列当前默认值。只适用于 Codex,不让其他 Adapter 自动重跑;不表示工具执行后或结果未知时允许重放。 Octo IM 的 Codex 有界故障恢复预算,未知扩展字段当前忽略。计数不含首次尝试;非空文本增量或工具完成可结束连续故障段,但不会归零本轮累计重试。数值比较等关系需插件继续校验。",
|
|
175
|
-
"properties": {
|
|
176
|
-
"enabled": {
|
|
177
|
-
"type": "boolean",
|
|
178
|
-
"default": true,
|
|
179
|
-
"description": "可选。是否启用此 Extra 的 Codex 自动恢复及恢复预算;false 不会关闭 Provider 自身的原生网络恢复,也不改变其他 Adapter。"
|
|
180
|
-
},
|
|
181
|
-
"max_consecutive_retries": {
|
|
182
|
-
"type": "integer",
|
|
183
|
-
"minimum": 0,
|
|
184
|
-
"maximum": 100,
|
|
185
|
-
"default": 5,
|
|
186
|
-
"description": "可选。一个连续故障段内允许的重试次数,范围 0..100,默认 5,不含首次调用;0 表示不允许额外重试。"
|
|
187
|
-
},
|
|
188
|
-
"max_total_retries": {
|
|
189
|
-
"type": "integer",
|
|
190
|
-
"minimum": 0,
|
|
191
|
-
"maximum": 100,
|
|
192
|
-
"default": 20,
|
|
193
|
-
"description": "可选。本轮任务累计允许的重试次数,范围 0..100,默认 20;成功产生进度不会重置累计值。"
|
|
194
|
-
},
|
|
195
|
-
"recovery_timeout_ms": {
|
|
196
|
-
"type": "integer",
|
|
197
|
-
"minimum": 100,
|
|
198
|
-
"maximum": 3600000,
|
|
199
|
-
"default": 120000,
|
|
200
|
-
"description": "可选。连续故障恢复的最长预算,单位毫秒,范围 100..3600000,默认 120000。独立于整轮 run_timeout_ms;不能延长任务总期限。"
|
|
201
|
-
},
|
|
202
|
-
"initial_delay_ms": {
|
|
203
|
-
"type": "integer",
|
|
204
|
-
"minimum": 100,
|
|
205
|
-
"maximum": 60000,
|
|
206
|
-
"default": 2000,
|
|
207
|
-
"description": "可选。指数退避起点,单位毫秒,范围 100..60000,默认 2000。解析默认值后必须不大于 max_delay_ms;实际等待还可能受最多 20% 抖动、服务端 retryAfterMs 和剩余预算影响。"
|
|
208
|
-
},
|
|
209
|
-
"max_delay_ms": {
|
|
210
|
-
"type": "integer",
|
|
211
|
-
"minimum": 100,
|
|
212
|
-
"maximum": 300000,
|
|
213
|
-
"default": 30000,
|
|
214
|
-
"description": "可选。指数退避基准上限,单位毫秒,范围 100..300000,默认 30000。必须不小于解析默认值后的 initial_delay_ms;服务端要求的等待可长于此退避上限。"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"allowed_sender_ids": {
|
|
219
|
-
"type": "array",
|
|
220
|
-
"description": "可选。允许触发本 Bot 的真实 Octo 发送者 ID 白名单;省略时 DM 沿用平台好友准入,群/话题不增加发送者限制。显式非空名单仅允许列出的发送者,owner 不隐式补入,空数组拒绝全部,null 非法。自消息始终拒绝;群/话题仍须满足真实 mention、Space、启停与父群范围准入。",
|
|
221
|
-
"items": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"minLength": 1,
|
|
224
|
-
"description": "允许触发的 Octo 用户业务 ID。"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
"groups_enabled": {
|
|
228
|
-
"type": "boolean",
|
|
229
|
-
"default": true,
|
|
230
|
-
"description": "可选。是否启用群及话题消息入口,省略为 true;false 拒绝所有群/话题,无论 group_ids 如何配置,但不影响私聊。启用仍需通过发送者、Space、群范围及真实 mention 校验。null 或非布尔值无效。"
|
|
231
|
-
},
|
|
232
|
-
"group_ids": {
|
|
233
|
-
"type": ["array", "null"],
|
|
234
|
-
"description": "可选。额外限制允许处理的 Octo 父群 ID;省略、null 或空数组均表示不增加群范围限制,非空数组只允许列出的父群及其话题。禁止所有群/话题须显式设置 groups_enabled=false,不能用空名单表示。话题按父群 groupNo 匹配,回复保留原话题地址;本项不影响私聊,也不绕过真实 mention、成员权限或发送者白名单。",
|
|
235
|
-
"items": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"minLength": 1,
|
|
238
|
-
"description": "允许的群范围 ID(groupNo)。"
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
"artifact_delivery": {
|
|
242
|
-
"type": "object",
|
|
243
|
-
"additionalProperties": true,
|
|
244
|
-
"description": "workflow 固定产物交付,执行前通过 Context 明示。省略为 channel:成功 final 显式引用的本地文件上传为 IM 附件,普通链接同时保留正文下载链接并发送原生文件卡,图片内嵌展示;tools 保留 Agent 主动工具交付。不扫描目录或自动发布在线文档。",
|
|
245
|
-
"properties": {
|
|
246
|
-
"mode": {
|
|
247
|
-
"type": "string",
|
|
248
|
-
"enum": ["channel", "tools"],
|
|
249
|
-
"default": "channel",
|
|
250
|
-
"description": "省略启用渠道固定交付;tools 关闭 Gateway 自动上传,保留普通工具调用。"
|
|
251
|
-
},
|
|
252
|
-
"allowed_roots": {
|
|
253
|
-
"type": "array",
|
|
254
|
-
"maxItems": 32,
|
|
255
|
-
"description": "可选的 Gateway 本机绝对产物目录限制。省略时对成功 final 中的本地文件引用尝试按实际文件系统读取,不按 Agent 来源拒绝、不额外限制到工作区;空列表拒绝全部文件。显式目录按 realpath 检查包含关系,拒绝 symlink 逃逸;不修改 Agent 工作区、不下载远端文件。",
|
|
256
|
-
"items": {
|
|
257
|
-
"type": "string",
|
|
258
|
-
"pattern": "^(?:/|[A-Za-z]:[\\\\/]|\\\\\\\\[^\\\\/]+[\\\\/][^\\\\/]+)"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"allowed_mime_types": {
|
|
262
|
-
"type": "array",
|
|
263
|
-
"maxItems": 32,
|
|
264
|
-
"description": "可选精确 MIME 类型列表;省略不增加类型限制,空列表拒绝所有类型。服务端实际策略仍可拒绝;未知扩展使用 application/octet-stream。",
|
|
265
|
-
"items": { "type": "string", "pattern": "^[\\w.+-]+/[\\w.+-]+$" }
|
|
266
|
-
},
|
|
267
|
-
"max_file_bytes": {
|
|
268
|
-
"type": "integer",
|
|
269
|
-
"minimum": 1,
|
|
270
|
-
"maximum": 20971520,
|
|
271
|
-
"default": 20971520,
|
|
272
|
-
"description": "单个文件上限(字节),宿主可收紧。"
|
|
273
|
-
},
|
|
274
|
-
"max_total_bytes": {
|
|
275
|
-
"type": "integer",
|
|
276
|
-
"minimum": 1,
|
|
277
|
-
"maximum": 52428800,
|
|
278
|
-
"default": 52428800,
|
|
279
|
-
"description": "一次最终回复的文件总字节预算,失败上传也占预算。"
|
|
280
|
-
},
|
|
281
|
-
"max_files": {
|
|
282
|
-
"type": "integer",
|
|
283
|
-
"minimum": 1,
|
|
284
|
-
"maximum": 16,
|
|
285
|
-
"default": 16,
|
|
286
|
-
"description": "一次最终回复最多尝试的不同 realpath 文件数量。"
|
|
287
|
-
},
|
|
288
|
-
"timeout_ms": {
|
|
289
|
-
"type": "integer",
|
|
290
|
-
"minimum": 1,
|
|
291
|
-
"maximum": 30000,
|
|
292
|
-
"default": 30000,
|
|
293
|
-
"description": "整次产物准备的上传时间预算;取消、reset 和关闭可提前结束。"
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"cards": {
|
|
298
|
-
"type": "boolean",
|
|
299
|
-
"default": true,
|
|
300
|
-
"description": "可选。是否尝试使用服务端实际允许且提供模板的进度/推理卡片,省略为 true。false 关闭该插件的卡片呈现,普通文本回复仍可发送;true 不保证服务端已授权、模板存在或卡片投递成功。"
|
|
301
|
-
},
|
|
302
|
-
"typing": {
|
|
303
|
-
"type": "boolean",
|
|
304
|
-
"default": true,
|
|
305
|
-
"description": "可选。任务处理中是否向当前会话发送输入中状态,省略为 true;false 关闭 typing,不影响执行及最终回复,也不是 Bot 连接健康状态。"
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
"allOf": [
|
|
309
|
-
{
|
|
310
|
-
"if": {
|
|
311
|
-
"properties": {
|
|
312
|
-
"adapter": {
|
|
313
|
-
"not": {
|
|
314
|
-
"required": ["workdir"]
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
"then": {
|
|
320
|
-
"properties": {
|
|
321
|
-
"bot_id": {
|
|
322
|
-
"not": {
|
|
323
|
-
"anyOf": [
|
|
324
|
-
{
|
|
325
|
-
"enum": [".", ".."]
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"pattern": "[/\\\\\u0000]"
|
|
329
|
-
}
|
|
330
|
-
]
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
]
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"authorized_space_ids": {
|
|
340
|
-
"type": "array",
|
|
341
|
-
"description": "可选。宿主允许此插件接入的 Space 业务 ID 白名单,按 octo-auth 实际认证得到的 Space 核对;省略不按本项限制,空数组不授权任何 Space。配置 ID 不是认证凭据,Bot 不能借此自行选择租户。",
|
|
342
|
-
"items": {
|
|
343
|
-
"type": "string",
|
|
344
|
-
"pattern": "\\S",
|
|
345
|
-
"description": "已授权的 Space 业务 ID,须含非空白字符。"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"context_loading": {
|
|
349
|
-
"type": "object",
|
|
350
|
-
"additionalProperties": false,
|
|
351
|
-
"description": "可选。宿主代码注入 loadContexts 时的回调预算;不是函数配置。每个 Extra 共用在途上限,超时但未结束的回调仍占用名额。",
|
|
352
|
-
"properties": {
|
|
353
|
-
"timeout_ms": {
|
|
354
|
-
"type": "integer",
|
|
355
|
-
"minimum": 1,
|
|
356
|
-
"maximum": 30000,
|
|
357
|
-
"default": 5000,
|
|
358
|
-
"description": "单次动态加载超时,单位毫秒;到期取消本次等待和 signal,不保证外部 I/O 已停止。"
|
|
359
|
-
},
|
|
360
|
-
"max_in_flight": {
|
|
361
|
-
"type": "integer",
|
|
362
|
-
"minimum": 1,
|
|
363
|
-
"maximum": 32,
|
|
364
|
-
"default": 8,
|
|
365
|
-
"description": "每个 Extra 尚未结束的回调数上限;达到上限直接拒绝当前轮次,不增加等待队列。"
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
"examples": [
|
|
373
|
-
{
|
|
374
|
-
"module": "@mininglamp-oss/octo-runtime-extra-channel-gateway",
|
|
375
|
-
"enabled": true,
|
|
376
|
-
"config": {
|
|
377
|
-
"bots": [
|
|
378
|
-
{
|
|
379
|
-
"api_url": "https://im-test.deepminer.com.cn/api",
|
|
380
|
-
"bot_id": "<OCTO_BOT_ID>",
|
|
381
|
-
"bot_name": "项目助理",
|
|
382
|
-
"bf_token": "bf_REPLACE_WITH_REAL_BOT_TOKEN",
|
|
383
|
-
"enabled": true,
|
|
384
|
-
"adapter": {
|
|
385
|
-
"adapter_type": "codex",
|
|
386
|
-
"workdir": "/absolute/workspace",
|
|
387
|
-
"model": "<PROVIDER_MODEL_ID>",
|
|
388
|
-
"effort": "medium"
|
|
389
|
-
},
|
|
390
|
-
"context": {
|
|
391
|
-
"schema": "octo.context-envelope/v3",
|
|
392
|
-
"items": [
|
|
393
|
-
{
|
|
394
|
-
"namespace": "octo.control",
|
|
395
|
-
"name": "instructions",
|
|
396
|
-
"payload": {
|
|
397
|
-
"entries": [
|
|
398
|
-
{
|
|
399
|
-
"text": "我是明略科技的Octo助理"
|
|
400
|
-
}
|
|
401
|
-
]
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
]
|
|
405
|
-
},
|
|
406
|
-
"approval_mode": "full_access",
|
|
407
|
-
"run_timeout_ms": 86400000,
|
|
408
|
-
"codex_retry": {
|
|
409
|
-
"enabled": true,
|
|
410
|
-
"max_consecutive_retries": 5,
|
|
411
|
-
"max_total_retries": 20,
|
|
412
|
-
"recovery_timeout_ms": 120000,
|
|
413
|
-
"initial_delay_ms": 2000,
|
|
414
|
-
"max_delay_ms": 30000
|
|
415
|
-
},
|
|
416
|
-
"allowed_sender_ids": ["<OCTO_USER_ID>"],
|
|
417
|
-
"group_ids": ["<OCTO_GROUP_NO>"],
|
|
418
|
-
"cards": true,
|
|
419
|
-
"typing": true
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
"authorized_space_ids": ["<AUTHORIZED_SPACE_ID>"]
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"module": "@mininglamp-oss/octo-runtime-extra-channel-gateway",
|
|
427
|
-
"config": {
|
|
428
|
-
"bots": [
|
|
429
|
-
{
|
|
430
|
-
"api_url": "https://im-test.deepminer.com.cn/api",
|
|
431
|
-
"bot_id": "<OCTO_BOT_ID>",
|
|
432
|
-
"adapter": {
|
|
433
|
-
"adapter_type": "openclaw",
|
|
434
|
-
"provider_agent_id": "research_assistant"
|
|
435
|
-
},
|
|
436
|
-
"bf_token": "bf_REPLACE_WITH_REAL_BOT_TOKEN",
|
|
437
|
-
"context": {
|
|
438
|
-
"schema": "octo.context-envelope/v3",
|
|
439
|
-
"items": [
|
|
440
|
-
{
|
|
441
|
-
"namespace": "octo.control",
|
|
442
|
-
"name": "instructions",
|
|
443
|
-
"payload": {
|
|
444
|
-
"entries": [
|
|
445
|
-
{
|
|
446
|
-
"text": "我是明略科技的Octo助理"
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
]
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
]
|
|
458
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** 群/话题的位置只证明本轮准备与材料交接,不代表模型已阅读完整历史。 */
|
|
2
|
-
import type { ContextItem } from "@mininglamp-oss/octo-runtime-protocol";
|
|
3
|
-
export declare const IM_HISTORY_MESSAGE_LIMIT = 20;
|
|
4
|
-
export interface ImGapMetadata {
|
|
5
|
-
processEpoch: string;
|
|
6
|
-
revision: number;
|
|
7
|
-
latestObservedSeq?: number;
|
|
8
|
-
preparedTriggerSeq?: number;
|
|
9
|
-
pendingAfterSeq?: number | null;
|
|
10
|
-
continuityUnknown?: boolean;
|
|
11
|
-
observationVisibility?: "unknown" | "partial";
|
|
12
|
-
localOutputSeqs: number[];
|
|
13
|
-
assistantOutputs?: {
|
|
14
|
-
providerSessionId: string;
|
|
15
|
-
messages: Array<{
|
|
16
|
-
seq: number;
|
|
17
|
-
fingerprint: string;
|
|
18
|
-
}>;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface ImGapTurnToken {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
generation: number;
|
|
24
|
-
processEpoch: string;
|
|
25
|
-
/** 仅源流正常完成后、成功 final 交付前设置;普通发送位置不代表 assistant 已有内容。 */
|
|
26
|
-
providerSessionId?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ImGapPlan {
|
|
29
|
-
mode: "none" | "bootstrap" | "delta" | "unavailable";
|
|
30
|
-
beforeSeq?: number;
|
|
31
|
-
afterSeq?: number;
|
|
32
|
-
messageLimit?: number;
|
|
33
|
-
positionSpan?: number;
|
|
34
|
-
earlierOmitted?: boolean;
|
|
35
|
-
retrieval?: "provided" | "partial" | "empty" | "unavailable" | "omitted";
|
|
36
|
-
reason?: string;
|
|
37
|
-
excludedOutputs?: Array<{
|
|
38
|
-
seq: number;
|
|
39
|
-
fingerprint: string;
|
|
40
|
-
}>;
|
|
41
|
-
recoveryHistory?: ContextItem;
|
|
42
|
-
}
|
|
43
|
-
/** 只核对普通正文/文件卡;历史被编辑或形状不明时不排除,不以 URL 或 UID 判重。 */
|
|
44
|
-
export declare function assistantOutputFingerprint(payload: Record<string, unknown>): string | undefined;
|
|
45
|
-
export declare function validMessageSeq(value: unknown): value is number;
|
|
46
|
-
export declare function gapMetadata(processEpoch: string, previous?: ImGapMetadata): ImGapMetadata;
|
|
47
|
-
export declare function planHistoryGap(trigger: number | undefined, metadata: ImGapMetadata | undefined, processEpoch: string, capable?: boolean): ImGapPlan;
|
|
48
|
-
export declare function historyGapContext(source: Record<string, unknown>, triggerId: string, plan: ImGapPlan, triggerSequence?: number | undefined): ContextItem | undefined;
|
|
49
|
-
export declare function compactHistoryGap(item: ContextItem): ContextItem | undefined;
|
|
50
|
-
export declare function commitHistoryGap(current: ImGapMetadata, trigger: number | undefined, plan: ImGapPlan, history: ContextItem | undefined): ImGapMetadata;
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
export const IM_HISTORY_MESSAGE_LIMIT = 20;
|
|
3
|
-
/** 只核对普通正文/文件卡;历史被编辑或形状不明时不排除,不以 URL 或 UID 判重。 */
|
|
4
|
-
export function assistantOutputFingerprint(payload) {
|
|
5
|
-
if (![1, 8].includes(Number(payload.type)) || payload.reply)
|
|
6
|
-
return undefined;
|
|
7
|
-
return createHash("sha256")
|
|
8
|
-
.update(JSON.stringify([
|
|
9
|
-
payload.type,
|
|
10
|
-
payload.content ?? "",
|
|
11
|
-
payload.url,
|
|
12
|
-
payload.name,
|
|
13
|
-
payload.size,
|
|
14
|
-
payload.extension,
|
|
15
|
-
payload.mention
|
|
16
|
-
]))
|
|
17
|
-
.digest("hex");
|
|
18
|
-
}
|
|
19
|
-
export function validMessageSeq(value) {
|
|
20
|
-
return Number.isSafeInteger(value) && Number(value) > 0 && Number(value) <= 0xffffffff;
|
|
21
|
-
}
|
|
22
|
-
export function gapMetadata(processEpoch, previous) {
|
|
23
|
-
return previous?.processEpoch === processEpoch
|
|
24
|
-
? structuredClone(previous)
|
|
25
|
-
: { processEpoch, revision: 0, localOutputSeqs: [], observationVisibility: "unknown" };
|
|
26
|
-
}
|
|
27
|
-
export function planHistoryGap(trigger, metadata, processEpoch, capable = true) {
|
|
28
|
-
if (!validMessageSeq(trigger))
|
|
29
|
-
return { mode: "unavailable", reason: "missing-position" };
|
|
30
|
-
const current = metadata?.processEpoch === processEpoch ? metadata : undefined;
|
|
31
|
-
const prepared = current?.preparedTriggerSeq;
|
|
32
|
-
if (prepared !== undefined && trigger <= prepared)
|
|
33
|
-
return { mode: "unavailable", reason: "position-rollback" };
|
|
34
|
-
if (trigger === 1)
|
|
35
|
-
return { mode: "none" };
|
|
36
|
-
const pending = current?.pendingAfterSeq;
|
|
37
|
-
const after = !capable || current?.continuityUnknown || pending === null
|
|
38
|
-
? undefined
|
|
39
|
-
: pending === undefined
|
|
40
|
-
? prepared
|
|
41
|
-
: Math.min(pending, prepared ?? pending);
|
|
42
|
-
if (after === undefined)
|
|
43
|
-
return {
|
|
44
|
-
mode: "bootstrap",
|
|
45
|
-
beforeSeq: trigger,
|
|
46
|
-
messageLimit: IM_HISTORY_MESSAGE_LIMIT,
|
|
47
|
-
earlierOmitted: true,
|
|
48
|
-
reason: capable ? "unknown-baseline" : "store-capability-unavailable"
|
|
49
|
-
};
|
|
50
|
-
const span = trigger - after - 1;
|
|
51
|
-
// 发送位置不足以证明 assistant 覆盖;读取同一窗口才能核对编辑及准备本轮恢复材料。
|
|
52
|
-
if (span <= 0)
|
|
53
|
-
return { mode: "none", afterSeq: after };
|
|
54
|
-
return {
|
|
55
|
-
mode: "delta",
|
|
56
|
-
afterSeq: after,
|
|
57
|
-
beforeSeq: trigger,
|
|
58
|
-
positionSpan: span,
|
|
59
|
-
messageLimit: Math.min(IM_HISTORY_MESSAGE_LIMIT, span),
|
|
60
|
-
earlierOmitted: span > IM_HISTORY_MESSAGE_LIMIT
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export function historyGapContext(source, triggerId, plan, triggerSequence = plan.beforeSeq) {
|
|
64
|
-
if (plan.mode === "none")
|
|
65
|
-
return undefined;
|
|
66
|
-
const item = {
|
|
67
|
-
namespace: "extra.im",
|
|
68
|
-
name: "history-gap",
|
|
69
|
-
guidance: "This data describes the range, availability, and omissions of channel history for the current turn.",
|
|
70
|
-
payload: {
|
|
71
|
-
source,
|
|
72
|
-
automatic: true,
|
|
73
|
-
mode: plan.mode,
|
|
74
|
-
status: plan.retrieval ?? "unavailable",
|
|
75
|
-
materialProvided: plan.retrieval === "provided" || plan.retrieval === "partial",
|
|
76
|
-
trigger: {
|
|
77
|
-
messageId: triggerId,
|
|
78
|
-
...(validMessageSeq(triggerSequence) ? { messageSeq: triggerSequence } : {})
|
|
79
|
-
},
|
|
80
|
-
...(plan.beforeSeq !== undefined
|
|
81
|
-
? {
|
|
82
|
-
range: {
|
|
83
|
-
beforeSeq: plan.beforeSeq,
|
|
84
|
-
...(plan.afterSeq !== undefined ? { afterSeq: plan.afterSeq } : {})
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
: {}),
|
|
88
|
-
...(plan.reason ? { reason: plan.reason } : {}),
|
|
89
|
-
...(plan.messageLimit !== undefined ? { messageLimit: plan.messageLimit } : {}),
|
|
90
|
-
...(plan.positionSpan !== undefined ? { positionSpan: plan.positionSpan } : {}),
|
|
91
|
-
earlierOmitted: plan.earlierOmitted === true
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
return Buffer.byteLength(JSON.stringify(item)) <= 4096 ? item : compactHistoryGap(item);
|
|
95
|
-
}
|
|
96
|
-
export function compactHistoryGap(item) {
|
|
97
|
-
const compact = {
|
|
98
|
-
namespace: item.namespace,
|
|
99
|
-
name: item.name,
|
|
100
|
-
guidance: "This data describes the range, availability, and omissions of channel history for the current turn.",
|
|
101
|
-
payload: {
|
|
102
|
-
source: item.payload.source,
|
|
103
|
-
automatic: true,
|
|
104
|
-
mode: item.payload.mode,
|
|
105
|
-
status: item.payload.status,
|
|
106
|
-
materialProvided: item.payload.materialProvided === true,
|
|
107
|
-
earlierOmitted: item.payload.earlierOmitted === true,
|
|
108
|
-
...(item.payload.reason ? { reason: item.payload.reason } : {}),
|
|
109
|
-
...(item.payload.trigger ? { trigger: item.payload.trigger } : {}),
|
|
110
|
-
...(item.payload.range ? { range: item.payload.range } : {})
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
return Buffer.byteLength(JSON.stringify(compact)) <= 1024 ? compact : undefined;
|
|
114
|
-
}
|
|
115
|
-
export function commitHistoryGap(current, trigger, plan, history) {
|
|
116
|
-
const next = structuredClone(current);
|
|
117
|
-
if (validMessageSeq(trigger))
|
|
118
|
-
next.preparedTriggerSeq = Math.max(next.preparedTriggerSeq ?? 0, trigger);
|
|
119
|
-
if (plan.mode === "bootstrap" || plan.mode === "delta") {
|
|
120
|
-
const provided = (plan.retrieval === "provided" || plan.retrieval === "partial") &&
|
|
121
|
-
history?.namespace === "extra.im" &&
|
|
122
|
-
history.name === "history" &&
|
|
123
|
-
history.payload.automatic === true &&
|
|
124
|
-
history.payload.upperMessageSeq === trigger;
|
|
125
|
-
if (provided || plan.retrieval === "empty") {
|
|
126
|
-
delete next.pendingAfterSeq;
|
|
127
|
-
delete next.continuityUnknown;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
const after = plan.afterSeq ?? null;
|
|
131
|
-
next.pendingAfterSeq =
|
|
132
|
-
next.pendingAfterSeq === null || after === null
|
|
133
|
-
? null
|
|
134
|
-
: Math.min(next.pendingAfterSeq ?? after, after);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if (plan.mode === "unavailable")
|
|
138
|
-
next.continuityUnknown = true;
|
|
139
|
-
return next;
|
|
140
|
-
}
|