Repository navigation
Conversation
Quantumult X output - /quanx route (short link prefix q/), frontend link and i18n labels - ss (obfs / v2ray-plugin), vmess, vless (reality, vision incl. 3x-ui vision-udp443), trojan, anytls per the official QX sample.conf; SNI in tls-host with obfs-host for the ws/http Host, matching Sub-Store - Unsupported nodes (hysteria2, tuic, grpc, xhttp, httpupgrade, ...) are emitted as comments and kept out of policies; values with delimiters are rejected; single-node latency groups downgrade to static - No usable node -> 400 listing skipped/unparsed inputs instead of an all-direct profile - Remote rules reuse the Surge geox lists via resource_parser_url + opt-parser=true; custom domain/IP rules go to filter_local - list=true serves bare node lines for a QX node resource - Base config: "Quantumult X (INI)" option, parsed server-side into raw section lines; [general] merges per key, generated sections stay ours - Upstream subscriptions are fetched with a clash.meta UA Parsing fixes for all clients - Accept Quantumult X node lists (Sub-Store / miaomiaowu ?t=qx) as input - Clash YAML trojan: TLS is mandatory unless tls: false - Strip zero-width characters from pasted links - Keep share links without a #name (named "<type> <server>:<port>") - Normalize Sing-Box string plugin_opts for ss plugins - Record unparsed inputs / empty subscriptions as diagnostics Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014N8HNSzFWkY7KD2VDd8EiX
|
@claude is attempting to deploy a commit to the 7sageer's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
🟡 Changes recommended
A valid node named DIRECT can be mistaken for the built-in direct policy, silently routing traffic directly even when configuration generation succeeds.
4 open issues
What changed in this PR
为 Sublink Worker 新增 Quantumult X 支持,复用现有的多运行时应用、订阅解析和配置存储链路。
主要变更:
- 接入
/quanx、q/短链、纯节点列表输出和前端多语言入口。 - 新增 QX 节点转换、策略与规则生成,以及 INI 基础配置支持。
- 扩展 QX 输入解析,修正无名链接、不可见字符和 Trojan TLS 处理,并增加回归测试。
| File | Description |
|---|---|
test/quanx-input-parsing.test.js |
覆盖 QX 输入转换、订阅抓取和空结果诊断。 |
test/quanx-builder.test.js |
覆盖 QX 构建、路由、短链及基础配置。 |
test/nameless-link.test.js |
验证无名分享链接保留及默认命名。 |
src/utils/quanxConfigParser.js |
解析并规范化 QX INI 配置。 |
src/utils.js |
新增不可见字符清理和诊断预览。 |
src/services/configStorageService.js |
支持保存 QX 基础配置。 |
src/parsers/subscription/subscriptionContentParser.js |
新增 QX 节点内容识别。 |
src/parsers/ProxyParser.js |
解析前清理不可见字符。 |
src/parsers/protocols/shadowsocksParser.js |
导出插件参数解析函数供复用。 |
src/parsers/convertYamlProxyToObject.js |
修正 Clash Trojan 的默认 TLS 行为。 |
src/parsers/convertQuanxProxyToObject.js |
将 QX 节点行转换为内部对象。 |
src/i18n/index.js |
补充 QX 链接及国家分组提示翻译。 |
src/config/quanxConfig.js |
提供 QX 默认模板和远程规则解析器地址。 |
src/config/index.js |
导出 QX 配置常量。 |
src/components/formLogic.js |
支持 QX 配置校验、链接生成和短链识别。 |
src/components/Form.jsx |
增加 QX 输出入口及基础配置选项。 |
src/builders/QuanxConfigBuilder.js |
实现 QX 节点、策略、规则和配置输出。 |
src/builders/BaseConfigBuilder.js |
接入 QX 解析结果、默认节点名及输入诊断。 |
src/app/createApp.jsx |
注册 QX 转换路由、短链和默认上游 UA。 |
CLAUDE.md |
更新 QX 支持及相关架构说明。 |
Review effort: Balanced
| } | ||
|
|
||
| formatPolicy({ name, type, members }) { | ||
| const mapped = members.map(member => BUILTIN_POLICIES[member] || sanitizeQuanxName(member)); |
| } | ||
|
|
||
| formatPolicy({ name, type, members }) { | ||
| const mapped = members.map(member => BUILTIN_POLICIES[member] || sanitizeQuanxName(member)); |
| * @returns {object|null} - { type: 'quanxConfig', config: null, proxies } or null if not QX | ||
| */ | ||
| export function parseQuanxNodes(content) { | ||
| const lines = content.split(/\r?\n/).map(line => line.trim()).filter(line => QUANX_PROXY_LINE.test(line)); |
Comment on lines
+297
to
+299
| const quanxResult = parseQuanxNodes(trimmed); | ||
| if (quanxResult) { | ||
| return quanxResult; |
Xray-core >= 26.9.8 REALITY servers reject clients without an
X25519MLKEM768 key share ("REALITY authentication failed"); mihomo only
sends it with reality-opts.support-x25519mlkem768. Enable it for every
REALITY node in the Clash output only, leaving the shared proxy model (and
thus sing-box output) untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014N8HNSzFWkY7KD2VDd8EiX
This branch has not been deployed
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.


Quantumult X output
Parsing fixes for all clients
Claude-Session: https://claude.ai/code/session_014N8HNSzFWkY7KD2VDd8EiX