Repository navigation
feat(windterm-importer): 支持分组、Telnet、跳板机、代理、QuickBar 及向后兼容的快捷键导入 - #19
Open
WindDaoist wants to merge 2 commits into
Open
WindDaoist wants to merge 2 commits into
WindDaoist wants to merge 2 commits into
Conversation
…s, QuickBar, and optional keybindings - Recursively discover user.sessions, quickbar.config, and wind.keymaps under WindTerm install or .wind directories - Import SSH/Telnet sessions with labels, nested group paths, jump server references, proxy URLs, and platform-aware identity file paths - Import QuickBar commands from quickbar.config - Gate keybinding record emission behind host capability negotiation (NAVOP_IMPORT_CAPABILITIES=keybinding) for full backward compatibility with existing Navop releases - Add unit tests covering groups, jump servers, proxies, QuickBar, keymaps, and legacy/capable host compatibility
…ce index, and script tests
Author
|
已修复本次 PR 相关的 manifest 校验与脚本单测问题(commit
注:
|
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.
变更说明
完善
windterm-importer(com.onetcli.importer.windterm)插件,在兼容现有官方版本 Navop 的前提下,支持完整的 WindTerm 会话与配置迁移:.wind配置目录,自动递归发现user.sessions、quickbar.config和wind.keymaps(跳过logs、themes、locales、schemes、vendors、plugins、palettes及嵌套.wind/.wind目录)。session.label)、多级嵌套分组路径(group_path→ Navop 工作区)、跳板机引用(session.proxyJumpServer1)、代理配置(socks5/http)以及按当前平台优先解析的私钥路径(ssh.identityFilePath.*,自动去除.pub后缀)。scan()中上报发现的工作区路径列表与预估导入条目数。autoLogin数据及非 SSH/Telnet 会话,并给出明确告警。quickbar.config并生成quick_command导入记录(保留分组、名称、命令内容、快捷键和排序)。NAVOP_IMPORT_CAPABILITIES=keybinding与宿主进行能力协商:keybinding时,解析wind.keymaps并输出keybinding记录;keybinding协议的现有官方版 Navop 上,自动跳过keybinding记录,仅输出 SSH / Telnet / 分组 / QuickBar,避免触发协议解码报错,实现单个插件同时兼容新旧版本。测试验证
cargo test -p windterm_importer_wasm:6 个单元测试与 1 个 doctest 全部通过(包含新/旧宿主能力协商兼容性测试)。cargo build --release -p windterm_importer_wasm --target wasm32-wasip2:编译通过。