@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
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
2
|
+
import { admissionClosedError, interruptedBeforeSubmissionError } from "./submission-error.js";
|
|
3
|
+
import { isHostTerminal } from "@mininglamp-oss/octo-runtime-protocol";
|
|
4
|
+
import { KernelError } from "./types.js";
|
|
5
|
+
/**
|
|
6
|
+
* 每个 client 独立保存 invoke 的身份、取消和观察状态;执行与断线恢复由 client.ts 负责。
|
|
7
|
+
* 最多登记 128 项,不缓存正文;未知结果继续占用额度,不能通过删除记录伪造排空成功。
|
|
8
|
+
*/
|
|
9
|
+
export class InvocationRegistry {
|
|
10
|
+
transport;
|
|
11
|
+
#records = new Map();
|
|
12
|
+
#stopped = false;
|
|
13
|
+
#draining;
|
|
14
|
+
#drainDeadline;
|
|
15
|
+
#closed = false;
|
|
16
|
+
#cancelling = 0;
|
|
17
|
+
#cancelQueue = [];
|
|
18
|
+
#cancelControllers = new Set();
|
|
19
|
+
constructor(transport) {
|
|
20
|
+
this.transport = transport;
|
|
21
|
+
}
|
|
22
|
+
begin(key) {
|
|
23
|
+
this.assertSubmission();
|
|
24
|
+
if (this.#records.has(key.invocation_id))
|
|
25
|
+
throw new KernelError("EXECUTION_IDENTITY_CONFLICT");
|
|
26
|
+
if (this.#records.size >= 128)
|
|
27
|
+
throw new KernelError("CLIENT_INVOCATION_CAPACITY_EXHAUSTED");
|
|
28
|
+
let settleAdmission;
|
|
29
|
+
const admitted = new Promise((resolve) => {
|
|
30
|
+
settleAdmission = resolve;
|
|
31
|
+
});
|
|
32
|
+
const record = {
|
|
33
|
+
key,
|
|
34
|
+
submitted: false,
|
|
35
|
+
phase: "admitting",
|
|
36
|
+
cancellation: "none",
|
|
37
|
+
lastSeq: 0,
|
|
38
|
+
admitted,
|
|
39
|
+
settleAdmission
|
|
40
|
+
};
|
|
41
|
+
this.#records.set(key.invocation_id, record);
|
|
42
|
+
return record;
|
|
43
|
+
}
|
|
44
|
+
assertSubmission() {
|
|
45
|
+
if (this.#stopped)
|
|
46
|
+
throw admissionClosedError();
|
|
47
|
+
}
|
|
48
|
+
accepted(record, ref, terminal) {
|
|
49
|
+
record.ref = ref;
|
|
50
|
+
record.submitted = true;
|
|
51
|
+
record.instance = ref.kernel_instance_id;
|
|
52
|
+
record.phase = "accepted";
|
|
53
|
+
record.settleAdmission();
|
|
54
|
+
if (terminal)
|
|
55
|
+
this.observe(ref, terminal);
|
|
56
|
+
if (record.reason !== undefined && !terminal && this.#records.get(ref.invocation_id) === record)
|
|
57
|
+
void this.cancel(record, record.reason).catch(() => undefined);
|
|
58
|
+
}
|
|
59
|
+
reconcile(ref, terminal) {
|
|
60
|
+
const record = this.#records.get(ref.invocation_id);
|
|
61
|
+
if (!record ||
|
|
62
|
+
(record.instance && record.instance !== ref.kernel_instance_id) ||
|
|
63
|
+
Object.entries(record.key).some(([field, value]) => Reflect.get(ref, field) !== value))
|
|
64
|
+
return;
|
|
65
|
+
if (record.ref &&
|
|
66
|
+
(record.ref.stream_id !== ref.stream_id || record.ref.protocol !== ref.protocol))
|
|
67
|
+
throw new KernelError("RUN_IDENTITY_MISMATCH");
|
|
68
|
+
if (!record.ref)
|
|
69
|
+
this.accepted(record, ref, terminal);
|
|
70
|
+
else if (terminal)
|
|
71
|
+
this.observe(ref, terminal);
|
|
72
|
+
}
|
|
73
|
+
rejected(record, error) {
|
|
74
|
+
if (this.#records.get(record.key.invocation_id) !== record)
|
|
75
|
+
return;
|
|
76
|
+
if (record.ref) {
|
|
77
|
+
record.settleAdmission();
|
|
78
|
+
this.interrupted(record, error);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
record.admissionError = error instanceof Error ? error : new KernelError("ACCEPTANCE_UNKNOWN");
|
|
82
|
+
record.observationError = errorCode(error);
|
|
83
|
+
record.phase = "acceptance_unknown";
|
|
84
|
+
record.settleAdmission();
|
|
85
|
+
const rejectedByServer = error instanceof KernelError &&
|
|
86
|
+
error.data !== undefined &&
|
|
87
|
+
!["KERNEL_INSTANCE_CHANGED", "RUN_IDENTITY_MISMATCH"].includes(error.code);
|
|
88
|
+
// 仅未发送或明确拒绝可安全移除;已发送但 ACK 未知时保留身份,后续 drain 只能查询确认。
|
|
89
|
+
if (!record.submitted || rejectedByServer)
|
|
90
|
+
this.#records.delete(record.key.invocation_id);
|
|
91
|
+
}
|
|
92
|
+
observe(ref, frame) {
|
|
93
|
+
const record = this.#records.get(ref.invocation_id);
|
|
94
|
+
if (!record ||
|
|
95
|
+
!record.ref ||
|
|
96
|
+
record.ref.stream_id !== ref.stream_id ||
|
|
97
|
+
record.ref.kernel_instance_id !== ref.kernel_instance_id)
|
|
98
|
+
return;
|
|
99
|
+
record.lastSeq = Math.max(record.lastSeq, frame.seq);
|
|
100
|
+
if (!isHostTerminal(frame))
|
|
101
|
+
return;
|
|
102
|
+
if (frame.kind === "control" &&
|
|
103
|
+
frame.control.type === "state" &&
|
|
104
|
+
frame.control.state === "lost") {
|
|
105
|
+
record.phase = "unobserved";
|
|
106
|
+
record.observationError = "RUN_OUTCOME_UNKNOWN";
|
|
107
|
+
}
|
|
108
|
+
else
|
|
109
|
+
this.#records.delete(ref.invocation_id);
|
|
110
|
+
}
|
|
111
|
+
interrupted(record, error) {
|
|
112
|
+
if (this.#records.get(record.key.invocation_id) !== record || !record.ref)
|
|
113
|
+
return;
|
|
114
|
+
record.phase = "unobserved";
|
|
115
|
+
if (error !== undefined)
|
|
116
|
+
record.observationError = errorCode(error);
|
|
117
|
+
}
|
|
118
|
+
active(id) {
|
|
119
|
+
const record = this.#records.get(id);
|
|
120
|
+
if (!record)
|
|
121
|
+
throw new KernelError("INVOCATION_NOT_TRACKED");
|
|
122
|
+
return record;
|
|
123
|
+
}
|
|
124
|
+
ref(id) {
|
|
125
|
+
const record = this.active(id);
|
|
126
|
+
if (!record.ref)
|
|
127
|
+
throw new KernelError("INVOCATION_NOT_ACCEPTED");
|
|
128
|
+
return record.ref;
|
|
129
|
+
}
|
|
130
|
+
cancel(record, reason = "caller_cancelled", { explicit = false } = {}) {
|
|
131
|
+
if (this.#records.get(record.key.invocation_id) !== record)
|
|
132
|
+
return Promise.resolve({ accepted: false });
|
|
133
|
+
if (record.observationError === "RUN_OUTCOME_UNKNOWN")
|
|
134
|
+
return Promise.reject(new KernelError("RUN_OUTCOME_UNKNOWN"));
|
|
135
|
+
if (!record.submitted) {
|
|
136
|
+
this.rejected(record, interruptedBeforeSubmissionError());
|
|
137
|
+
record.cancellation = "acknowledged";
|
|
138
|
+
return Promise.resolve({ accepted: true });
|
|
139
|
+
}
|
|
140
|
+
record.reason ??= reason;
|
|
141
|
+
if (record.cancellation === "none")
|
|
142
|
+
record.cancellation = "requested";
|
|
143
|
+
// 取消可能早于接纳 ACK:记住首次原因,等同一执行获得 RunRef 后发出一次控制请求。
|
|
144
|
+
if (!record.ref)
|
|
145
|
+
return record.admitted.then(() => {
|
|
146
|
+
if (!record.ref)
|
|
147
|
+
throw record.admissionError ?? new KernelError("ACCEPTANCE_UNKNOWN");
|
|
148
|
+
// ACK 接续仍属于原意图;不能因其首次控制已失败而暗中再发送一次。
|
|
149
|
+
return this.cancel(record, reason);
|
|
150
|
+
});
|
|
151
|
+
// 仅新的公开 Stop 可重试未知控制;drain/signal 保留原 Promise,并发 Stop 共享在途尝试。
|
|
152
|
+
const retry = explicit && record.cancellation === "unknown";
|
|
153
|
+
if (!record.cancelTask || retry) {
|
|
154
|
+
if (retry)
|
|
155
|
+
record.reason = reason;
|
|
156
|
+
record.cancellation = "requested";
|
|
157
|
+
const controller = new AbortController();
|
|
158
|
+
this.#cancelControllers.add(controller);
|
|
159
|
+
record.cancelTask = new Promise((resolve, reject) => {
|
|
160
|
+
this.#cancelQueue.push(async () => {
|
|
161
|
+
try {
|
|
162
|
+
if (this.#closed)
|
|
163
|
+
throw new KernelError("CLIENT_CLOSED");
|
|
164
|
+
if (this.#records.get(record.key.invocation_id) !== record) {
|
|
165
|
+
resolve({ accepted: false });
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (record.observationError === "RUN_OUTCOME_UNKNOWN")
|
|
169
|
+
throw new KernelError("RUN_OUTCOME_UNKNOWN");
|
|
170
|
+
const deadline = Math.min(Date.now() + 5000, this.#drainDeadline ?? Infinity);
|
|
171
|
+
if (deadline <= Date.now())
|
|
172
|
+
throw new KernelError("OPERATION_OUTCOME_UNKNOWN");
|
|
173
|
+
resolve(await this.transport.cancel(record.ref, record.reason, deadline, controller.signal));
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
reject(error instanceof Error ? error : new KernelError("OPERATION_OUTCOME_UNKNOWN"));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
this.#pumpCancellations();
|
|
180
|
+
})
|
|
181
|
+
.then((result) => {
|
|
182
|
+
record.cancellation = "acknowledged";
|
|
183
|
+
return result;
|
|
184
|
+
})
|
|
185
|
+
.catch((error) => {
|
|
186
|
+
record.cancellation = "unknown";
|
|
187
|
+
record.observationError = errorCode(error);
|
|
188
|
+
throw error;
|
|
189
|
+
})
|
|
190
|
+
.finally(() => this.#cancelControllers.delete(controller));
|
|
191
|
+
record.firstCancelTask ??= record.cancelTask;
|
|
192
|
+
// Automatic signal cancellation may outlive its consumer; always consume rejection.
|
|
193
|
+
void record.cancelTask.catch(() => undefined);
|
|
194
|
+
}
|
|
195
|
+
return record.cancelTask;
|
|
196
|
+
}
|
|
197
|
+
#pumpCancellations() {
|
|
198
|
+
while (this.#cancelling < 4 && this.#cancelQueue.length) {
|
|
199
|
+
this.#cancelling++;
|
|
200
|
+
void this.#cancelQueue.shift()().finally(() => {
|
|
201
|
+
this.#cancelling--;
|
|
202
|
+
this.#pumpCancellations();
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
snapshot() {
|
|
207
|
+
return [...this.#records.values()].map((record) => ({
|
|
208
|
+
key: { ...record.key },
|
|
209
|
+
...(record.ref ? { ref: { ...record.ref } } : {}),
|
|
210
|
+
phase: record.phase,
|
|
211
|
+
cancellation: record.cancellation,
|
|
212
|
+
lastSeq: record.lastSeq,
|
|
213
|
+
...(record.observationError ? { observationError: record.observationError } : {})
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
stopAdmission() {
|
|
217
|
+
this.#stopped = true;
|
|
218
|
+
}
|
|
219
|
+
close() {
|
|
220
|
+
this.#closed = true;
|
|
221
|
+
this.stopAdmission();
|
|
222
|
+
for (const record of this.#records.values())
|
|
223
|
+
if (!record.submitted)
|
|
224
|
+
this.rejected(record, interruptedBeforeSubmissionError());
|
|
225
|
+
for (const controller of this.#cancelControllers)
|
|
226
|
+
controller.abort();
|
|
227
|
+
}
|
|
228
|
+
drain(options) {
|
|
229
|
+
if (!Number.isSafeInteger(options.deadline) || options.deadline - Date.now() > 2_147_483_647)
|
|
230
|
+
throw new KernelError("INVOCATION_DEADLINE_INVALID");
|
|
231
|
+
// 首次关闭锁定绝对期限;重复调用不能延长预算,也不能启动第二轮取消副作用。
|
|
232
|
+
if (this.#draining)
|
|
233
|
+
return this.#draining;
|
|
234
|
+
this.stopAdmission();
|
|
235
|
+
this.#drainDeadline = options.deadline;
|
|
236
|
+
return (this.#draining = this.#drain(options));
|
|
237
|
+
}
|
|
238
|
+
async #drain({ deadline, reason }) {
|
|
239
|
+
const controller = new AbortController();
|
|
240
|
+
const timer = setTimeout(() => {
|
|
241
|
+
controller.abort();
|
|
242
|
+
for (const cancelController of this.#cancelControllers)
|
|
243
|
+
cancelController.abort();
|
|
244
|
+
}, Math.max(0, deadline - Date.now()));
|
|
245
|
+
try {
|
|
246
|
+
while (this.#records.size && !controller.signal.aborted && Date.now() < deadline) {
|
|
247
|
+
const records = [...this.#records.values()];
|
|
248
|
+
// 最多四路查询/控制 IO;只查终态元数据,不新增正文订阅,避免与业务消费者争夺尾流。
|
|
249
|
+
let index = 0;
|
|
250
|
+
await Promise.all(Array.from({ length: Math.min(4, records.length) }, async () => {
|
|
251
|
+
while (index < records.length && !controller.signal.aborted && Date.now() < deadline) {
|
|
252
|
+
const record = records[index++];
|
|
253
|
+
if (!record.submitted) {
|
|
254
|
+
await this.cancel(record, reason);
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
record.reason ??= reason;
|
|
258
|
+
if (record.cancellation === "none")
|
|
259
|
+
record.cancellation = "requested";
|
|
260
|
+
if (!record.instance)
|
|
261
|
+
continue;
|
|
262
|
+
try {
|
|
263
|
+
const info = await this.transport.get(record.key, record.instance, deadline, controller.signal);
|
|
264
|
+
if (!record.ref)
|
|
265
|
+
this.accepted(record, info.ref);
|
|
266
|
+
if (info.terminal)
|
|
267
|
+
this.observe(info.ref, info.terminal);
|
|
268
|
+
if (!this.#records.has(record.key.invocation_id))
|
|
269
|
+
continue;
|
|
270
|
+
// lost 表示执行结果未知,必须留在 unresolved,不能据此重放可能已有副作用的执行。
|
|
271
|
+
if (record.observationError !== "RUN_OUTCOME_UNKNOWN")
|
|
272
|
+
await this.cancel(record, reason);
|
|
273
|
+
}
|
|
274
|
+
catch (error) {
|
|
275
|
+
if (record.observationError !== "RUN_OUTCOME_UNKNOWN")
|
|
276
|
+
record.observationError = errorCode(error);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}));
|
|
280
|
+
if (this.#records.size && Date.now() < deadline) {
|
|
281
|
+
await delay(Math.min(100, deadline - Date.now()), undefined, {
|
|
282
|
+
signal: controller.signal
|
|
283
|
+
}).catch(() => undefined);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return { complete: this.#records.size === 0, unresolved: this.snapshot() };
|
|
287
|
+
}
|
|
288
|
+
finally {
|
|
289
|
+
clearTimeout(timer);
|
|
290
|
+
controller.abort();
|
|
291
|
+
for (const cancelController of this.#cancelControllers)
|
|
292
|
+
cancelController.abort();
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
export function errorCode(error) {
|
|
297
|
+
return error instanceof KernelError
|
|
298
|
+
? error.code
|
|
299
|
+
: error instanceof Error && /^[A-Z][A-Z0-9_]+$/.test(error.message)
|
|
300
|
+
? error.message
|
|
301
|
+
: "INVOCATION_OBSERVATION_FAILED";
|
|
302
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mininglamp-oss/octo-runtime-protocol/notification";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mininglamp-oss/octo-runtime-protocol/notification";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mininglamp-oss/octo-runtime-protocol";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@mininglamp-oss/octo-runtime-protocol";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type StartupDiagnostic, type StartupPathDiagnostic } from "./startup-diagnostics.js";
|
|
2
|
+
export type { StartupPathDiagnostic } from "./startup-diagnostics.js";
|
|
3
|
+
/** 启动域的受控路径失败;保留公共码、cause 和 #306 的平铺属性读取。 */
|
|
4
|
+
export declare class RuntimeHomeError extends Error {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
readonly diagnostic: Readonly<StartupDiagnostic & StartupPathDiagnostic>;
|
|
7
|
+
constructor(diagnostic: Omit<StartupPathDiagnostic, "domain" | "action"> & {
|
|
8
|
+
action?: string;
|
|
9
|
+
}, cause?: unknown);
|
|
10
|
+
}
|
|
11
|
+
/** 先检查原始输入,再规范化;这是纯路径计算,不代表目录已存在或启动已验证。 */
|
|
12
|
+
export declare function normalizeRuntimeHome(input: string, platform?: NodeJS.Platform, resource?: string): string;
|
|
13
|
+
export interface PathLimits {
|
|
14
|
+
path: number;
|
|
15
|
+
name: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function platformLimits(platform: NodeJS.Platform): PathLimits;
|
|
18
|
+
/** 检查实际附加文件名的预算;Windows 按 UTF-16 code unit,POSIX 按 UTF-8 字节。 */
|
|
19
|
+
export declare function assertRuntimePath(path: string, resource: string, platform?: NodeJS.Platform, limits?: PathLimits): void;
|
|
20
|
+
/** endpoint-only API 只拥有传输,不推断或创建 Home;同样在连接/监听前拒绝无效或超长地址。 */
|
|
21
|
+
export declare function assertIpcEndpoint(endpoint: string, platform?: NodeJS.Platform): void;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { posix, win32 } from "node:path";
|
|
2
|
+
import { describeStartupError, startupPathDiagnostic } from "./startup-diagnostics.js";
|
|
3
|
+
/** 启动域的受控路径失败;保留公共码、cause 和 #306 的平铺属性读取。 */
|
|
4
|
+
export class RuntimeHomeError extends Error {
|
|
5
|
+
code;
|
|
6
|
+
diagnostic;
|
|
7
|
+
constructor(diagnostic, cause) {
|
|
8
|
+
super(diagnostic.code, { cause });
|
|
9
|
+
this.name = "RuntimeHomeError";
|
|
10
|
+
this.code = diagnostic.code;
|
|
11
|
+
Object.defineProperty(this, "startupContext", { value: diagnostic });
|
|
12
|
+
const shared = describeStartupError(this);
|
|
13
|
+
const legacy = startupPathDiagnostic(shared);
|
|
14
|
+
// 兼容读取的别名不进入 JSON;序列化只有一个标准诊断结构,文案不能由输入 action 覆盖。
|
|
15
|
+
for (const [key, value] of Object.entries(legacy ?? {})) {
|
|
16
|
+
if (!(key in shared))
|
|
17
|
+
Object.defineProperty(shared, key, { value });
|
|
18
|
+
}
|
|
19
|
+
this.diagnostic = Object.freeze(shared);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** 先检查原始输入,再规范化;这是纯路径计算,不代表目录已存在或启动已验证。 */
|
|
23
|
+
export function normalizeRuntimeHome(input, platform = process.platform, resource = "home") {
|
|
24
|
+
const fail = (code) => {
|
|
25
|
+
throw new RuntimeHomeError({
|
|
26
|
+
code,
|
|
27
|
+
...(typeof input === "string" ? { path: input } : {}),
|
|
28
|
+
resource,
|
|
29
|
+
operation: "validate-input"
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
if (typeof input !== "string" ||
|
|
33
|
+
!input.trim() ||
|
|
34
|
+
input.includes("\0") ||
|
|
35
|
+
/[\uD800-\uDFFF]/u.test(input))
|
|
36
|
+
fail("HOME_INVALID");
|
|
37
|
+
if (!["win32", "darwin", "linux"].includes(platform))
|
|
38
|
+
fail("HOME_UNSUPPORTED");
|
|
39
|
+
const api = platform === "win32" ? win32 : posix;
|
|
40
|
+
if (!api.isAbsolute(input))
|
|
41
|
+
fail("HOME_INVALID");
|
|
42
|
+
if (platform === "win32") {
|
|
43
|
+
// 仅支持本地盘绝对路径。拒绝 UNC/device/root-relative/ADS 和 Win32 别名,避免 hash 与 IO 指向不同资源。
|
|
44
|
+
const local = input.replaceAll("/", "\\");
|
|
45
|
+
if (!/^[a-z]:\\/i.test(local) ||
|
|
46
|
+
/[<>"|?*]/.test(local) ||
|
|
47
|
+
[...local].some((character) => character.codePointAt(0) < 32) ||
|
|
48
|
+
local.slice(2).includes(":"))
|
|
49
|
+
fail("HOME_UNSUPPORTED");
|
|
50
|
+
for (const part of local.slice(3).split("\\")) {
|
|
51
|
+
if (part === "." || part === "..")
|
|
52
|
+
continue;
|
|
53
|
+
if (/[ .]$/.test(part) || /^(con|prn|aux|nul|com[1-9¹²³]|lpt[1-9¹²³])(?:\.|$)/i.test(part))
|
|
54
|
+
fail("HOME_UNSUPPORTED");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const home = api.resolve(input);
|
|
58
|
+
if (home === api.parse(home).root)
|
|
59
|
+
fail("HOME_UNSUPPORTED");
|
|
60
|
+
return home;
|
|
61
|
+
}
|
|
62
|
+
// Unix 的纯计算上限来自对应 OS 的 PATH_MAX/NAME_MAX;真实启动再查询所选文件系统。
|
|
63
|
+
// Windows Node/libuv 使用扩展 UTF-16 路径:32767 包括 NUL 和自动追加的 \\?\ 前缀,不使用 MAX_PATH=260。
|
|
64
|
+
export function platformLimits(platform) {
|
|
65
|
+
if (platform === "win32")
|
|
66
|
+
return { path: 32767 - 1 - 4, name: 255 };
|
|
67
|
+
if (platform === "linux")
|
|
68
|
+
return { path: 4096 - 1, name: 255 };
|
|
69
|
+
if (platform === "darwin")
|
|
70
|
+
return { path: 1024 - 1, name: 255 };
|
|
71
|
+
throw new RuntimeHomeError({
|
|
72
|
+
code: "HOME_UNSUPPORTED",
|
|
73
|
+
resource: "home",
|
|
74
|
+
operation: "path-budget"
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** 检查实际附加文件名的预算;Windows 按 UTF-16 code unit,POSIX 按 UTF-8 字节。 */
|
|
78
|
+
export function assertRuntimePath(path, resource, platform = process.platform, limits = platformLimits(platform)) {
|
|
79
|
+
const unit = platform === "win32" ? "utf16-units" : "utf8-bytes";
|
|
80
|
+
const measure = (value) => Buffer.byteLength(value, platform === "win32" ? "utf16le" : "utf8") /
|
|
81
|
+
(platform === "win32" ? 2 : 1);
|
|
82
|
+
const fail = (measured, limit, operation) => {
|
|
83
|
+
throw new RuntimeHomeError({
|
|
84
|
+
code: "HOME_PATH_TOO_LONG",
|
|
85
|
+
path,
|
|
86
|
+
resource,
|
|
87
|
+
operation,
|
|
88
|
+
measured,
|
|
89
|
+
limit,
|
|
90
|
+
unit
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
if (measure(path) > limits.path)
|
|
94
|
+
fail(measure(path), limits.path, "path-budget");
|
|
95
|
+
const api = platform === "win32" ? win32 : posix;
|
|
96
|
+
for (const part of path.slice(api.parse(path).root.length).split(api.sep)) {
|
|
97
|
+
if (measure(part) > limits.name)
|
|
98
|
+
fail(measure(part), limits.name, "filename-budget");
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/** endpoint-only API 只拥有传输,不推断或创建 Home;同样在连接/监听前拒绝无效或超长地址。 */
|
|
102
|
+
export function assertIpcEndpoint(endpoint, platform = process.platform) {
|
|
103
|
+
const fail = (code, extra = {}) => {
|
|
104
|
+
throw new RuntimeHomeError({
|
|
105
|
+
code,
|
|
106
|
+
...(typeof endpoint === "string" ? { path: endpoint, endpoint } : {}),
|
|
107
|
+
resource: "ipc-endpoint",
|
|
108
|
+
operation: "ipc-address",
|
|
109
|
+
...extra
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
if (typeof endpoint !== "string" ||
|
|
113
|
+
!endpoint ||
|
|
114
|
+
endpoint.includes("\0") ||
|
|
115
|
+
/[\uD800-\uDFFF]/u.test(endpoint))
|
|
116
|
+
fail("IPC_ENDPOINT_INVALID");
|
|
117
|
+
if (platform === "win32") {
|
|
118
|
+
if (!/^\\\\[.?]\\pipe\\[^\\]+$/i.test(endpoint))
|
|
119
|
+
fail("IPC_ENDPOINT_INVALID");
|
|
120
|
+
const measured = Buffer.byteLength(endpoint, "utf16le") / 2;
|
|
121
|
+
// CreateNamedPipeW: 完整 pipe 名最多 256 WCHAR;namespace 不是文件路径,不套用 Unix sun_path。
|
|
122
|
+
if (measured > 256)
|
|
123
|
+
fail("IPC_ENDPOINT_TOO_LONG", { measured, limit: 256, unit: "utf16-units" });
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (!posix.isAbsolute(endpoint))
|
|
127
|
+
fail("IPC_ENDPOINT_INVALID");
|
|
128
|
+
// Node net + libuv 的 pathname socket 必须留出结尾 NUL:Linux 108、Darwin 104 字节 sun_path。
|
|
129
|
+
const limit = platform === "linux" ? 107 : platform === "darwin" ? 103 : undefined;
|
|
130
|
+
if (limit === undefined)
|
|
131
|
+
fail("IPC_ENDPOINT_UNSUPPORTED");
|
|
132
|
+
const measured = Buffer.byteLength(endpoint, "utf8");
|
|
133
|
+
if (measured > limit)
|
|
134
|
+
fail("IPC_ENDPOINT_TOO_LONG", { measured, limit, unit: "utf8-bytes" });
|
|
135
|
+
assertRuntimePath(endpoint, "ipc-endpoint", platform);
|
|
136
|
+
assertRuntimePath(`${endpoint}.owner.recovery`, "endpoint-ownership", platform);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** client 与服务端共用的唯一启动文案目录;不含 Run 控制码,不触发修复或网络请求。 */
|
|
2
|
+
export interface StartupCatalogEntry {
|
|
3
|
+
readonly summary: string;
|
|
4
|
+
readonly action: string;
|
|
5
|
+
readonly retryable: boolean;
|
|
6
|
+
readonly configKey?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const STARTUP_CATALOG: Readonly<Record<string, StartupCatalogEntry>>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const entry = (summary, action, retryable = false, configKey) => Object.freeze({ summary, action, retryable, ...(configKey ? { configKey } : {}) });
|
|
2
|
+
const homeAction = "The SDK host must select and prepare an existing accessible absolute Runtime Home, then retry. CLI users can select their intended Home with --home. Existing data is not moved automatically.";
|
|
3
|
+
const endpointAction = "Inspect the endpoint owner and component status. Stop the owning service through its host before retrying; do not remove an active endpoint or ownership record.";
|
|
4
|
+
const inspectAction = "Inspect the component configuration and controlled lifecycle logs in the host. Capture the diagnostic codes and safe resource context before retrying; the cause is not yet known.";
|
|
5
|
+
export const STARTUP_CATALOG = Object.freeze({
|
|
6
|
+
STARTUP_UNKNOWN: entry("The startup cause is unknown.", inspectAction),
|
|
7
|
+
LOG_DIRECTORY_MUST_BE_ABSOLUTE: entry("The logging directory must be absolute.", "Pass an absolute directory in logging.directory, then retry startup through the host.", false, "logging.directory"),
|
|
8
|
+
SERVICE_INITIALIZATION_FAILED: entry("Component initialization failed.", inspectAction),
|
|
9
|
+
KERNEL_START_CLEANUP_INCOMPLETE: entry("Kernel startup rollback is incomplete.", endpointAction),
|
|
10
|
+
KERNEL_CLEANUP_INCOMPLETE: entry("Kernel resources have not all been released.", endpointAction),
|
|
11
|
+
HOME_UNAVAILABLE: entry("Runtime Home is unavailable.", homeAction),
|
|
12
|
+
HOME_INVALID: entry("Runtime Home must be a valid absolute directory path.", homeAction),
|
|
13
|
+
HOME_UNSUPPORTED: entry("This Runtime Home path or platform is unsupported.", homeAction),
|
|
14
|
+
HOME_NOT_FOUND: entry("The required Runtime Home resource does not exist.", homeAction),
|
|
15
|
+
HOME_NOT_DIRECTORY: entry("The required directory has the wrong resource type.", homeAction),
|
|
16
|
+
HOME_PERMISSION_DENIED: entry("Access to the Runtime Home resource was denied.", "Check permissions for the reported resource and operation under the host account, then retry. Do not reset identities or replace Home to bypass the error."),
|
|
17
|
+
HOME_PATH_TOO_LONG: entry("The Runtime resource exceeds a path limit.", "The host must select and prepare a shorter supported path within the reported limit, then retry. Existing data is not moved automatically."),
|
|
18
|
+
HOME_LIMIT_UNAVAILABLE: entry("Filesystem path limits could not be determined.", "Make the operating system getconf utility available to query PATH_MAX/NAME_MAX, then retry with the same prepared Home."),
|
|
19
|
+
HOME_UNUSABLE: entry("The Runtime Home resource could not be used.", inspectAction),
|
|
20
|
+
IPC_ENDPOINT_INVALID: entry("The IPC endpoint is invalid.", "Pass a valid local IPC endpoint through the host's endpoint option, then retry."),
|
|
21
|
+
IPC_ENDPOINT_UNSUPPORTED: entry("The IPC transport platform is unsupported.", "Use a supported platform and local IPC transport."),
|
|
22
|
+
IPC_ENDPOINT_TOO_LONG: entry("The IPC endpoint exceeds the transport limit.", "Select a shorter Home or endpoint within the reported transport limit, then retry. Existing data is not moved automatically."),
|
|
23
|
+
ENDPOINT_IN_USE: entry("The IPC endpoint already has an owner.", endpointAction),
|
|
24
|
+
EADDRINUSE: entry("The IPC endpoint is already in use.", endpointAction),
|
|
25
|
+
ENDPOINT_PATH_INVALID: entry("The endpoint path contains a different resource type.", "Inspect the reported endpoint and correct the host's endpoint selection. Do not delete an unrelated file."),
|
|
26
|
+
ENDPOINT_OWNER_INVALID: entry("The endpoint ownership record is invalid.", endpointAction),
|
|
27
|
+
ENDPOINT_UNVERIFIABLE: entry("Endpoint ownership could not be verified.", endpointAction),
|
|
28
|
+
ENDPOINT_RECOVERY_IN_PROGRESS: entry("Endpoint recovery is in progress.", "Wait for the owning recovery operation to finish, inspect status, then retry.", true),
|
|
29
|
+
ENOENT: entry("A required startup resource was not found.", "Correct the reported resource selection or prepare the required dependency, then retry."),
|
|
30
|
+
ENOTDIR: entry("A required directory has the wrong resource type.", "Correct the reported directory path to an existing directory, then retry."),
|
|
31
|
+
EISDIR: entry("A required file is a directory.", "Correct the selected file path to the intended regular file, then retry."),
|
|
32
|
+
EACCES: entry("The startup operation was denied access.", "Check the host account's permissions for the reported resource and operation, then retry."),
|
|
33
|
+
EPERM: entry("The operating system denied the startup operation.", "Check the host account's permissions and the reported resource, then retry."),
|
|
34
|
+
EROFS: entry("The startup operation requires a writable filesystem.", "Use an accessible writable resource for the reported operation, then retry."),
|
|
35
|
+
ENAMETOOLONG: entry("The startup resource name exceeds a system limit.", "Select a shorter supported path or endpoint, then retry."),
|
|
36
|
+
ECONNREFUSED: entry("The component is not accepting IPC connections.", "Inspect the target component's lifecycle and logs, start it through its host, then retry.", true),
|
|
37
|
+
SETUP_IN_PROGRESS: entry("A component lifecycle operation is in progress.", "Wait for that operation to finish, then retry.", true),
|
|
38
|
+
SERVICE_INITIALIZATION_CANCELLED: entry("Component initialization was cancelled.", "Check the host cancellation request and cleanup outcome before starting again.", true),
|
|
39
|
+
KERNEL_CONFIGURATION_INVALID: entry("Kernel construction inputs are invalid.", "Pass endpoint and an adapters array to createKernelService. Compose Adapter objects in the host; retired worker/manifest/env options are unsupported."),
|
|
40
|
+
ERR_MODULE_NOT_FOUND: entry("A selected module or one of its dependencies was not found.", "Check the selected module and its installed dependency graph in the host; correct the declaration or install the required package, then retry."),
|
|
41
|
+
MODULE_NOT_FOUND: entry("A selected module or one of its dependencies was not found.", "Check the selected module and its installed dependency graph in the host; correct the declaration or install the required package, then retry."),
|
|
42
|
+
MANIFEST_INVALID: entry("The CLI module manifest is invalid.", "Check the selected manifest.json: version must be 1 and adapters must be valid arrays without duplicate keys."),
|
|
43
|
+
LOCAL_STATE_INVALID: entry("The local state could not be read.", "Inspect the reported file and system cause. Preserve existing identities and configuration; correct the file or access through the host."),
|
|
44
|
+
WRITE_FAILED: entry("A local state update failed.", "Inspect the reported path, operation and system cause; correct access before retrying the host operation."),
|
|
45
|
+
COMPONENT_UNAVAILABLE: entry("The component did not become ready.", "Inspect component status and controlled lifecycle logs. Process liveness alone does not establish Kernel execution readiness.", true),
|
|
46
|
+
SERVICE_PROCESS_EXITED: entry("The service process exited unexpectedly.", "Inspect this startup attempt's controlled diagnostic and lifecycle logs before restarting."),
|
|
47
|
+
SERVICE_NOT_INSTALLED: entry("The component service is not installed.", "Run this component's install command, then start it."),
|
|
48
|
+
NOT_INSTALLED: entry("The component service is not installed.", "Run this component's install command, then start it."),
|
|
49
|
+
SERVICE_DISABLED: entry("The component service is disabled.", "Run this component's install --autostart=true command, then start it."),
|
|
50
|
+
MANAGER_UNAVAILABLE: entry("The native service manager is unavailable.", "Run doctor and inspect the current user's native service manager."),
|
|
51
|
+
ORPHAN_CLEANUP_INCOMPLETE: entry("Previous Kernel resource cleanup is incomplete.", "CLI users: run doctor with the same --home. After confirming all owned orphan tools have stopped, run octo-runtime recover --acknowledge-orphan-cleanup with that Home, then start again. SDK hosts must use the corresponding inspect/acknowledge API; do not remove ownership records."),
|
|
52
|
+
ORPHAN_RECORD_UNSUPPORTED: entry("The stored Kernel ownership format is unsupported.", "Preserve the ownership evidence. Stop and clean up using the version and host that created it before upgrading; do not acknowledge or delete an unknown record.")
|
|
53
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export { STARTUP_CATALOG, type StartupCatalogEntry } from "./startup-catalog.js";
|
|
2
|
+
/** 诊断仅保存生命周期事实;服务实现复用这些数据类型,不在客户端启动或清理服务。 */
|
|
3
|
+
export type ServicePhase = "created" | "initializing" | "ready" | "closing" | "closed" | "failed";
|
|
4
|
+
export interface ServiceCleanupResult {
|
|
5
|
+
readonly complete: boolean;
|
|
6
|
+
readonly errors: readonly {
|
|
7
|
+
resource: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}[];
|
|
10
|
+
readonly pendingResources: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
/** 只接受启动调用方已确认的资源事实;不接受原始配置、环境、stderr 或异常正文。 */
|
|
13
|
+
export interface StartupContext {
|
|
14
|
+
path?: string;
|
|
15
|
+
resource?: string;
|
|
16
|
+
operation?: string;
|
|
17
|
+
configKey?: string;
|
|
18
|
+
endpoint?: string;
|
|
19
|
+
executable?: string;
|
|
20
|
+
module?: string;
|
|
21
|
+
systemCode?: string;
|
|
22
|
+
measured?: number;
|
|
23
|
+
limit?: number;
|
|
24
|
+
unit?: "utf8-bytes" | "utf16-units";
|
|
25
|
+
}
|
|
26
|
+
/** #306 路径诊断兼容投影;所有字段均从共享诊断白名单生成。 */
|
|
27
|
+
export interface StartupPathDiagnostic extends Pick<StartupContext, "path" | "systemCode" | "endpoint" | "measured" | "limit" | "unit"> {
|
|
28
|
+
domain: "startup";
|
|
29
|
+
code: string;
|
|
30
|
+
resource: string;
|
|
31
|
+
operation: string;
|
|
32
|
+
action: string;
|
|
33
|
+
}
|
|
34
|
+
/** CLI 继续提供 #306 的 startup 字段;恢复建议始终来自同一 catalog。 */
|
|
35
|
+
export declare function startupPathDiagnostic(diagnostic: StartupDiagnostic): StartupPathDiagnostic | undefined;
|
|
36
|
+
export interface StartupCause {
|
|
37
|
+
code: string;
|
|
38
|
+
context: Readonly<StartupContext>;
|
|
39
|
+
component?: string;
|
|
40
|
+
phase?: ServicePhase;
|
|
41
|
+
cleanup?: ServiceCleanupResult;
|
|
42
|
+
}
|
|
43
|
+
export interface StartupDiagnostic {
|
|
44
|
+
domain: "startup";
|
|
45
|
+
code: string;
|
|
46
|
+
rootCode: string;
|
|
47
|
+
component: string;
|
|
48
|
+
phase: ServicePhase;
|
|
49
|
+
summary: string;
|
|
50
|
+
explanation: string;
|
|
51
|
+
actions: readonly string[];
|
|
52
|
+
retryable: boolean;
|
|
53
|
+
userActionRequired: boolean;
|
|
54
|
+
context: Readonly<StartupContext>;
|
|
55
|
+
causes: readonly StartupCause[];
|
|
56
|
+
cleanup?: ServiceCleanupResult;
|
|
57
|
+
truncated: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface StartupLocation {
|
|
60
|
+
component: string;
|
|
61
|
+
phase: ServicePhase;
|
|
62
|
+
context?: StartupContext;
|
|
63
|
+
}
|
|
64
|
+
/** 保持原类型/message/code/cause,仅在可扩展错误上增加安全诊断;冻结错误可由调用边界直接投影。 */
|
|
65
|
+
export declare function withStartupContext<T>(error: T, location: StartupLocation, classification?: string): T;
|
|
66
|
+
/** 文本与 JSON 同用确定性规范化:去控制字符,去 URL 认证/query/hash 和显式敏感赋值。 */
|
|
67
|
+
export declare function safeStartupValue(value: string, maximum?: number): string;
|
|
68
|
+
/**
|
|
69
|
+
* 在失败调用边界投影启动事实;不依赖 IPC/Run,不改变原错误、退出码或清理行为。
|
|
70
|
+
* cause/aggregate 按主失败优先有界遍历(16 节点/6 层);循环和原始异常正文均不输出。
|
|
71
|
+
*/
|
|
72
|
+
export declare function describeStartupError(error: unknown, location?: StartupLocation): StartupDiagnostic;
|
|
73
|
+
/** 可读投影只消费已净化的共享结构;SDK 可直接按 rootCode/context 分支。 */
|
|
74
|
+
export declare function formatStartupDiagnostic(diagnostic: StartupDiagnostic): string;
|
|
75
|
+
/** 持久化/JSON 是不可信边界:仅重建码、位置、资源和清理,文案始终重新来自当前 catalog。 */
|
|
76
|
+
export declare function restoreStartupDiagnostic(value: unknown): StartupDiagnostic | undefined;
|
|
77
|
+
/** 仅供启动边界补充已确认的位置事实;cause 保留给本地深度排障,公开输出用 diagnostic。 */
|
|
78
|
+
export declare class StartupError extends Error {
|
|
79
|
+
readonly code: string;
|
|
80
|
+
readonly diagnostic: StartupDiagnostic;
|
|
81
|
+
constructor(code: string, location: StartupLocation, cause?: unknown);
|
|
82
|
+
}
|