@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
package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-lifecycle.js
CHANGED
|
@@ -1,280 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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.instance = ref.kernel_instance_id;
|
|
51
|
-
record.phase = "accepted";
|
|
52
|
-
record.settleAdmission();
|
|
53
|
-
if (terminal)
|
|
54
|
-
this.observe(ref, terminal);
|
|
55
|
-
if (record.reason !== undefined && !terminal && this.#records.get(ref.invocation_id) === record)
|
|
56
|
-
void this.cancel(record, record.reason).catch(() => undefined);
|
|
57
|
-
}
|
|
58
|
-
reconcile(ref, terminal) {
|
|
59
|
-
const record = this.#records.get(ref.invocation_id);
|
|
60
|
-
if (!record ||
|
|
61
|
-
(record.instance && record.instance !== ref.kernel_instance_id) ||
|
|
62
|
-
Object.entries(record.key).some(([field, value]) => Reflect.get(ref, field) !== value))
|
|
63
|
-
return;
|
|
64
|
-
if (record.ref &&
|
|
65
|
-
(record.ref.stream_id !== ref.stream_id || record.ref.protocol !== ref.protocol))
|
|
66
|
-
throw new KernelError("RUN_IDENTITY_MISMATCH");
|
|
67
|
-
if (!record.ref)
|
|
68
|
-
this.accepted(record, ref, terminal);
|
|
69
|
-
else if (terminal)
|
|
70
|
-
this.observe(ref, terminal);
|
|
71
|
-
}
|
|
72
|
-
rejected(record, error) {
|
|
73
|
-
if (record.ref) {
|
|
74
|
-
record.settleAdmission();
|
|
75
|
-
this.interrupted(record, error);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
record.admissionError = error instanceof Error ? error : new KernelError("ACCEPTANCE_UNKNOWN");
|
|
79
|
-
record.observationError = errorCode(error);
|
|
80
|
-
record.phase = "acceptance_unknown";
|
|
81
|
-
record.settleAdmission();
|
|
82
|
-
const rejectedByServer = error instanceof KernelError &&
|
|
83
|
-
error.data !== undefined &&
|
|
84
|
-
!["KERNEL_INSTANCE_CHANGED", "RUN_IDENTITY_MISMATCH"].includes(error.code);
|
|
85
|
-
// 仅未发送或明确拒绝可安全移除;已发送但 ACK 未知时保留身份,后续 drain 只能查询确认。
|
|
86
|
-
if (!record.submitted || rejectedByServer)
|
|
87
|
-
this.#records.delete(record.key.invocation_id);
|
|
88
|
-
}
|
|
89
|
-
observe(ref, frame) {
|
|
90
|
-
const record = this.#records.get(ref.invocation_id);
|
|
91
|
-
if (!record ||
|
|
92
|
-
!record.ref ||
|
|
93
|
-
record.ref.stream_id !== ref.stream_id ||
|
|
94
|
-
record.ref.kernel_instance_id !== ref.kernel_instance_id)
|
|
95
|
-
return;
|
|
96
|
-
record.lastSeq = Math.max(record.lastSeq, frame.seq);
|
|
97
|
-
if (!isHostTerminal(frame))
|
|
98
|
-
return;
|
|
99
|
-
if (frame.kind === "control" &&
|
|
100
|
-
frame.control.type === "state" &&
|
|
101
|
-
frame.control.state === "lost") {
|
|
102
|
-
record.phase = "unobserved";
|
|
103
|
-
record.observationError = "RUN_OUTCOME_UNKNOWN";
|
|
104
|
-
}
|
|
105
|
-
else
|
|
106
|
-
this.#records.delete(ref.invocation_id);
|
|
107
|
-
}
|
|
108
|
-
interrupted(record, error) {
|
|
109
|
-
if (this.#records.get(record.key.invocation_id) !== record || !record.ref)
|
|
110
|
-
return;
|
|
111
|
-
record.phase = "unobserved";
|
|
112
|
-
if (error !== undefined)
|
|
113
|
-
record.observationError = errorCode(error);
|
|
114
|
-
}
|
|
115
|
-
active(id) {
|
|
116
|
-
const record = this.#records.get(id);
|
|
117
|
-
if (!record)
|
|
118
|
-
throw new KernelError("INVOCATION_NOT_TRACKED");
|
|
119
|
-
return record;
|
|
120
|
-
}
|
|
121
|
-
ref(id) {
|
|
122
|
-
const record = this.active(id);
|
|
123
|
-
if (!record.ref)
|
|
124
|
-
throw new KernelError("INVOCATION_NOT_ACCEPTED");
|
|
125
|
-
return record.ref;
|
|
126
|
-
}
|
|
127
|
-
cancel(record, reason = "caller_cancelled") {
|
|
128
|
-
if (record.ref && this.#records.get(record.key.invocation_id) !== record)
|
|
129
|
-
return Promise.resolve({ accepted: false });
|
|
130
|
-
if (record.observationError === "RUN_OUTCOME_UNKNOWN")
|
|
131
|
-
return Promise.reject(new KernelError("RUN_OUTCOME_UNKNOWN"));
|
|
132
|
-
record.reason ??= reason;
|
|
133
|
-
if (record.cancellation === "none")
|
|
134
|
-
record.cancellation = "requested";
|
|
135
|
-
// 取消可能早于接纳 ACK:记住首次原因,等同一执行获得 RunRef 后发出一次控制请求。
|
|
136
|
-
if (!record.ref)
|
|
137
|
-
return record.admitted.then(() => {
|
|
138
|
-
if (!record.ref)
|
|
139
|
-
throw record.admissionError ?? new KernelError("ACCEPTANCE_UNKNOWN");
|
|
140
|
-
return this.cancel(record, reason);
|
|
141
|
-
});
|
|
142
|
-
if (!record.cancelTask) {
|
|
143
|
-
const controller = new AbortController();
|
|
144
|
-
this.#cancelControllers.add(controller);
|
|
145
|
-
record.cancelTask = new Promise((resolve, reject) => {
|
|
146
|
-
this.#cancelQueue.push(async () => {
|
|
147
|
-
try {
|
|
148
|
-
if (this.#closed)
|
|
149
|
-
throw new KernelError("CLIENT_CLOSED");
|
|
150
|
-
if (this.#records.get(record.key.invocation_id) !== record) {
|
|
151
|
-
resolve({ accepted: false });
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
if (record.observationError === "RUN_OUTCOME_UNKNOWN")
|
|
155
|
-
throw new KernelError("RUN_OUTCOME_UNKNOWN");
|
|
156
|
-
const deadline = Math.min(Date.now() + 5000, this.#drainDeadline ?? Infinity);
|
|
157
|
-
if (deadline <= Date.now())
|
|
158
|
-
throw new KernelError("OPERATION_OUTCOME_UNKNOWN");
|
|
159
|
-
resolve(await this.transport.cancel(record.ref, record.reason, deadline, controller.signal));
|
|
160
|
-
}
|
|
161
|
-
catch (error) {
|
|
162
|
-
reject(error instanceof Error ? error : new KernelError("OPERATION_OUTCOME_UNKNOWN"));
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
this.#pumpCancellations();
|
|
166
|
-
})
|
|
167
|
-
.then((result) => {
|
|
168
|
-
record.cancellation = "acknowledged";
|
|
169
|
-
return result;
|
|
170
|
-
})
|
|
171
|
-
.catch((error) => {
|
|
172
|
-
record.cancellation = "unknown";
|
|
173
|
-
record.observationError = errorCode(error);
|
|
174
|
-
throw error;
|
|
175
|
-
})
|
|
176
|
-
.finally(() => this.#cancelControllers.delete(controller));
|
|
177
|
-
// Automatic signal cancellation may outlive its consumer; always consume rejection.
|
|
178
|
-
void record.cancelTask.catch(() => undefined);
|
|
179
|
-
}
|
|
180
|
-
return record.cancelTask;
|
|
181
|
-
}
|
|
182
|
-
#pumpCancellations() {
|
|
183
|
-
while (this.#cancelling < 4 && this.#cancelQueue.length) {
|
|
184
|
-
this.#cancelling++;
|
|
185
|
-
void this.#cancelQueue.shift()().finally(() => {
|
|
186
|
-
this.#cancelling--;
|
|
187
|
-
this.#pumpCancellations();
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
snapshot() {
|
|
192
|
-
return [...this.#records.values()].map((record) => ({
|
|
193
|
-
key: { ...record.key },
|
|
194
|
-
...(record.ref ? { ref: { ...record.ref } } : {}),
|
|
195
|
-
phase: record.phase,
|
|
196
|
-
cancellation: record.cancellation,
|
|
197
|
-
lastSeq: record.lastSeq,
|
|
198
|
-
...(record.observationError ? { observationError: record.observationError } : {})
|
|
199
|
-
}));
|
|
200
|
-
}
|
|
201
|
-
stopAdmission() {
|
|
202
|
-
this.#stopped = true;
|
|
203
|
-
}
|
|
204
|
-
close() {
|
|
205
|
-
this.#closed = true;
|
|
206
|
-
this.stopAdmission();
|
|
207
|
-
for (const controller of this.#cancelControllers)
|
|
208
|
-
controller.abort();
|
|
209
|
-
}
|
|
210
|
-
drain(options) {
|
|
211
|
-
if (!Number.isSafeInteger(options.deadline) || options.deadline - Date.now() > 2_147_483_647)
|
|
212
|
-
throw new KernelError("INVOCATION_DEADLINE_INVALID");
|
|
213
|
-
// 首次关闭锁定绝对期限;重复调用不能延长预算,也不能启动第二轮取消副作用。
|
|
214
|
-
if (this.#draining)
|
|
215
|
-
return this.#draining;
|
|
216
|
-
this.stopAdmission();
|
|
217
|
-
this.#drainDeadline = options.deadline;
|
|
218
|
-
return (this.#draining = this.#drain(options));
|
|
219
|
-
}
|
|
220
|
-
async #drain({ deadline, reason }) {
|
|
221
|
-
const controller = new AbortController();
|
|
222
|
-
const timer = setTimeout(() => {
|
|
223
|
-
controller.abort();
|
|
224
|
-
for (const cancelController of this.#cancelControllers)
|
|
225
|
-
cancelController.abort();
|
|
226
|
-
}, Math.max(0, deadline - Date.now()));
|
|
227
|
-
try {
|
|
228
|
-
while (this.#records.size && !controller.signal.aborted && Date.now() < deadline) {
|
|
229
|
-
const records = [...this.#records.values()];
|
|
230
|
-
// 最多四路查询/控制 IO;只查终态元数据,不新增正文订阅,避免与业务消费者争夺尾流。
|
|
231
|
-
let index = 0;
|
|
232
|
-
await Promise.all(Array.from({ length: Math.min(4, records.length) }, async () => {
|
|
233
|
-
while (index < records.length && !controller.signal.aborted && Date.now() < deadline) {
|
|
234
|
-
const record = records[index++];
|
|
235
|
-
record.reason ??= reason;
|
|
236
|
-
if (record.cancellation === "none")
|
|
237
|
-
record.cancellation = "requested";
|
|
238
|
-
if (!record.instance)
|
|
239
|
-
continue;
|
|
240
|
-
try {
|
|
241
|
-
const info = await this.transport.get(record.key, record.instance, deadline, controller.signal);
|
|
242
|
-
if (!record.ref)
|
|
243
|
-
this.accepted(record, info.ref);
|
|
244
|
-
if (info.terminal)
|
|
245
|
-
this.observe(info.ref, info.terminal);
|
|
246
|
-
if (!this.#records.has(record.key.invocation_id))
|
|
247
|
-
continue;
|
|
248
|
-
// lost 表示执行结果未知,必须留在 unresolved,不能据此重放可能已有副作用的执行。
|
|
249
|
-
if (record.observationError !== "RUN_OUTCOME_UNKNOWN")
|
|
250
|
-
await this.cancel(record, reason);
|
|
251
|
-
}
|
|
252
|
-
catch (error) {
|
|
253
|
-
if (record.observationError !== "RUN_OUTCOME_UNKNOWN")
|
|
254
|
-
record.observationError = errorCode(error);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}));
|
|
258
|
-
if (this.#records.size && Date.now() < deadline) {
|
|
259
|
-
await delay(Math.min(100, deadline - Date.now()), undefined, {
|
|
260
|
-
signal: controller.signal
|
|
261
|
-
}).catch(() => undefined);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return { complete: this.#records.size === 0, unresolved: this.snapshot() };
|
|
265
|
-
}
|
|
266
|
-
finally {
|
|
267
|
-
clearTimeout(timer);
|
|
268
|
-
controller.abort();
|
|
269
|
-
for (const cancelController of this.#cancelControllers)
|
|
270
|
-
cancelController.abort();
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
export function errorCode(error) {
|
|
275
|
-
return error instanceof KernelError
|
|
276
|
-
? error.code
|
|
277
|
-
: error instanceof Error && /^[A-Z][A-Z0-9_]+$/.test(error.message)
|
|
278
|
-
? error.message
|
|
279
|
-
: "INVOCATION_OBSERVATION_FAILED";
|
|
280
|
-
}
|
|
1
|
+
// 兼容旧入口;客户端状态、错误身份和恢复实现由独立包统一持有。
|
|
2
|
+
export { InvocationRegistry, errorCode } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly errors: readonly {
|
|
5
|
-
resource: string;
|
|
6
|
-
code: string;
|
|
7
|
-
}[];
|
|
8
|
-
readonly pendingResources: readonly string[];
|
|
9
|
-
}
|
|
1
|
+
import { type StartupDiagnostic, type StartupLocation } from "./startup-diagnostics.js";
|
|
2
|
+
import type { ServiceCleanupResult } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
3
|
+
export type { ServiceCleanupResult, ServicePhase } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
10
4
|
export interface ServiceLifecycle<S> {
|
|
11
5
|
initialize(options?: {
|
|
12
6
|
signal?: AbortSignal;
|
|
@@ -17,7 +11,8 @@ export interface ServiceLifecycle<S> {
|
|
|
17
11
|
}
|
|
18
12
|
export declare class ServiceInitializationError extends Error {
|
|
19
13
|
readonly cleanup: ServiceCleanupResult;
|
|
20
|
-
|
|
14
|
+
readonly diagnostic: StartupDiagnostic;
|
|
15
|
+
constructor(cause: unknown, cleanup: ServiceCleanupResult, location?: StartupLocation);
|
|
21
16
|
}
|
|
22
17
|
/** 所有阶段共用停止起点,超时只结束等待,不代表底层资源已释放。 */
|
|
23
18
|
export declare function beforeDeadline<T>(operation: Promise<T>, until: number): Promise<T>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { describeStartupError } from "./startup-diagnostics.js";
|
|
1
2
|
export class ServiceInitializationError extends Error {
|
|
2
3
|
cleanup;
|
|
3
|
-
|
|
4
|
+
diagnostic;
|
|
5
|
+
constructor(cause, cleanup, location = { component: "host", phase: "initializing" }) {
|
|
4
6
|
super("SERVICE_INITIALIZATION_FAILED", { cause });
|
|
5
7
|
this.cleanup = cleanup;
|
|
6
8
|
this.name = "ServiceInitializationError";
|
|
9
|
+
this.diagnostic = describeStartupError(this, location);
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
/** 所有阶段共用停止起点,超时只结束等待,不代表底层资源已释放。 */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RuntimeHomeError } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
2
|
+
export { RuntimeHomeError, normalizeRuntimeHome, assertRuntimePath, assertIpcEndpoint, type StartupPathDiagnostic } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
3
|
+
export interface RuntimePath {
|
|
4
|
+
path: string;
|
|
5
|
+
resource: string;
|
|
6
|
+
/** 可选日志只校验名称预算,IO 可用性由既有 best-effort 日志层处理。 */
|
|
7
|
+
optional?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 宿主先准备根目录;SDK 在资源启动前只验证,不 mkdir 根或选择替代目录。
|
|
11
|
+
* access 后用独占短探针确认真实读写权限(Windows access 不能完整判断 ACL),不改变身份/配置。
|
|
12
|
+
* 这是同账号信任边界内的启动检查,不承诺对同账号并发替换目录提供文件系统沙箱。
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateRuntimeHome(input: string, paths?: readonly RuntimePath[]): string;
|
|
15
|
+
/** 只创建已验证 Home 内的子目录,逐级 mkdir;根消失时失败,绝不递归补建根。 */
|
|
16
|
+
export declare function prepareHomeDirectory(home: string, directory: string): void;
|
|
17
|
+
/** 将实际系统 IO 失败投影为启动诊断,保留必要 errno 但不公开系统错误正文。 */
|
|
18
|
+
export declare function runtimePathFailure(error: unknown, path: string, resource: string, operation: string): RuntimeHomeError;
|
|
19
|
+
/** 所有启动资源先列出完整最终文件名,覆盖原子写、恢复归档与轮转锁的额外后缀。 */
|
|
20
|
+
export declare function kernelStartupPaths(endpoint: string, stateDirectory?: string, logDirectory?: string): RuntimePath[];
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { accessSync, closeSync, constants, mkdirSync, opendirSync, openSync, statSync, unlinkSync } from "node:fs";
|
|
4
|
+
import { posix, win32 } from "node:path";
|
|
5
|
+
import { RuntimeHomeError, normalizeRuntimeHome, assertRuntimePath, platformLimits } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
6
|
+
export { RuntimeHomeError, normalizeRuntimeHome, assertRuntimePath, assertIpcEndpoint } from "@mininglamp-oss/octo-runtime-client/internal";
|
|
7
|
+
/**
|
|
8
|
+
* 宿主先准备根目录;SDK 在资源启动前只验证,不 mkdir 根或选择替代目录。
|
|
9
|
+
* access 后用独占短探针确认真实读写权限(Windows access 不能完整判断 ACL),不改变身份/配置。
|
|
10
|
+
* 这是同账号信任边界内的启动检查,不承诺对同账号并发替换目录提供文件系统沙箱。
|
|
11
|
+
*/
|
|
12
|
+
export function validateRuntimeHome(input, paths = []) {
|
|
13
|
+
const home = normalizeRuntimeHome(input);
|
|
14
|
+
let operation = "stat";
|
|
15
|
+
let affected = home;
|
|
16
|
+
let resource = "home";
|
|
17
|
+
try {
|
|
18
|
+
assertRuntimePath(home, "home");
|
|
19
|
+
if (!statSync(home).isDirectory())
|
|
20
|
+
throw new RuntimeHomeError({
|
|
21
|
+
code: "HOME_NOT_DIRECTORY",
|
|
22
|
+
path: home,
|
|
23
|
+
resource: "home",
|
|
24
|
+
operation
|
|
25
|
+
});
|
|
26
|
+
operation = "filesystem-limits";
|
|
27
|
+
const cache = new Map();
|
|
28
|
+
const filesystemLimits = (path) => {
|
|
29
|
+
if (process.platform === "win32")
|
|
30
|
+
return platformLimits(process.platform);
|
|
31
|
+
// 日志/状态可由高级宿主选择在另一文件系统;不能把 Home 所在卷的预算套给它。
|
|
32
|
+
let directory = path;
|
|
33
|
+
for (;;) {
|
|
34
|
+
try {
|
|
35
|
+
if (statSync(directory).isDirectory())
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const code = error.code;
|
|
40
|
+
// 子路径缺失/被普通文件阻断时仍可查询最近目录;其他 IO 失败由调用方按资源必要性处理。
|
|
41
|
+
if (!["ENOENT", "ENOTDIR"].includes(code ?? ""))
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
const parent = posix.dirname(directory);
|
|
45
|
+
if (parent === directory)
|
|
46
|
+
throw new Error("PATH_LIMIT_UNAVAILABLE");
|
|
47
|
+
directory = parent;
|
|
48
|
+
}
|
|
49
|
+
const cached = cache.get(directory);
|
|
50
|
+
if (cached)
|
|
51
|
+
return cached;
|
|
52
|
+
const query = (name) => {
|
|
53
|
+
operation = "getconf";
|
|
54
|
+
const value = Number(
|
|
55
|
+
// 使用 OS 工具的固定位置;宿主可能为 Provider 注入受限 PATH,不能据此选择查询程序。
|
|
56
|
+
execFileSync("/usr/bin/getconf", [name, directory], {
|
|
57
|
+
encoding: "utf8",
|
|
58
|
+
timeout: 1000,
|
|
59
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
60
|
+
}).trim());
|
|
61
|
+
if (!Number.isSafeInteger(value) || value < 1)
|
|
62
|
+
throw new Error("PATH_LIMIT_UNAVAILABLE");
|
|
63
|
+
return value;
|
|
64
|
+
};
|
|
65
|
+
const limits = { path: query("PATH_MAX") - 1, name: query("NAME_MAX") };
|
|
66
|
+
cache.set(directory, limits);
|
|
67
|
+
return limits;
|
|
68
|
+
};
|
|
69
|
+
const limits = filesystemLimits(home);
|
|
70
|
+
for (const entry of [{ path: home, resource: "home", optional: false }, ...paths]) {
|
|
71
|
+
affected = entry.path;
|
|
72
|
+
resource = entry.resource;
|
|
73
|
+
normalizeRuntimeHome(entry.path, process.platform, entry.resource);
|
|
74
|
+
assertRuntimePath(entry.path, entry.resource);
|
|
75
|
+
operation = "filesystem-limits";
|
|
76
|
+
let observed;
|
|
77
|
+
try {
|
|
78
|
+
observed = filesystemLimits(entry.path);
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
// 可选日志的 stat/getconf 失败(循环链接、坏盘等)仍归日志层 best-effort 隔离,不能枚举少数 errno。
|
|
82
|
+
// 前面的输入/静态长度检查不在此隔离范围;Home 和状态等必需资源仍传播原始 IO 失败。
|
|
83
|
+
if (!entry.optional)
|
|
84
|
+
throw error;
|
|
85
|
+
}
|
|
86
|
+
if (observed)
|
|
87
|
+
assertRuntimePath(entry.path, entry.resource, process.platform, observed);
|
|
88
|
+
}
|
|
89
|
+
affected = home;
|
|
90
|
+
resource = "home";
|
|
91
|
+
operation = "access";
|
|
92
|
+
accessSync(home, constants.R_OK | constants.W_OK | constants.X_OK);
|
|
93
|
+
operation = "read-directory";
|
|
94
|
+
opendirSync(home).closeSync();
|
|
95
|
+
operation = "write-probe";
|
|
96
|
+
const probe = (process.platform === "win32" ? win32 : posix).join(home, `.octo-home-${randomUUID()}`);
|
|
97
|
+
assertRuntimePath(probe, "home-probe", process.platform, limits);
|
|
98
|
+
affected = probe;
|
|
99
|
+
const fd = openSync(probe, "wx", 0o600);
|
|
100
|
+
try {
|
|
101
|
+
closeSync(fd);
|
|
102
|
+
}
|
|
103
|
+
finally {
|
|
104
|
+
unlinkSync(probe);
|
|
105
|
+
}
|
|
106
|
+
return home;
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
if (error instanceof RuntimeHomeError)
|
|
110
|
+
throw error;
|
|
111
|
+
throw runtimePathFailure(error, affected, resource, operation);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/** 只创建已验证 Home 内的子目录,逐级 mkdir;根消失时失败,绝不递归补建根。 */
|
|
115
|
+
export function prepareHomeDirectory(home, directory) {
|
|
116
|
+
const api = process.platform === "win32" ? win32 : posix;
|
|
117
|
+
const child = api.relative(home, directory);
|
|
118
|
+
if (!child || child.startsWith(`..${api.sep}`) || child === ".." || api.isAbsolute(child))
|
|
119
|
+
return;
|
|
120
|
+
let current = home;
|
|
121
|
+
for (const part of child.split(api.sep)) {
|
|
122
|
+
current = api.join(current, part);
|
|
123
|
+
try {
|
|
124
|
+
mkdirSync(current, { mode: 0o700 });
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
if (error.code === "EEXIST" && statSync(current).isDirectory())
|
|
128
|
+
continue;
|
|
129
|
+
throw runtimePathFailure(error, current, "runtime-directory", "mkdir");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/** 将实际系统 IO 失败投影为启动诊断,保留必要 errno 但不公开系统错误正文。 */
|
|
134
|
+
export function runtimePathFailure(error, path, resource, operation) {
|
|
135
|
+
const raw = error instanceof Error && "code" in error ? error.code : undefined;
|
|
136
|
+
const systemCode = typeof raw === "string" && /^[A-Z][A-Z0-9_]+$/.test(raw) ? raw : undefined;
|
|
137
|
+
const code = operation === "getconf"
|
|
138
|
+
? "HOME_LIMIT_UNAVAILABLE"
|
|
139
|
+
: systemCode === "ENOENT"
|
|
140
|
+
? "HOME_NOT_FOUND"
|
|
141
|
+
: systemCode === "ENOTDIR"
|
|
142
|
+
? "HOME_NOT_DIRECTORY"
|
|
143
|
+
: ["EACCES", "EPERM", "EROFS"].includes(systemCode ?? "")
|
|
144
|
+
? "HOME_PERMISSION_DENIED"
|
|
145
|
+
: systemCode === "ENAMETOOLONG"
|
|
146
|
+
? "HOME_PATH_TOO_LONG"
|
|
147
|
+
: operation === "filesystem-limits"
|
|
148
|
+
? "HOME_LIMIT_UNAVAILABLE"
|
|
149
|
+
: "HOME_UNUSABLE";
|
|
150
|
+
return new RuntimeHomeError({
|
|
151
|
+
code,
|
|
152
|
+
path,
|
|
153
|
+
resource,
|
|
154
|
+
operation,
|
|
155
|
+
...(systemCode ? { systemCode } : {})
|
|
156
|
+
}, error);
|
|
157
|
+
}
|
|
158
|
+
/** 所有启动资源先列出完整最终文件名,覆盖原子写、恢复归档与轮转锁的额外后缀。 */
|
|
159
|
+
export function kernelStartupPaths(endpoint, stateDirectory, logDirectory) {
|
|
160
|
+
const paths = [];
|
|
161
|
+
if (process.platform !== "win32")
|
|
162
|
+
paths.push({ path: `${endpoint}.owner.recovery`, resource: "endpoint-ownership" });
|
|
163
|
+
const statePath = stateDirectory
|
|
164
|
+
? (process.platform === "win32" ? win32 : posix).join(stateDirectory, "kernel-invocations.json")
|
|
165
|
+
: process.platform !== "win32"
|
|
166
|
+
? `${endpoint}.runs`
|
|
167
|
+
: undefined;
|
|
168
|
+
if (statePath)
|
|
169
|
+
paths.push({
|
|
170
|
+
path: `${statePath}.acknowledged.${"0".repeat(36)}.json`,
|
|
171
|
+
resource: "kernel-state"
|
|
172
|
+
});
|
|
173
|
+
if (logDirectory)
|
|
174
|
+
paths.push({
|
|
175
|
+
path: (process.platform === "win32" ? win32 : posix).join(logDirectory, "kernel-status-20000101T00.log.lock"),
|
|
176
|
+
resource: "kernel-log",
|
|
177
|
+
optional: true
|
|
178
|
+
});
|
|
179
|
+
return paths;
|
|
180
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { assertStartupLogging } from "./startup-logging.js";
|
|
1
2
|
import net from "node:net";
|
|
2
3
|
import { randomUUID } from "node:crypto";
|
|
3
|
-
import { chmod,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { chmod, rm } from "node:fs/promises";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { assertIpcEndpoint, runtimePathFailure } from "./runtime-home.js";
|
|
7
|
+
import { readBoundedLines, RuntimeLogging } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
6
8
|
import { assertHostRunReceipt, createInputInvoke, contextItem, INVOKE_REQUEST_MAX_BYTES, HOST_RPC_MAX_LINE_BYTES, resolveStreamLimitPolicy } from "@mininglamp-oss/octo-runtime-protocol";
|
|
7
9
|
import { HostRunService } from "./host-run-service.js";
|
|
8
10
|
import { AgentExecutor } from "@mininglamp-oss/octo-runtime-executor-core";
|
|
9
11
|
import { beforeDeadline } from "./lifecycle.js";
|
|
12
|
+
import { withStartupContext } from "./startup-diagnostics.js";
|
|
10
13
|
import { probeOptions } from "./execution-source.js";
|
|
11
14
|
import { acquireEndpoint } from "./endpoint.js";
|
|
12
15
|
import { InvocationManifest } from "./invocation-manifest.js";
|
|
@@ -73,7 +76,8 @@ function validateParams(method, params) {
|
|
|
73
76
|
* 启动失败也执行回收;close 失败会保留所有权证据,客户端断开不等同于 owner 关闭。
|
|
74
77
|
*/
|
|
75
78
|
export async function startKernelServer(options, signal) {
|
|
76
|
-
|
|
79
|
+
assertIpcEndpoint(options.endpoint);
|
|
80
|
+
assertStartupLogging(options.logging, { component: "executor-kernel", phase: "initializing" });
|
|
77
81
|
const instance = randomUUID();
|
|
78
82
|
const logging = new RuntimeLogging(options.logging);
|
|
79
83
|
let manifest;
|
|
@@ -81,7 +85,7 @@ export async function startKernelServer(options, signal) {
|
|
|
81
85
|
let ready = false;
|
|
82
86
|
// 每轮只读取一次宿主配置;复制后冻结自有快照,不冻结宿主持有的原对象。
|
|
83
87
|
const configure = (input) => {
|
|
84
|
-
const type = contextItem(input.
|
|
88
|
+
const type = contextItem(input.agentEnv, "octo.execution", "adapter")?.payload.type;
|
|
85
89
|
const config = probeOptions((options.configurations?.(typeof input.runMetadata?.runtimeId === "string" ? input.runMetadata.runtimeId : undefined) ?? options.adapterConfigurations)?.[typeof type === "string" ? type : "codex"]);
|
|
86
90
|
return (config &&
|
|
87
91
|
Object.freeze({
|
|
@@ -104,10 +108,11 @@ export async function startKernelServer(options, signal) {
|
|
|
104
108
|
let listening = false;
|
|
105
109
|
let releaseEndpoint;
|
|
106
110
|
const status = () => ({
|
|
107
|
-
ipc_version:
|
|
111
|
+
ipc_version: 2,
|
|
108
112
|
kernel_instance_id: instance,
|
|
109
113
|
pid: process.pid,
|
|
110
|
-
execution_ready: !closing && ready
|
|
114
|
+
execution_ready: !closing && ready,
|
|
115
|
+
service_processes: [...executor.processes()]
|
|
111
116
|
});
|
|
112
117
|
const snapshot = (key, expected) => {
|
|
113
118
|
if (expected !== undefined && expected !== instance)
|
|
@@ -185,11 +190,14 @@ export async function startKernelServer(options, signal) {
|
|
|
185
190
|
const configuredInput = config
|
|
186
191
|
? {
|
|
187
192
|
...input,
|
|
188
|
-
|
|
189
|
-
...input.
|
|
190
|
-
|
|
191
|
-
...input.agentConfig
|
|
192
|
-
|
|
193
|
+
agentEnv: {
|
|
194
|
+
...input.agentEnv,
|
|
195
|
+
agentConfig: {
|
|
196
|
+
...input.agentEnv.agentConfig,
|
|
197
|
+
providerOptions: {
|
|
198
|
+
...input.agentEnv.agentConfig?.providerOptions,
|
|
199
|
+
...config.providerOptions
|
|
200
|
+
}
|
|
193
201
|
}
|
|
194
202
|
}
|
|
195
203
|
}
|
|
@@ -382,14 +390,18 @@ export async function startKernelServer(options, signal) {
|
|
|
382
390
|
throw new AggregateError(errors, "KERNEL_CLEANUP_INCOMPLETE");
|
|
383
391
|
}
|
|
384
392
|
};
|
|
393
|
+
let startupContext = { operation: "register-adapters", configKey: "adapters" };
|
|
385
394
|
try {
|
|
386
395
|
signal?.throwIfAborted();
|
|
387
396
|
for (const adapter of options.adapters) {
|
|
388
397
|
executor.register(adapter);
|
|
389
398
|
logging.kernel("info", "adapter.registered", { adapter_type: adapter.metadata.type });
|
|
390
399
|
}
|
|
391
|
-
|
|
392
|
-
|
|
400
|
+
startupContext = {
|
|
401
|
+
resource: "ipc-endpoint",
|
|
402
|
+
endpoint: options.endpoint,
|
|
403
|
+
operation: "acquire-endpoint"
|
|
404
|
+
};
|
|
393
405
|
signal?.throwIfAborted();
|
|
394
406
|
releaseEndpoint = await acquireEndpoint(options.endpoint);
|
|
395
407
|
signal?.throwIfAborted();
|
|
@@ -399,10 +411,12 @@ export async function startKernelServer(options, signal) {
|
|
|
399
411
|
? `${options.endpoint}.runs`
|
|
400
412
|
: undefined;
|
|
401
413
|
if (statePath) {
|
|
414
|
+
startupContext = { resource: "kernel-state", path: statePath, operation: "open-manifest" };
|
|
402
415
|
manifest = (await InvocationManifest.open(statePath)).manifest;
|
|
403
416
|
await manifest.markNativeOwner();
|
|
404
417
|
}
|
|
405
418
|
signal?.throwIfAborted();
|
|
419
|
+
startupContext = { resource: "ipc-endpoint", endpoint: options.endpoint, operation: "listen" };
|
|
406
420
|
await new Promise((resolve, reject) => {
|
|
407
421
|
server.once("error", reject);
|
|
408
422
|
server.listen(options.endpoint, () => {
|
|
@@ -417,7 +431,19 @@ export async function startKernelServer(options, signal) {
|
|
|
417
431
|
ready = true;
|
|
418
432
|
logging.kernel("info", "kernel.ready", { pid: process.pid });
|
|
419
433
|
}
|
|
420
|
-
catch (
|
|
434
|
+
catch (cause) {
|
|
435
|
+
const io = cause;
|
|
436
|
+
const error = startupContext.resource &&
|
|
437
|
+
["ipc-endpoint", "kernel-state"].includes(startupContext.resource) &&
|
|
438
|
+
["ENOENT", "ENOTDIR", "EACCES", "EPERM", "EROFS", "ENAMETOOLONG"].includes(io?.code ?? "")
|
|
439
|
+
? runtimePathFailure(cause, typeof io.path === "string" ? io.path : (startupContext.path ?? options.endpoint), startupContext.resource, typeof io.syscall === "string" ? io.syscall : "listen")
|
|
440
|
+
: cause;
|
|
441
|
+
// 附加已确认的启动步骤,不改变原错误类型、公共码或底层 cause。
|
|
442
|
+
withStartupContext(error, {
|
|
443
|
+
component: "executor-kernel",
|
|
444
|
+
phase: "initializing",
|
|
445
|
+
context: startupContext
|
|
446
|
+
});
|
|
421
447
|
logging.kernel("error", "kernel.start_failed", { code: safeCode(error) });
|
|
422
448
|
try {
|
|
423
449
|
await teardown();
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type KernelServerOptions } from "./server.js";
|
|
2
2
|
import type { KernelClient, KernelStatus } from "./types.js";
|
|
3
3
|
import { type ServiceLifecycle, type ServicePhase } from "./lifecycle.js";
|
|
4
|
-
export
|
|
4
|
+
export interface KernelServiceOptions extends KernelServerOptions {
|
|
5
|
+
/** 宿主选择并预先准备的绝对目录;SDK 不选择默认 Home 或创建根。 */
|
|
6
|
+
home: string;
|
|
7
|
+
}
|
|
5
8
|
export interface KernelServiceStatus {
|
|
6
9
|
phase: ServicePhase;
|
|
7
10
|
endpoint: string;
|
|
@@ -12,7 +15,7 @@ export interface KernelService extends ServiceLifecycle<KernelServiceStatus> {
|
|
|
12
15
|
readonly client: KernelClient;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* 宿主传入已存在的 Home、本地 RPC 地址和已装配的 Adapter;initialize 校验后启动并开放 client。
|
|
16
19
|
* socket、Core 和本服务创建的日志由 close 回收;宿主依赖仍由宿主拥有。
|
|
17
20
|
* 即使与调用方同进程,client 也始终通过 RPC,不能绕过 Run 接纳和观察管理。
|
|
18
21
|
*/
|