feat(hsr): 迁移插件版管控与直控体验 - #345
Draft
qiyinxi wants to merge 2 commits into
Draft
Conversation
Reviewer's Guide将 HSR MAS 托管/直控(managed/direct control)交互从插件宿主迁移到旧版 dev 中,新增 capability / managed-config / native-control API、动态任务字段、直控会话,以及前端控制模式的用户/脚本编辑器;同时废弃月度深渊流程,并接入新的游戏分辨率和兑换码策略。 HSR 直控执行流程的序列图sequenceDiagram
participant HSRManager
participant AutoProxy
participant ExternalLockManager
participant HSRAccountSwitcher
participant NativeProvider
participant DirectSession
participant GameProcess
HSRManager->>HSRManager: prepare()
HSRManager->>ExternalLockManager: resolve_external_lock_paths(script_config, ("SRA","M7A"))
HSRManager->>ExternalLockManager: acquire_external_path_locks(paths, wait=False)
HSRManager->>HSRManager: _backup_external_configs()
HSRManager->>AutoProxy: main_task()
AutoProxy->>AutoProxy: resolve_user_control(user_config, script_config)
AutoProxy->>HSRAccountSwitcher: ensure_game_started_by_mas()
HSRAccountSwitcher->>HSRAccountSwitcher: prepare_game_resolution_if_needed(runtime, script_config, append_log)
HSRAccountSwitcher->>GameProcess: start_game()
AutoProxy->>NativeProvider: native_provider(engine)
AutoProxy->>NativeProvider: open_direct_session(script_config, config_content, session_id, log)
NativeProvider-->>DirectSession: SRADirectControlSession/M7ADirectControlSession
AutoProxy->>DirectSession: run(timeout_seconds)
DirectSession-->>AutoProxy: HSRRunResult
AutoProxy->>DirectSession: close()
HSRManager->>HSRAccountSwitcher: close_game_if_needed()
HSRManager->>HSRAccountSwitcher: restore_game_resolution_if_needed(runtime, append_log)
HSRManager->>ExternalLockManager: _release_external_path_lock()
HSRManager->>HSRManager: final_task()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your Experience访问你的 dashboard 来:
Getting HelpOriginal review guide in EnglishReviewer's GuideMigrates HSR MAS managed/direct control UX from the plugin host into old dev, adding capability/managed-config/native-control APIs, dynamic task fields, direct control sessions, and front-end user/script editors for control modes, while deprecating monthly abyss flow and wiring new game resolution and redeem-code policies. Sequence diagram for HSR direct control execution flowsequenceDiagram
participant HSRManager
participant AutoProxy
participant ExternalLockManager
participant HSRAccountSwitcher
participant NativeProvider
participant DirectSession
participant GameProcess
HSRManager->>HSRManager: prepare()
HSRManager->>ExternalLockManager: resolve_external_lock_paths(script_config, ("SRA","M7A"))
HSRManager->>ExternalLockManager: acquire_external_path_locks(paths, wait=False)
HSRManager->>HSRManager: _backup_external_configs()
HSRManager->>AutoProxy: main_task()
AutoProxy->>AutoProxy: resolve_user_control(user_config, script_config)
AutoProxy->>HSRAccountSwitcher: ensure_game_started_by_mas()
HSRAccountSwitcher->>HSRAccountSwitcher: prepare_game_resolution_if_needed(runtime, script_config, append_log)
HSRAccountSwitcher->>GameProcess: start_game()
AutoProxy->>NativeProvider: native_provider(engine)
AutoProxy->>NativeProvider: open_direct_session(script_config, config_content, session_id, log)
NativeProvider-->>DirectSession: SRADirectControlSession/M7ADirectControlSession
AutoProxy->>DirectSession: run(timeout_seconds)
DirectSession-->>AutoProxy: HSRRunResult
AutoProxy->>DirectSession: close()
HSRManager->>HSRAccountSwitcher: close_game_if_needed()
HSRManager->>HSRAccountSwitcher: restore_game_resolution_if_needed(runtime, append_log)
HSRManager->>ExternalLockManager: _release_external_path_lock()
HSRManager->>HSRManager: final_task()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
HSRConfig/HSRUserConfig。验证
vue-tsc --noEmit、定向 Prettier/ESLint、Vite 生产构建通过。unittest90/96;其余 6 项均位于相对upstream/dev未改动的 game-sign notification 基线。