@mininglamp-oss/octo-runtime 1.1.5 → 1.1.7
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/apps/cli/dist/adapter-configurations.d.ts +4 -0
- package/apps/cli/dist/adapter-configurations.js +102 -0
- package/apps/cli/dist/build-info.json +2 -2
- package/apps/cli/dist/command-tree.js +1 -1
- package/apps/cli/dist/logs.js +8 -4
- package/apps/cli/dist/main.js +11 -5
- package/apps/cli/dist/output.js +5 -0
- package/apps/cli/dist/playboard.js +3 -2
- package/dist/public/dsh.d.ts +1 -1
- package/dist/public/dsh.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +17 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +20 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +32 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +161 -26
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +8 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +32 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-DYOJCNWF.js → chunk-CFKMMCO6.js} +6 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-UOQRXV3Q.js → chunk-LO34KB7D.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/chunk-V5W6ZTYC.js +151 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.js +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +17 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +8 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/launch.d.ts +2 -1
- 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 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +8 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +10 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/compatibility.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/compatibility.js +12 -40
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +22 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +422 -135
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +6 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +19 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +15 -8
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +12 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +91 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log-worker.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +13 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.d.ts +9 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +40 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/dist/index.d.ts +20 -2
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-zcode-gui/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapter-configurations.js +102 -0
- 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.js +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/logs.js +8 -4
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +11 -5
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +24 -24
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/runner.js +102 -52
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/dist/windows-task.js +8 -3
- package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +4 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +9 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.d.ts +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/model-input.js +9 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +47 -4
- package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/client.js +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/invocation-manifest.js +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/process.js +79 -5
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +22 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/service.js +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.d.ts +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/submission-error.js +12 -6
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.d.ts +4 -2
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/supervisor.js +131 -43
- package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/config-schema.json +8 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.d.ts +17 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/context-gap.js +22 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/history-context.js +27 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/im-channel.js +462 -228
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.d.ts +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/rules-context.js +42 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/session-store.d.ts +5 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.d.ts +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/application/stable-context.js +28 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/contracts.d.ts +16 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.d.ts +4 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifact-policy.js +12 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.d.ts +1 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/artifacts.js +7 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.d.ts +15 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/identity.js +36 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/scheduler.js +10 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.d.ts +5 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/dispatcher.js +39 -22
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.d.ts +29 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/model-wait.js +171 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.d.ts +4 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/execution/task.js +48 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/extra.js +14 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/lifecycle/configuration.js +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.d.ts +7 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/run-projector.js +265 -38
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/cards.js +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/client.js +19 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.d.ts +3 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/conversations.js +4 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.d.ts +0 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/errors.js +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/files.js +8 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.d.ts +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/api/messages.js +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.d.ts +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +27 -15
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +17 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +217 -50
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connection-error.js +2 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.d.ts +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +41 -12
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.d.ts +2 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/contexts.js +53 -82
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.d.ts +12 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-content.js +133 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.d.ts +21 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/history-messages.js +76 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.d.ts +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/mentions.js +0 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.d.ts +16 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-identities.js +74 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-time.js +19 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.d.ts +7 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/message-trigger.js +90 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/reasoning-frame.js +39 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/retry-after.js +60 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +20 -8
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/package.json +6 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/application/im-channel.js +10 -2
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/extra.js +14 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/dist/transport/channel.js +2 -3
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-wecom/package.json +5 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/package.json +2 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.d.ts +3 -2
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/context-loader.js +11 -4
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/dist/endpoint.js +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +8 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +9 -1
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +18 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +3 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +14 -0
- package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +680 -0
- package/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +17 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/package.json +33 -27
- package/packages/octo-runtime-extra-channel-gateway/config-schema.json +8 -1
- package/packages/octo-runtime-protocol/schema/protocol.schema.json +57 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/chunk-G5PWGRL5.js +0 -209
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.d.ts +0 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/desktop-entry.js +0 -16
|
@@ -159,6 +159,20 @@
|
|
|
159
159
|
"type": "integer",
|
|
160
160
|
"minimum": 0
|
|
161
161
|
},
|
|
162
|
+
"recovery": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["trigger", "stage", "code", "occurred_at"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"trigger": { "enum": ["exit", "error", "heartbeat", "ipc"] },
|
|
168
|
+
"stage": { "enum": ["cleanup", "manifest", "starting", "backoff"] },
|
|
169
|
+
"code": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,95}$" },
|
|
170
|
+
"occurred_at": { "type": "string", "format": "date-time" },
|
|
171
|
+
"retry_at": { "type": "string", "format": "date-time" },
|
|
172
|
+
"exit_code": { "type": "integer" },
|
|
173
|
+
"signal": { "type": "string", "pattern": "^SIG[A-Z0-9]+$" }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
162
176
|
"state": {
|
|
163
177
|
"enum": ["starting", "ready", "recovering", "stopped", "exhausted"]
|
|
164
178
|
}
|
|
@@ -923,7 +937,7 @@
|
|
|
923
937
|
"ContextItem": {
|
|
924
938
|
"title": "ContextItem",
|
|
925
939
|
"description": "Open Context item. Built-in types retain their payload contracts; unknown optional types are preserved and ignored by unsupported consumers.",
|
|
926
|
-
"tsType": "{ namespace: string; name: string; guidance?: string; payload: Record<string, unknown> }",
|
|
940
|
+
"tsType": "{ namespace: string; name: string; guidance?: string; data_format?: 'text'; payload: Record<string, unknown> }",
|
|
927
941
|
"type": "object",
|
|
928
942
|
"additionalProperties": false,
|
|
929
943
|
"required": ["namespace", "name", "payload"],
|
|
@@ -946,9 +960,27 @@
|
|
|
946
960
|
"guidance": {
|
|
947
961
|
"type": "string",
|
|
948
962
|
"description": "Producer-authored context guidance, rendered as ordinary model input."
|
|
963
|
+
},
|
|
964
|
+
"data_format": {
|
|
965
|
+
"const": "text",
|
|
966
|
+
"description": "Explicit extra.* text rendering; payload must contain only a text string. Omit for complete JSON rendering."
|
|
949
967
|
}
|
|
950
968
|
},
|
|
951
969
|
"allOf": [
|
|
970
|
+
{
|
|
971
|
+
"if": { "required": ["data_format"] },
|
|
972
|
+
"then": {
|
|
973
|
+
"properties": {
|
|
974
|
+
"namespace": { "pattern": "^extra\\." },
|
|
975
|
+
"payload": {
|
|
976
|
+
"type": "object",
|
|
977
|
+
"required": ["text"],
|
|
978
|
+
"additionalProperties": false,
|
|
979
|
+
"properties": { "text": { "type": "string" } }
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
},
|
|
952
984
|
{
|
|
953
985
|
"if": {
|
|
954
986
|
"properties": {
|
|
@@ -3462,6 +3494,18 @@
|
|
|
3462
3494
|
"description": "Long-lived Agent Worker session identifier for this execution context.",
|
|
3463
3495
|
"type": "string"
|
|
3464
3496
|
},
|
|
3497
|
+
"sessionName": {
|
|
3498
|
+
"description": "Caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; independent of business identity and opaque provider recovery handles.",
|
|
3499
|
+
"type": "string",
|
|
3500
|
+
"minLength": 1,
|
|
3501
|
+
"maxLength": 256,
|
|
3502
|
+
"not": {
|
|
3503
|
+
"anyOf": [
|
|
3504
|
+
{ "pattern": "[\\x00-\\x1f\\x7f-\\x9f]" },
|
|
3505
|
+
{ "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$" }
|
|
3506
|
+
]
|
|
3507
|
+
}
|
|
3508
|
+
},
|
|
3465
3509
|
"runId": {
|
|
3466
3510
|
"description": "Run identifier for this execution.",
|
|
3467
3511
|
"type": "string"
|
|
@@ -4107,6 +4151,18 @@
|
|
|
4107
4151
|
"additionalProperties": true,
|
|
4108
4152
|
"required": ["inputs", "contexts"],
|
|
4109
4153
|
"properties": {
|
|
4154
|
+
"sessionName": {
|
|
4155
|
+
"description": "Optional caller-owned nonblank display name of 1-256 Unicode code points, without C0/DEL/C1 controls; Core supplies a random UUID default without business naming policy.",
|
|
4156
|
+
"type": "string",
|
|
4157
|
+
"minLength": 1,
|
|
4158
|
+
"maxLength": 256,
|
|
4159
|
+
"not": {
|
|
4160
|
+
"anyOf": [
|
|
4161
|
+
{ "pattern": "[\\x00-\\x1f\\x7f-\\x9f]" },
|
|
4162
|
+
{ "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$" }
|
|
4163
|
+
]
|
|
4164
|
+
}
|
|
4165
|
+
},
|
|
4110
4166
|
"sessionId": {
|
|
4111
4167
|
"type": "string",
|
|
4112
4168
|
"minLength": 1
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DSH_VERSION,
|
|
3
|
-
DshError,
|
|
4
|
-
dshError,
|
|
5
|
-
nativeCode
|
|
6
|
-
} from "./chunk-DYOJCNWF.js";
|
|
7
|
-
|
|
8
|
-
// packages/octo-runtime-adapter-dsh/dist/launch.js
|
|
9
|
-
import { spawn } from "node:child_process";
|
|
10
|
-
import { constants } from "node:fs";
|
|
11
|
-
import { access, stat } from "node:fs/promises";
|
|
12
|
-
import { delimiter, isAbsolute, join, resolve } from "node:path";
|
|
13
|
-
import { fileURLToPath } from "node:url";
|
|
14
|
-
import { createProcessCleanup } from "@mininglamp-oss/octo-runtime-adapter-sdk/process-cleanup";
|
|
15
|
-
import { processEnvironmentValue } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
16
|
-
var VERSION_PROBE_TIMEOUT_MS = 1e4;
|
|
17
|
-
var VERSION_PROBE_MAX_BYTES = 4096;
|
|
18
|
-
var MAX_LAUNCH_ARGS = 64;
|
|
19
|
-
var MAX_LAUNCH_ARG_BYTES = 4096;
|
|
20
|
-
var MAX_TIMEOUT_MS = 864e5;
|
|
21
|
-
var MAX_OPTION_STRING_LENGTH = 4096;
|
|
22
|
-
var DSH_PROCESS_GRACE_MS = 1e3;
|
|
23
|
-
async function resolveDshLaunch(options, env, signal) {
|
|
24
|
-
if (options.args !== void 0 && options.command === void 0)
|
|
25
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
26
|
-
if (options.command !== void 0 && options.desktopPath !== void 0)
|
|
27
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
28
|
-
let command;
|
|
29
|
-
let args = [];
|
|
30
|
-
let dshBin;
|
|
31
|
-
if (options.dshBin !== void 0) {
|
|
32
|
-
if (options.command !== void 0 || options.args !== void 0 || options.desktopPath !== void 0)
|
|
33
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
34
|
-
dshBin = resolve(stringOption(options, "dshBin", ""));
|
|
35
|
-
try {
|
|
36
|
-
if (!(await stat(dshBin)).isFile())
|
|
37
|
-
throw new Error("not a file");
|
|
38
|
-
} catch {
|
|
39
|
-
throw new DshError("DSH_EXECUTABLE_NOT_FOUND");
|
|
40
|
-
}
|
|
41
|
-
command = process.execPath;
|
|
42
|
-
args = [dshBin];
|
|
43
|
-
} else if (options.command !== void 0) {
|
|
44
|
-
if (typeof options.command !== "string" || !options.command.trim())
|
|
45
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
46
|
-
command = await executable(options.command, env);
|
|
47
|
-
if (!command)
|
|
48
|
-
throw new DshError("DSH_EXECUTABLE_NOT_FOUND");
|
|
49
|
-
if (options.args !== void 0) {
|
|
50
|
-
if (!Array.isArray(options.args) || options.args.length > MAX_LAUNCH_ARGS || options.args.some((value) => typeof value !== "string" || value.length > MAX_LAUNCH_ARG_BYTES || value.includes("\0") || Buffer.byteLength(value) > MAX_LAUNCH_ARG_BYTES))
|
|
51
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
52
|
-
args = options.args.map((value) => value);
|
|
53
|
-
}
|
|
54
|
-
} else if (options.desktopPath === void 0) {
|
|
55
|
-
command = await executable("dsh", env);
|
|
56
|
-
}
|
|
57
|
-
if (!command) {
|
|
58
|
-
const desktop = options.desktopPath ?? (process.platform === "darwin" ? "/Applications/DeepSeek Harness.app" : void 0);
|
|
59
|
-
if (typeof desktop !== "string" || !isAbsolute(desktop))
|
|
60
|
-
throw new DshError("DSH_EXECUTABLE_NOT_FOUND");
|
|
61
|
-
if (process.platform !== "darwin")
|
|
62
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
63
|
-
command = join(desktop, "Contents/MacOS/DeepSeek Harness");
|
|
64
|
-
const entry = join(desktop, "Contents/Resources/app.asar/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js");
|
|
65
|
-
try {
|
|
66
|
-
await access(command);
|
|
67
|
-
await access(join(desktop, "Contents/Resources/app.asar"));
|
|
68
|
-
} catch {
|
|
69
|
-
throw new DshError("DSH_EXECUTABLE_NOT_FOUND");
|
|
70
|
-
}
|
|
71
|
-
args = [entry];
|
|
72
|
-
dshBin = fileURLToPath(new URL("./desktop-entry.js", import.meta.url));
|
|
73
|
-
env = {
|
|
74
|
-
...env,
|
|
75
|
-
ELECTRON_RUN_AS_NODE: "1",
|
|
76
|
-
OCTO_DSH_DESKTOP_BINARY: command,
|
|
77
|
-
OCTO_DSH_DESKTOP_ENTRY: entry
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
if (process.platform === "win32" && /\.(cmd|bat)$/i.test(command))
|
|
81
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
82
|
-
if (!dshBin) {
|
|
83
|
-
if (args.length === 0)
|
|
84
|
-
dshBin = command;
|
|
85
|
-
else if (args.length === 1 && (process.platform === "win32" ? command.toLowerCase() === process.execPath.toLowerCase() : command === process.execPath))
|
|
86
|
-
dshBin = resolve(args[0]);
|
|
87
|
-
else
|
|
88
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
89
|
-
}
|
|
90
|
-
const launch = { command, args, env, dshBin };
|
|
91
|
-
await checkVersion(launch, signal);
|
|
92
|
-
return launch;
|
|
93
|
-
}
|
|
94
|
-
async function executable(command, env) {
|
|
95
|
-
const candidates = isAbsolute(command) || /[/\\]/.test(command) ? [resolve(command)] : (processEnvironmentValue(env, "PATH") ?? "").split(delimiter).flatMap((directory) => {
|
|
96
|
-
const extensions = process.platform === "win32" && !/\.[^\\/]+$/.test(command) ? [
|
|
97
|
-
"",
|
|
98
|
-
...(processEnvironmentValue(env, "PATHEXT") ?? ".EXE;.CMD;.BAT;.COM").split(";")
|
|
99
|
-
] : [""];
|
|
100
|
-
return extensions.map((extension) => resolve(directory, command + extension));
|
|
101
|
-
});
|
|
102
|
-
for (const candidate of candidates) {
|
|
103
|
-
try {
|
|
104
|
-
await access(candidate, constants.X_OK);
|
|
105
|
-
if ((await stat(candidate)).isFile())
|
|
106
|
-
return candidate;
|
|
107
|
-
} catch {
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return void 0;
|
|
111
|
-
}
|
|
112
|
-
async function checkVersion(launch, signal) {
|
|
113
|
-
if (signal?.aborted)
|
|
114
|
-
throw new DshError("DSH_START_FAILED", { phase: "version" });
|
|
115
|
-
const child = spawn(launch.command, [...launch.args, "--version"], {
|
|
116
|
-
env: launch.env,
|
|
117
|
-
detached: process.platform !== "win32",
|
|
118
|
-
windowsHide: true,
|
|
119
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
120
|
-
});
|
|
121
|
-
const cleanup = createProcessCleanup(child, {
|
|
122
|
-
processGroup: process.platform !== "win32",
|
|
123
|
-
processTree: true,
|
|
124
|
-
termGraceMs: DSH_PROCESS_GRACE_MS,
|
|
125
|
-
killGraceMs: DSH_PROCESS_GRACE_MS
|
|
126
|
-
});
|
|
127
|
-
let output = "";
|
|
128
|
-
let bytes = 0;
|
|
129
|
-
let rejectPending = () => {
|
|
130
|
-
};
|
|
131
|
-
const stop = () => rejectPending(new DshError("DSH_START_FAILED", { phase: "version" }));
|
|
132
|
-
let timer;
|
|
133
|
-
child.stderr.resume();
|
|
134
|
-
child.stderr.on("error", () => {
|
|
135
|
-
});
|
|
136
|
-
let failure;
|
|
137
|
-
try {
|
|
138
|
-
await new Promise((resolveVersion, reject) => {
|
|
139
|
-
rejectPending = reject;
|
|
140
|
-
timer = setTimeout(stop, VERSION_PROBE_TIMEOUT_MS);
|
|
141
|
-
const ioFailure = (error) => reject(new DshError("DSH_START_FAILED", {
|
|
142
|
-
phase: "version",
|
|
143
|
-
nativeCode: nativeCode(error.code) ?? null
|
|
144
|
-
}, { cause: error }));
|
|
145
|
-
child.once("error", ioFailure);
|
|
146
|
-
child.stdout.on("error", ioFailure);
|
|
147
|
-
child.stdout.on("data", (chunk) => {
|
|
148
|
-
bytes += chunk.length;
|
|
149
|
-
if (bytes > VERSION_PROBE_MAX_BYTES)
|
|
150
|
-
stop();
|
|
151
|
-
else
|
|
152
|
-
output += chunk.toString("utf8");
|
|
153
|
-
});
|
|
154
|
-
child.once("close", (code, signal2) => code === 0 ? resolveVersion() : reject(new DshError("DSH_START_FAILED", { phase: "version", exitCode: code, signal: signal2 })));
|
|
155
|
-
signal?.addEventListener("abort", stop, { once: true });
|
|
156
|
-
if (signal?.aborted)
|
|
157
|
-
stop();
|
|
158
|
-
});
|
|
159
|
-
if (output.trim() !== DSH_VERSION)
|
|
160
|
-
throw new DshError("DSH_VERSION_UNSUPPORTED");
|
|
161
|
-
} catch (error) {
|
|
162
|
-
failure = error;
|
|
163
|
-
} finally {
|
|
164
|
-
clearTimeout(timer);
|
|
165
|
-
signal?.removeEventListener("abort", stop);
|
|
166
|
-
try {
|
|
167
|
-
await cleanup();
|
|
168
|
-
} catch (error) {
|
|
169
|
-
const primary = failure === void 0 ? void 0 : dshError(failure, "DSH_START_FAILED");
|
|
170
|
-
const cleanup2 = dshError(error, "DSH_CLEANUP_FAILED");
|
|
171
|
-
failure = new DshError("DSH_CLEANUP_FAILED", {
|
|
172
|
-
...primary?.diagnostics,
|
|
173
|
-
phase: "version",
|
|
174
|
-
pid: child.pid ?? null,
|
|
175
|
-
primaryCode: primary?.code ?? "NONE",
|
|
176
|
-
cleanupCode: cleanup2.diagnostics.nativeCode ?? cleanup2.code
|
|
177
|
-
}, {
|
|
178
|
-
cause: new AggregateError(failure === void 0 ? [error] : [failure, error], "DSH version probe cleanup failed")
|
|
179
|
-
});
|
|
180
|
-
} finally {
|
|
181
|
-
child.stdout.destroy();
|
|
182
|
-
child.stderr.destroy();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
if (failure instanceof Error)
|
|
186
|
-
throw failure;
|
|
187
|
-
if (failure !== void 0)
|
|
188
|
-
throw new DshError("DSH_START_FAILED", { phase: "version" });
|
|
189
|
-
}
|
|
190
|
-
function timeoutOption(options, key, fallback) {
|
|
191
|
-
const raw = options[key];
|
|
192
|
-
const value = raw === void 0 ? fallback : typeof raw === "number" || typeof raw === "string" && /^\d+$/.test(raw) ? Number(raw) : NaN;
|
|
193
|
-
if (!Number.isSafeInteger(value) || value < 1 || value > MAX_TIMEOUT_MS)
|
|
194
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
195
|
-
return value;
|
|
196
|
-
}
|
|
197
|
-
function stringOption(options, key, fallback) {
|
|
198
|
-
const value = options[key] ?? fallback;
|
|
199
|
-
if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > MAX_OPTION_STRING_LENGTH)
|
|
200
|
-
throw new DshError("DSH_CONFIG_INVALID");
|
|
201
|
-
return value;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export {
|
|
205
|
-
DSH_PROCESS_GRACE_MS,
|
|
206
|
-
resolveDshLaunch,
|
|
207
|
-
timeoutOption,
|
|
208
|
-
stringOption
|
|
209
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { isAbsolute } from "node:path";
|
|
2
|
-
// 官方 Client 用 Node 启动 dshBin;execve 保留其拥有的 PID 和 stdio,交给 Electron 解析 asar。
|
|
3
|
-
// 不创建代理进程,也不读取、编码或转发 JSON-RPC。此入口只用于 macOS Desktop。
|
|
4
|
-
const binary = process.env.OCTO_DSH_DESKTOP_BINARY;
|
|
5
|
-
const entry = process.env.OCTO_DSH_DESKTOP_ENTRY;
|
|
6
|
-
if (process.platform !== "darwin" || !binary || !entry || !isAbsolute(binary) || !isAbsolute(entry))
|
|
7
|
-
throw new Error("DSH_CONFIG_INVALID: invalid Desktop launch paths");
|
|
8
|
-
if (!process.execve)
|
|
9
|
-
throw new Error("DSH_START_FAILED: Desktop requires Node execve support");
|
|
10
|
-
const env = { ...process.env };
|
|
11
|
-
delete env.OCTO_DSH_DESKTOP_BINARY;
|
|
12
|
-
delete env.OCTO_DSH_DESKTOP_ENTRY;
|
|
13
|
-
process.execve(binary, [binary, entry, ...process.argv.slice(2)], {
|
|
14
|
-
...env,
|
|
15
|
-
ELECTRON_RUN_AS_NODE: "1"
|
|
16
|
-
});
|