feat: support China edition CLI (qoderclicn) with settings toggle - #20
Merged
Conversation
Add a Qoder CLI edition setting (international qodercli / China qoderclicn) so users can switch between the two CLI builds, whose binary names and config roots differ (~/.qoder vs ~/.qoder-cn). - New cli-edition module with per-edition binary names, config roots, login commands, and an active-edition registry synced on settings load/save - Edition-aware CLI discovery, including the CN installer layout (~/.qoder-cn/bin/qoderclicn/qoderclicn-<version>); resolver cache keyed on edition - Edition-aware SDK projects path (session history), global plugin discovery, login hint, and CLI/Node missing error messages - Settings dropdown (declarative + imperative) that resets the resolver, reloads plugins, restarts open tabs, and refreshes the runtime catalog on switch - i18n keys in all 10 locales; unit tests for edition module and CN discovery; CHANGELOG entry Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
The config-root test hardcoded POSIX separators while getQoderCliHomeDir builds paths with path.join, which fails on the Windows CI runner. Build expectations with path.join as well. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
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.
Summary
(
qodercli,~/.qoder) and the China build (qoderclicn,~/.qoder-cn):edition-aware CLI discovery (incl. the CN versioned installer layout),
session history path, global plugin discovery, login hint, and error messages.
root; previously Qoderian only supported the international build.
Verification
npm run typechecknpm run lintnpm run testnpm run buildnpm run release:checknpm run audit:prod(SDK smoke against the real
qoderclicnbinary; real Obsidian vault:edition switch UI, chat panel launching the CN binary with
~/.qoder-cntraces)Safety
CHANGELOG.md