@mininglamp-oss/octo-runtime 1.1.6 → 1.1.8
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/build-info.json +2 -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/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 +16 -2
- 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 +5 -0
- 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-IW62UM3C.js → chunk-CFKMMCO6.js} +5 -3
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-FWAPYRV2.js → chunk-LO34KB7D.js} +1 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/{chunk-3GXX5VD5.js → chunk-V5W6ZTYC.js} +14 -6
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/errors.d.ts +4 -2
- 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 +1 -0
- 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/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 +8 -5
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.d.ts +2 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +22 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/runtime-log.js +20 -0
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/service-status.js +14 -1
- package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -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/build-info.json +2 -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 +1 -1
- 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/package.json +3 -3
- 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 +447 -241
- 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 +17 -7
- 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/dispatcher.d.ts +4 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/dispatcher.js +29 -6
- 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/delivery/send-error.d.ts +6 -0
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/send-error.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 +36 -22
- 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 +5 -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 +5 -4
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/card-session.js +76 -20
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.d.ts +19 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/channel.js +197 -66
- 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 +5 -6
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/connector.js +52 -36
- 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 +44 -9
- 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 +0 -10
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/transport/wukong.js +19 -127
- 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/dist/web/assets/{index-CXTvRGim.js → index-B127MhT-.js} +10 -9
- package/node_modules/@mininglamp-oss/octo-runtime-extra-webui/dist/web/index.html +1 -1
- 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/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/generated/protocol-types.d.ts +9 -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 +43 -1
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.d.ts +0 -19
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/delivery/text-send.js +0 -86
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.d.ts +0 -5
- package/node_modules/@mininglamp-oss/octo-runtime-extra-channel-gateway/dist/presentation/delivery-notice.js +0 -35
package/dist/public/dsh.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createDshAdapter, dshAdapter, DshError, DSH_VERSION } from "@mininglamp-oss/octo-runtime-adapter-dsh";
|
|
1
|
+
export { createDshAdapter, dshAdapter, DshError, DSH_MIN_VERSION, DSH_VERSION } from "@mininglamp-oss/octo-runtime-adapter-dsh";
|
|
2
2
|
export type { DshAdapterOptions } from "@mininglamp-oss/octo-runtime-adapter-dsh";
|
package/dist/public/dsh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDshAdapter, dshAdapter, DshError, DSH_VERSION } from "@mininglamp-oss/octo-runtime-adapter-dsh";
|
|
1
|
+
export { createDshAdapter, dshAdapter, DshError, DSH_MIN_VERSION, DSH_VERSION } from "@mininglamp-oss/octo-runtime-adapter-dsh";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-acp-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -46,7 +46,7 @@ export declare function normalizeAcpUpdate(update: StandardAcpUpdate, provider:
|
|
|
46
46
|
export declare function createAcpAdapter(definition: AcpAdapterDefinition, { acpClientFactory, command }?: {
|
|
47
47
|
acpClientFactory?: typeof spawnAcpClient;
|
|
48
48
|
command?: string;
|
|
49
|
-
}): Readonly<{
|
|
49
|
+
}): Readonly<Omit<{
|
|
50
50
|
metadata: {
|
|
51
51
|
mcp: true;
|
|
52
52
|
type: string;
|
|
@@ -55,5 +55,13 @@ export declare function createAcpAdapter(definition: AcpAdapterDefinition, { acp
|
|
|
55
55
|
probe: () => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>;
|
|
56
56
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
57
57
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
58
|
+
}, "metadata"> & {
|
|
59
|
+
metadata: Omit<{
|
|
60
|
+
mcp: true;
|
|
61
|
+
type: string;
|
|
62
|
+
agentSources: "provisioned"[];
|
|
63
|
+
}, "protocolSupport"> & {
|
|
64
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
65
|
+
};
|
|
58
66
|
}>;
|
|
59
67
|
export {};
|
|
@@ -281,6 +281,23 @@ export function createAcpAdapter(definition, { acpClientFactory = spawnAcpClient
|
|
|
281
281
|
: (requestedSessionId ?? stringField(sessionResult, "sessionId"));
|
|
282
282
|
if (!sessionId)
|
|
283
283
|
throw new Error("ACP session/new returned no sessionId");
|
|
284
|
+
// ACP 标准没有设置标题的请求;不得伪造 session/new 字段或把名称当恢复 ID。
|
|
285
|
+
if (request.sessionName && (!requestedSessionId || resumeFallback))
|
|
286
|
+
yield {
|
|
287
|
+
protocolVersion: 2,
|
|
288
|
+
type: "run.notice",
|
|
289
|
+
payload: {
|
|
290
|
+
noticeId: `${request.invocationId}:session-name`,
|
|
291
|
+
code: "provider_diagnostic",
|
|
292
|
+
severity: "info",
|
|
293
|
+
params: {
|
|
294
|
+
adapter: definition.type,
|
|
295
|
+
diagnosticId: "session-name-unsupported",
|
|
296
|
+
category: "session_name_unsupported",
|
|
297
|
+
message: "ACP has no standard session-name setter; the native session title was not set."
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
};
|
|
284
301
|
const requestedMode = contextActmode(request.context);
|
|
285
302
|
if (requestedMode !== undefined) {
|
|
286
303
|
const selection = acpActmodeSelectionRequest(sessionResult, sessionId, requestedMode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-acp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
12
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8",
|
|
13
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -46,7 +46,7 @@ export declare function antigravityLogError(log: string): string | undefined;
|
|
|
46
46
|
export declare function createAntigravityAdapter({ command, commandArgsPrefix }?: {
|
|
47
47
|
command?: string;
|
|
48
48
|
commandArgsPrefix?: string[];
|
|
49
|
-
}): Readonly<{
|
|
49
|
+
}): Readonly<Omit<{
|
|
50
50
|
metadata: {
|
|
51
51
|
type: string;
|
|
52
52
|
agentSources: "provisioned"[];
|
|
@@ -55,8 +55,17 @@ export declare function createAntigravityAdapter({ command, commandArgsPrefix }?
|
|
|
55
55
|
};
|
|
56
56
|
probe: () => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>;
|
|
57
57
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
58
|
+
}, "metadata"> & {
|
|
59
|
+
metadata: Omit<{
|
|
60
|
+
type: string;
|
|
61
|
+
agentSources: "provisioned"[];
|
|
62
|
+
processModel: string;
|
|
63
|
+
transport: string;
|
|
64
|
+
}, "protocolSupport"> & {
|
|
65
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
66
|
+
};
|
|
58
67
|
}>;
|
|
59
|
-
export declare const antigravityAdapter: Readonly<{
|
|
68
|
+
export declare const antigravityAdapter: Readonly<Omit<{
|
|
60
69
|
metadata: {
|
|
61
70
|
type: string;
|
|
62
71
|
agentSources: "provisioned"[];
|
|
@@ -65,5 +74,14 @@ export declare const antigravityAdapter: Readonly<{
|
|
|
65
74
|
};
|
|
66
75
|
probe: () => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>;
|
|
67
76
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
77
|
+
}, "metadata"> & {
|
|
78
|
+
metadata: Omit<{
|
|
79
|
+
type: string;
|
|
80
|
+
agentSources: "provisioned"[];
|
|
81
|
+
processModel: string;
|
|
82
|
+
transport: string;
|
|
83
|
+
}, "protocolSupport"> & {
|
|
84
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
85
|
+
};
|
|
68
86
|
}>;
|
|
69
87
|
export default antigravityAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-antigravity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
14
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
13
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8",
|
|
14
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -90,7 +90,7 @@ export declare function normalizeClaudeEvent(native: ClaudeNativeEvent): Canonic
|
|
|
90
90
|
export declare function createClaudeCodeAdapter({ command, commandArgsPrefix }?: {
|
|
91
91
|
command?: string;
|
|
92
92
|
commandArgsPrefix?: string[];
|
|
93
|
-
}): Readonly<{
|
|
93
|
+
}): Readonly<Omit<{
|
|
94
94
|
metadata: {
|
|
95
95
|
mcp: true;
|
|
96
96
|
protocolSupport: {
|
|
@@ -107,8 +107,23 @@ export declare function createClaudeCodeAdapter({ command, commandArgsPrefix }?:
|
|
|
107
107
|
respondNative(invocationId: string, response: NativeInteractionResponse): Promise<void>;
|
|
108
108
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
109
109
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<AdapterOutput>;
|
|
110
|
+
}, "metadata"> & {
|
|
111
|
+
metadata: Omit<{
|
|
112
|
+
mcp: true;
|
|
113
|
+
protocolSupport: {
|
|
114
|
+
protocol: string;
|
|
115
|
+
modes: ["native", "canonical"];
|
|
116
|
+
nativeMethods: string[];
|
|
117
|
+
};
|
|
118
|
+
type: string;
|
|
119
|
+
agentSources: "provisioned"[];
|
|
120
|
+
processModel: string;
|
|
121
|
+
transport: string;
|
|
122
|
+
}, "protocolSupport"> & {
|
|
123
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
124
|
+
};
|
|
110
125
|
}>;
|
|
111
|
-
export declare const claudeCodeAdapter: Readonly<{
|
|
126
|
+
export declare const claudeCodeAdapter: Readonly<Omit<{
|
|
112
127
|
metadata: {
|
|
113
128
|
mcp: true;
|
|
114
129
|
protocolSupport: {
|
|
@@ -125,5 +140,20 @@ export declare const claudeCodeAdapter: Readonly<{
|
|
|
125
140
|
respondNative(invocationId: string, response: NativeInteractionResponse): Promise<void>;
|
|
126
141
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
127
142
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<AdapterOutput>;
|
|
143
|
+
}, "metadata"> & {
|
|
144
|
+
metadata: Omit<{
|
|
145
|
+
mcp: true;
|
|
146
|
+
protocolSupport: {
|
|
147
|
+
protocol: string;
|
|
148
|
+
modes: ["native", "canonical"];
|
|
149
|
+
nativeMethods: string[];
|
|
150
|
+
};
|
|
151
|
+
type: string;
|
|
152
|
+
agentSources: "provisioned"[];
|
|
153
|
+
processModel: string;
|
|
154
|
+
transport: string;
|
|
155
|
+
}, "protocolSupport"> & {
|
|
156
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
157
|
+
};
|
|
128
158
|
}>;
|
|
129
159
|
export default claudeCodeAdapter;
|
|
@@ -70,6 +70,9 @@ export async function buildClaudeCommand(req, command = "claude", commandArgsPre
|
|
|
70
70
|
];
|
|
71
71
|
if (req.providerSession?.sessionId)
|
|
72
72
|
args.push("--resume", req.providerSession.sessionId);
|
|
73
|
+
// --name 是展示标题;不能替换原生 UUID,也不在 resume 时覆盖既有名称。
|
|
74
|
+
else if (req.sessionName)
|
|
75
|
+
args.push("--name", req.sessionName);
|
|
73
76
|
if (req.agentConfig?.model)
|
|
74
77
|
args.push("--model", req.agentConfig.model);
|
|
75
78
|
const effort = mapReasoningEffort("claude-code", req.agentConfig?.effort);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-claude-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
@@ -30,7 +30,7 @@ export declare function normalizeCodeBuddyUpdate(update: CodeBuddyUpdate): Canon
|
|
|
30
30
|
export declare function createCodeBuddyAdapter({ acpClientFactory, command }?: {
|
|
31
31
|
acpClientFactory?: typeof spawnAcpClient;
|
|
32
32
|
command?: string;
|
|
33
|
-
}): Readonly<{
|
|
33
|
+
}): Readonly<Omit<{
|
|
34
34
|
metadata: {
|
|
35
35
|
type: string;
|
|
36
36
|
agentSources: "provisioned"[];
|
|
@@ -38,9 +38,16 @@ export declare function createCodeBuddyAdapter({ acpClientFactory, command }?: {
|
|
|
38
38
|
probe: () => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>;
|
|
39
39
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
40
40
|
invoke(req: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
41
|
+
}, "metadata"> & {
|
|
42
|
+
metadata: Omit<{
|
|
43
|
+
type: string;
|
|
44
|
+
agentSources: "provisioned"[];
|
|
45
|
+
}, "protocolSupport"> & {
|
|
46
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
47
|
+
};
|
|
41
48
|
}>;
|
|
42
49
|
export declare function codeBuddyPermissionMode(mode: InvokeRequest["approvalMode"]): string;
|
|
43
|
-
export declare const codebuddyAdapter: Readonly<{
|
|
50
|
+
export declare const codebuddyAdapter: Readonly<Omit<{
|
|
44
51
|
metadata: {
|
|
45
52
|
type: string;
|
|
46
53
|
agentSources: "provisioned"[];
|
|
@@ -48,5 +55,12 @@ export declare const codebuddyAdapter: Readonly<{
|
|
|
48
55
|
probe: () => Promise<import("@mininglamp-oss/octo-runtime-adapter-sdk").ProbeResult>;
|
|
49
56
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
50
57
|
invoke(req: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
58
|
+
}, "metadata"> & {
|
|
59
|
+
metadata: Omit<{
|
|
60
|
+
type: string;
|
|
61
|
+
agentSources: "provisioned"[];
|
|
62
|
+
}, "protocolSupport"> & {
|
|
63
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
64
|
+
};
|
|
51
65
|
}>;
|
|
52
66
|
export default codebuddyAdapter;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-codebuddy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-acp-client": "1.1.
|
|
10
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-acp-client": "1.1.8",
|
|
10
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
@@ -149,6 +149,9 @@ export async function* runCodexAppServerTurn({ request, spec, spawnFn = defaultS
|
|
|
149
149
|
if (!threadId)
|
|
150
150
|
throw new Error("codex thread start/resume returned no thread id");
|
|
151
151
|
client.setActiveThread(threadId);
|
|
152
|
+
// 名称属于调用方;只命名本轮新建 thread,恢复时保留原生标题与句柄。
|
|
153
|
+
if (!resumed && request.sessionName)
|
|
154
|
+
await client.request("thread/name/set", { threadId, name: request.sessionName });
|
|
152
155
|
const requestedMode = contextActmode(request.context);
|
|
153
156
|
let collaborationMode;
|
|
154
157
|
let effectiveMode;
|
|
@@ -194,6 +197,8 @@ export async function* runCodexAppServerTurn({ request, spec, spawnFn = defaultS
|
|
|
194
197
|
throw new Error("codex fresh fallback returned no thread id", { cause: error });
|
|
195
198
|
}
|
|
196
199
|
client.setActiveThread(threadId);
|
|
200
|
+
if (request.sessionName)
|
|
201
|
+
await client.request("thread/name/set", { threadId, name: request.sessionName });
|
|
197
202
|
turnResult = await client.request("turn/start", {
|
|
198
203
|
...turnParams(request, threadId, true),
|
|
199
204
|
...(collaborationMode ? { collaborationMode } : {})
|
|
@@ -25,7 +25,7 @@ export declare function createCodexAdapter({ command, appServerArgs, spawnFn, en
|
|
|
25
25
|
appServerArgs?: string[];
|
|
26
26
|
spawnFn?: CodexAppServerSpawn;
|
|
27
27
|
env?: NodeJS.ProcessEnv;
|
|
28
|
-
}): Readonly<{
|
|
28
|
+
}): Readonly<Omit<{
|
|
29
29
|
metadata: {
|
|
30
30
|
mcp: true;
|
|
31
31
|
protocolSupport: {
|
|
@@ -42,8 +42,23 @@ export declare function createCodexAdapter({ command, appServerArgs, spawnFn, en
|
|
|
42
42
|
respondNative(invocationId: string, response: NativeInteractionResponse): Promise<void>;
|
|
43
43
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
44
44
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<import("@mininglamp-oss/octo-runtime-adapter-sdk").AdapterOutput, void, any>;
|
|
45
|
+
}, "metadata"> & {
|
|
46
|
+
metadata: Omit<{
|
|
47
|
+
mcp: true;
|
|
48
|
+
protocolSupport: {
|
|
49
|
+
protocol: string;
|
|
50
|
+
modes: ["native", "canonical"];
|
|
51
|
+
nativeMethods: string[];
|
|
52
|
+
};
|
|
53
|
+
type: string;
|
|
54
|
+
agentSources: "provisioned"[];
|
|
55
|
+
processModel: string;
|
|
56
|
+
transport: string;
|
|
57
|
+
}, "protocolSupport"> & {
|
|
58
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
59
|
+
};
|
|
45
60
|
}>;
|
|
46
|
-
export declare const codexAdapter: Readonly<{
|
|
61
|
+
export declare const codexAdapter: Readonly<Omit<{
|
|
47
62
|
metadata: {
|
|
48
63
|
mcp: true;
|
|
49
64
|
protocolSupport: {
|
|
@@ -60,5 +75,20 @@ export declare const codexAdapter: Readonly<{
|
|
|
60
75
|
respondNative(invocationId: string, response: NativeInteractionResponse): Promise<void>;
|
|
61
76
|
respondInteraction(invocationId: string, response: InteractionResponse): Promise<void>;
|
|
62
77
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<import("@mininglamp-oss/octo-runtime-adapter-sdk").AdapterOutput, void, any>;
|
|
78
|
+
}, "metadata"> & {
|
|
79
|
+
metadata: Omit<{
|
|
80
|
+
mcp: true;
|
|
81
|
+
protocolSupport: {
|
|
82
|
+
protocol: string;
|
|
83
|
+
modes: ["native", "canonical"];
|
|
84
|
+
nativeMethods: string[];
|
|
85
|
+
};
|
|
86
|
+
type: string;
|
|
87
|
+
agentSources: "provisioned"[];
|
|
88
|
+
processModel: string;
|
|
89
|
+
transport: string;
|
|
90
|
+
}, "protocolSupport"> & {
|
|
91
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
92
|
+
};
|
|
63
93
|
}>;
|
|
64
94
|
export default codexAdapter;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mininglamp-oss/octo-runtime-adapter-codex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mininglamp-oss/octo-runtime-protocol": "1.1.
|
|
9
|
-
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.
|
|
8
|
+
"@mininglamp-oss/octo-runtime-protocol": "1.1.8",
|
|
9
|
+
"@mininglamp-oss/octo-runtime-adapter-sdk": "1.1.8"
|
|
10
10
|
},
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
@@ -779,7 +779,8 @@ function errorMessage(error) {
|
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
// packages/octo-runtime-adapter-dsh/dist/errors.js
|
|
782
|
-
var
|
|
782
|
+
var DSH_MIN_VERSION = "0.2.1-rc.4";
|
|
783
|
+
var DSH_VERSION = DSH_MIN_VERSION;
|
|
783
784
|
var messages = {
|
|
784
785
|
DSH_CONFIG_INVALID: "DeepSeek Harness configuration is invalid for this invocation.",
|
|
785
786
|
DSH_ACTMODE_UNSUPPORTED: "DeepSeek Harness supports only the default actmode.",
|
|
@@ -788,7 +789,7 @@ var messages = {
|
|
|
788
789
|
STREAM_QUEUE_BYTES_EXCEEDED: "DeepSeek Harness event queue exceeded the configured byte limit.",
|
|
789
790
|
STREAM_QUEUE_ITEMS_EXCEEDED: "DeepSeek Harness event queue exceeded the configured item limit.",
|
|
790
791
|
DSH_EXECUTABLE_NOT_FOUND: "The host-configured DeepSeek Harness JavaScript entry is missing.",
|
|
791
|
-
DSH_VERSION_UNSUPPORTED:
|
|
792
|
+
DSH_VERSION_UNSUPPORTED: `DeepSeek Harness requires version >= ${DSH_MIN_VERSION}. Please upgrade DeepSeek Harness.`,
|
|
792
793
|
DSH_START_FAILED: "DeepSeek Harness could not start.",
|
|
793
794
|
DSH_INITIALIZE_TIMEOUT: "DeepSeek Harness initialization timed out.",
|
|
794
795
|
DSH_RPC_ERROR: "DeepSeek Harness rejected a protocol request.",
|
|
@@ -807,7 +808,7 @@ var DshError = class extends Error {
|
|
|
807
808
|
code;
|
|
808
809
|
diagnostics;
|
|
809
810
|
constructor(code, diagnostics = {}, options) {
|
|
810
|
-
super(`${code}: ${messages[code]}`, options);
|
|
811
|
+
super(`${code}: ${messages[code]}${code === "DSH_VERSION_UNSUPPORTED" ? ` Detected version: ${diagnostics.detectedVersion ?? "unknown"}.` : ""}`, options);
|
|
811
812
|
this.code = code;
|
|
812
813
|
this.diagnostics = diagnostics;
|
|
813
814
|
this.name = "DshError";
|
|
@@ -846,6 +847,7 @@ function dshError(error, fallback) {
|
|
|
846
847
|
|
|
847
848
|
export {
|
|
848
849
|
HarnessClient,
|
|
850
|
+
DSH_MIN_VERSION,
|
|
849
851
|
DSH_VERSION,
|
|
850
852
|
DshError,
|
|
851
853
|
record,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
DSH_MIN_VERSION,
|
|
3
3
|
DshError,
|
|
4
4
|
dshError,
|
|
5
5
|
nativeCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CFKMMCO6.js";
|
|
7
7
|
|
|
8
8
|
// packages/octo-runtime-adapter-dsh/dist/launch.js
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { realpath, stat } from "node:fs/promises";
|
|
11
11
|
import { isAbsolute } from "node:path";
|
|
12
|
+
import { gte, parse } from "semver";
|
|
12
13
|
import { createProcessCleanup } from "@mininglamp-oss/octo-runtime-adapter-sdk/process-cleanup";
|
|
13
14
|
import { mergeProcessEnvironment } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
14
15
|
var VERSION_PROBE_TIMEOUT_MS = 1e4;
|
|
@@ -36,8 +37,8 @@ async function resolveDshLaunch(options, env, signal) {
|
|
|
36
37
|
env: mergeProcessEnvironment(env, process.versions.electron ? { ELECTRON_RUN_AS_NODE: "1" } : {}),
|
|
37
38
|
dshBin: physicalPath
|
|
38
39
|
};
|
|
39
|
-
await checkVersion(launch, signal);
|
|
40
|
-
return launch;
|
|
40
|
+
const version = await checkVersion(launch, signal);
|
|
41
|
+
return { ...launch, version };
|
|
41
42
|
}
|
|
42
43
|
function assertModulePath(path) {
|
|
43
44
|
if (!isAbsolute(path) || !/\.(?:c|m)?js$/i.test(path) || /(?:^|[/\\])[^/\\]*\.asar(?:[/\\]|$)/i.test(path) || /\.app[/\\]Contents(?:[/\\]|$)/i.test(path))
|
|
@@ -68,6 +69,7 @@ async function checkVersion(launch, signal) {
|
|
|
68
69
|
child.stderr.on("error", () => {
|
|
69
70
|
});
|
|
70
71
|
let failure;
|
|
72
|
+
let version = "";
|
|
71
73
|
try {
|
|
72
74
|
await new Promise((resolveVersion, reject) => {
|
|
73
75
|
rejectPending = reject;
|
|
@@ -90,8 +92,13 @@ async function checkVersion(launch, signal) {
|
|
|
90
92
|
if (signal?.aborted)
|
|
91
93
|
stop();
|
|
92
94
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
version = output.trim();
|
|
96
|
+
const parsed = parse(version);
|
|
97
|
+
if (!parsed || !gte(parsed, DSH_MIN_VERSION))
|
|
98
|
+
throw new DshError("DSH_VERSION_UNSUPPORTED", {
|
|
99
|
+
detectedVersion: parsed ? version : "unknown",
|
|
100
|
+
minimumVersion: DSH_MIN_VERSION
|
|
101
|
+
});
|
|
95
102
|
} catch (error) {
|
|
96
103
|
failure = error;
|
|
97
104
|
} finally {
|
|
@@ -120,6 +127,7 @@ async function checkVersion(launch, signal) {
|
|
|
120
127
|
throw failure;
|
|
121
128
|
if (failure !== void 0)
|
|
122
129
|
throw new DshError("DSH_START_FAILED", { phase: "version" });
|
|
130
|
+
return version;
|
|
123
131
|
}
|
|
124
132
|
function timeoutOption(options, key, fallback) {
|
|
125
133
|
const raw = options[key];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const DSH_MIN_VERSION = "0.2.1-rc.4";
|
|
2
|
+
/** 保留原公开名称作为最低版本别名;实际安装版本由 probe 返回。 */
|
|
3
|
+
export declare const DSH_VERSION = "0.2.1-rc.4";
|
|
2
4
|
declare const messages: {
|
|
3
5
|
readonly DSH_CONFIG_INVALID: "DeepSeek Harness configuration is invalid for this invocation.";
|
|
4
6
|
readonly DSH_ACTMODE_UNSUPPORTED: "DeepSeek Harness supports only the default actmode.";
|
|
@@ -7,7 +9,7 @@ declare const messages: {
|
|
|
7
9
|
readonly STREAM_QUEUE_BYTES_EXCEEDED: "DeepSeek Harness event queue exceeded the configured byte limit.";
|
|
8
10
|
readonly STREAM_QUEUE_ITEMS_EXCEEDED: "DeepSeek Harness event queue exceeded the configured item limit.";
|
|
9
11
|
readonly DSH_EXECUTABLE_NOT_FOUND: "The host-configured DeepSeek Harness JavaScript entry is missing.";
|
|
10
|
-
readonly DSH_VERSION_UNSUPPORTED: "DeepSeek Harness version
|
|
12
|
+
readonly DSH_VERSION_UNSUPPORTED: "DeepSeek Harness requires version >= 0.2.1-rc.4. Please upgrade DeepSeek Harness.";
|
|
11
13
|
readonly DSH_START_FAILED: "DeepSeek Harness could not start.";
|
|
12
14
|
readonly DSH_INITIALIZE_TIMEOUT: "DeepSeek Harness initialization timed out.";
|
|
13
15
|
readonly DSH_RPC_ERROR: "DeepSeek Harness rejected a protocol request.";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RuntimeLog, type CanonicalEvent, type InvokeRequest, type AdapterInvocationContext } from "@mininglamp-oss/octo-runtime-adapter-sdk";
|
|
2
|
-
export { DshError, DSH_VERSION } from "./errors.js";
|
|
2
|
+
export { DshError, DSH_MIN_VERSION, DSH_VERSION } from "./errors.js";
|
|
3
3
|
export interface DshAdapterOptions {
|
|
4
4
|
/** 同一 RuntimeLog sink;只记录身份、阶段、时间和安全枚举,不记录原始轨迹。 */
|
|
5
5
|
log?: RuntimeLog;
|
|
@@ -9,7 +9,7 @@ export interface DshAdapterOptions {
|
|
|
9
9
|
* SDK 只确认直接子进程退出;不承诺完整后代回收或解析前内存上界。
|
|
10
10
|
* providerSession 来自调用方,跨调用显式 resume;不缓存业务上下文或安装/修改 Provider。
|
|
11
11
|
*/
|
|
12
|
-
export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<{
|
|
12
|
+
export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<Omit<{
|
|
13
13
|
metadata: {
|
|
14
14
|
type: string;
|
|
15
15
|
agentSources: "provisioned"[];
|
|
@@ -28,8 +28,15 @@ export declare function createDshAdapter(options?: DshAdapterOptions): Readonly<
|
|
|
28
28
|
version?: undefined;
|
|
29
29
|
}>;
|
|
30
30
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
31
|
+
}, "metadata"> & {
|
|
32
|
+
metadata: Omit<{
|
|
33
|
+
type: string;
|
|
34
|
+
agentSources: "provisioned"[];
|
|
35
|
+
}, "protocolSupport"> & {
|
|
36
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
37
|
+
};
|
|
31
38
|
}>;
|
|
32
|
-
export declare const dshAdapter: Readonly<{
|
|
39
|
+
export declare const dshAdapter: Readonly<Omit<{
|
|
33
40
|
metadata: {
|
|
34
41
|
type: string;
|
|
35
42
|
agentSources: "provisioned"[];
|
|
@@ -48,5 +55,12 @@ export declare const dshAdapter: Readonly<{
|
|
|
48
55
|
version?: undefined;
|
|
49
56
|
}>;
|
|
50
57
|
invoke(request: InvokeRequest, context?: AdapterInvocationContext): AsyncGenerator<CanonicalEvent>;
|
|
58
|
+
}, "metadata"> & {
|
|
59
|
+
metadata: Omit<{
|
|
60
|
+
type: string;
|
|
61
|
+
agentSources: "provisioned"[];
|
|
62
|
+
}, "protocolSupport"> & {
|
|
63
|
+
protocolSupport: import("@mininglamp-oss/octo-runtime-protocol").AdapterProtocolSupport;
|
|
64
|
+
};
|
|
51
65
|
}>;
|
|
52
66
|
export default dshAdapter;
|
|
@@ -2,17 +2,18 @@ import {
|
|
|
2
2
|
resolveDshLaunch,
|
|
3
3
|
stringOption,
|
|
4
4
|
timeoutOption
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V5W6ZTYC.js";
|
|
6
6
|
import {
|
|
7
7
|
DshTrajectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LO34KB7D.js";
|
|
9
9
|
import {
|
|
10
|
+
DSH_MIN_VERSION,
|
|
10
11
|
DSH_VERSION,
|
|
11
12
|
DshError,
|
|
12
13
|
HarnessClient,
|
|
13
14
|
dshError,
|
|
14
15
|
record
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CFKMMCO6.js";
|
|
16
17
|
|
|
17
18
|
// packages/octo-runtime-adapter-dsh/dist/index.js
|
|
18
19
|
import { randomUUID } from "node:crypto";
|
|
@@ -42,7 +43,7 @@ function createDshAdapter(options = {}) {
|
|
|
42
43
|
const launch = await resolveDshLaunch(probeOptions?.providerOptions ?? {}, {
|
|
43
44
|
...process.env
|
|
44
45
|
});
|
|
45
|
-
return { available: true, command: launch.command, version:
|
|
46
|
+
return { available: true, command: launch.command, version: launch.version };
|
|
46
47
|
} catch (error) {
|
|
47
48
|
return {
|
|
48
49
|
available: false,
|
|
@@ -198,8 +199,8 @@ function createDshAdapter(options = {}) {
|
|
|
198
199
|
model: request.agentConfig.model ?? "deepseek-flash",
|
|
199
200
|
...config.maxTokens === void 0 ? {} : { maxTokens: timeoutOption(config, "maxTokens", 4096) }
|
|
200
201
|
});
|
|
201
|
-
if (!record(initialization) || !record(initialization.serverInfo) || initialization.serverInfo.name !== "deepseek-harness-sdk-runtime" || initialization.serverInfo.version !== "
|
|
202
|
-
throw new DshError("
|
|
202
|
+
if (!record(initialization) || !record(initialization.serverInfo) || initialization.serverInfo.name !== "deepseek-harness-sdk-runtime" || typeof initialization.serverInfo.version !== "string" || !initialization.serverInfo.version.trim())
|
|
203
|
+
throw new DshError("DSH_PROTOCOL_ERROR");
|
|
203
204
|
if (requestedId) {
|
|
204
205
|
phase = "resume";
|
|
205
206
|
try {
|
|
@@ -298,6 +299,7 @@ function createDshAdapter(options = {}) {
|
|
|
298
299
|
var dshAdapter = createDshAdapter();
|
|
299
300
|
var index_default = dshAdapter;
|
|
300
301
|
export {
|
|
302
|
+
DSH_MIN_VERSION,
|
|
301
303
|
DSH_VERSION,
|
|
302
304
|
DshError,
|
|
303
305
|
createDshAdapter,
|
|
@@ -4,6 +4,7 @@ export interface DshLaunch {
|
|
|
4
4
|
args: string[];
|
|
5
5
|
env: NodeJS.ProcessEnv;
|
|
6
6
|
dshBin: string;
|
|
7
|
+
version: string;
|
|
7
8
|
}
|
|
8
9
|
/** 宿主维护 npm 安装的 JS 入口;这里只校验所选入口和版本,不发现或替换安装。 */
|
|
9
10
|
export declare function resolveDshLaunch(options: Record<string, unknown>, env: NodeJS.ProcessEnv, signal?: AbortSignal): Promise<DshLaunch>;
|