Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
427 commits
Select commit Hold shift + click to select a range
d261dac
bugfix: 修复 2 处代码错误
wangliang181230 Apr 16, 2026
93f65eb
bugfix: 修复 4 处代码错误
wangliang181230 Apr 16, 2026
0aa448f
小调整.
wangliang181230 Apr 16, 2026
7306b0a
feat: npm 和 yarn 的镜像仓库支持在共享或个人远程配置中进行配置了
wangliang181230 Apr 16, 2026
291a078
feat: pip 的镜像仓库支持在共享或个人远程配置中进行配置了
wangliang181230 Apr 16, 2026
6c97139
fix: fix 4 bugs in proxy, node plugin, and pip plugin code
wangliang181230 Apr 16, 2026
6445969
小调整.
wangliang181230 Apr 16, 2026
d48956a
小调整
wangliang181230 Apr 16, 2026
a5d26bc
小调整
wangliang181230 Apr 16, 2026
e365651
小调整
wangliang181230 Apr 16, 2026
6d29446
perf: 提升获取证书和本地代理服务时的性能
wangliang181230 Apr 16, 2026
5fcf845
perf: DoH类型的DNS,只创建一次 agent
Copilot Apr 16, 2026
a2dc498
perf: IP测速,避免重复测速,且在所有IP测速完成后,只进行一次排序。
wangliang181230 Apr 16, 2026
a3844d7
perf: 用异步的原生加密替换阻塞式RSA密钥生成
Copilot Apr 16, 2026
e39cee9
perf: 修复三个性能小问题
wangliang181230 Apr 16, 2026
040117f
perf: 在 `SNICallback` 中缓存TLS SecureContext,以避免每次TLS握手时进行冗余的PEM转换和上下文创建
Copilot Apr 16, 2026
5c058f0
Update CodeQL schedule cron expression
cute-omega Apr 17, 2026
b173c07
perf: 正则变为常量,可提交预编译,避免每次都创建
wangliang181230 Apr 17, 2026
d80b5cb
perf: 创建正则缓存
wangliang181230 Apr 17, 2026
93498cc
docs: 更新README.md,修正格式和排版问题
cute-omega Apr 17, 2026
222d157
build: 更新 .npmrc,添加 CXXFLAGS 和 CL 的导出配置
cute-omega Apr 17, 2026
b32854b
fix: 更新 follow-redirects 依赖版本至 1.16.0
cute-omega Apr 17, 2026
8117398
fix: 修复了在steam上报错不明显的问题。现在ds自身的报错会自带css以确保显示颜色可见性
cute-omega Apr 17, 2026
79acaf4
perf: 优化fake服务和证书的缓存实现方式
wangliang181230 Apr 18, 2026
7693ef2
小调整
wangliang181230 Apr 18, 2026
c4f9ec2
revert
wangliang181230 Apr 18, 2026
a3476fe
upgrade: lru-cache to 11.2.7
wangliang181230 Apr 18, 2026
0c6b5d4
perf: 正则缓存起来,提升性能。
wangliang181230 Apr 18, 2026
7f4540c
v2.0.2
wangliang181230 Apr 18, 2026
9cc4a10
发布脚本中移除 flatpak 相关脚本
wangliang181230 Apr 18, 2026
b71332f
完善了build and release对flatpak的处理,取消了arm32/64 flatpak构建
cute-omega Apr 18, 2026
6d40c66
Merge branch 'master' into fix-flatpak
cute-omega Apr 18, 2026
de2decf
fix vue3
chengcheng84 Apr 18, 2026
534b34a
Merge pull request #598 from docmirror/fix-flatpak
cute-omega Apr 18, 2026
f44555c
Add Microsoft Defender for DevOps workflow
cute-omega Apr 18, 2026
507d5e8
Update OS versions in GitHub Actions workflow
cute-omega Apr 18, 2026
4dce917
Update OS versions in GitHub Actions workflow
cute-omega Apr 18, 2026
71f859b
Update OS matrix and remove latest tag for runs-on
cute-omega Apr 18, 2026
458b246
Potential fix for pull request finding 'CodeQL / Workflow does not co…
cute-omega Apr 18, 2026
d929d0a
fix: 撤回前三个commit
cute-omega Apr 18, 2026
5e17f04
Merge remote-tracking branch 'origin/master' into cute-omega-patch-1
cute-omega Apr 18, 2026
5094ca4
fix: index load
chengcheng84 Apr 19, 2026
dbe5223
fix: theme
chengcheng84 Apr 19, 2026
a2ddae3
fix: add value for v-model
chengcheng84 Apr 19, 2026
8e61629
fix: sidebar
chengcheng84 Apr 19, 2026
848bdbd
修改版权日期为自动更新
afatcat-xie Apr 19, 2026
006c35b
Merge pull request #600 from docmirror/cute-omega-patch-1
cute-omega Apr 19, 2026
2ee5f80
Update Electron job to use latest OS version
cute-omega Apr 19, 2026
0d0e514
Update OS names in GitHub Actions workflow
cute-omega Apr 19, 2026
62b9e99
bugfix: abort 和 success 拦截器,浅拷贝headers配置,避免配置被覆盖。
wangliang181230 Apr 20, 2026
c1292b1
optimize: cache拦截器,优化请求头 `If-Modified-Since` 的代码,避免解析异常
wangliang181230 Apr 20, 2026
7712e6a
perf: path的拦截器匹配结果缓存起来,避免每次重复解析
wangliang181230 Apr 20, 2026
20df685
bugfix: 响应替换拦截器,第一次运行后配置被更改的问题修复。
wangliang181230 Apr 20, 2026
7244b2f
bugfix: restore interceptOpt.key assignment so proxy uses correct per…
wangliang181230 Apr 20, 2026
366f414
bugfix: baiduOcr stale config.api in async .then() closure
wangliang181230 Apr 20, 2026
67931a1
小调整。
wangliang181230 Apr 20, 2026
6f41d56
optimize: 代码优化。
wangliang181230 Apr 20, 2026
9cdfa76
bugfix: 修复fake服务连接失败时,异常未抛出导致请求永远挂起的问题。
wangliang181230 Apr 20, 2026
8ca5233
小调整
wangliang181230 Apr 20, 2026
53f76c3
小调整
wangliang181230 Apr 20, 2026
65deb42
测试 publish-to-aur.yml
wangliang181230 Apr 20, 2026
daf4754
小调整
wangliang181230 Apr 20, 2026
7b5f877
fix(aur): fix YAML parse errors in publish-to-aur.yml by removing her…
wangliang181230 Apr 20, 2026
7bf98e3
bugfix: 修正错误的请求次数计数
wangliang181230 Apr 21, 2026
08dd119
小调整
wangliang181230 Apr 21, 2026
67053ce
日志优化。
wangliang181230 Apr 21, 2026
0bca2ae
优化
wangliang181230 Apr 21, 2026
042d29b
bugfix: 修复 dns-over-tls socket 在出现异常时未被释放的问题
wangliang181230 Apr 21, 2026
0b85499
小调整
wangliang181230 Apr 21, 2026
fdbb60e
bugfix: 修复跨域问题。
wangliang181230 Apr 21, 2026
b21fb06
优化script
wangliang181230 Apr 22, 2026
0029993
优化script
wangliang181230 Apr 22, 2026
8c4b009
修正文档中错误的路径
wangliang181230 Apr 22, 2026
345f28d
Merge pull request #603 from afatcat-xie/master
cute-omega Apr 22, 2026
c22f792
Potential fix for code scanning alert no. 8: Unsafe shell command con…
cute-omega Apr 24, 2026
48836c8
refactor: migrate Vue slot syntax to shorthand
chengcheng84 Apr 24, 2026
4499d3f
feat: upgrade dependencies and update Vue components
chengcheng84 Apr 24, 2026
841adf5
refactor: migrate icons to Vue components
chengcheng84 Apr 24, 2026
2816c6a
refactor: remove unused MockInput component and router patches
chengcheng84 Apr 24, 2026
a261f0f
fix: ci and review
chengcheng84 Apr 24, 2026
6dce51d
fix: review
chengcheng84 Apr 25, 2026
868fa6f
fix: build and sidbar
chengcheng84 Apr 25, 2026
437ff6a
fix: ci
chengcheng84 Apr 25, 2026
203a756
Merge branch 'master' of https://github.com/chengcheng84/dev-sidecar …
chengcheng84 Apr 25, 2026
f82e178
fix: merge
chengcheng84 Apr 25, 2026
d329e26
ci: use working-directory in GitHub Actions
chengcheng84 Apr 25, 2026
bc8cc10
test
chengcheng84 Apr 25, 2026
f7c6264
fix: 更新工作流以支持 ARM 架构并修正代理和重定向地址
cute-omega Apr 25, 2026
131da18
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega Apr 25, 2026
688c31b
Merge pull request #610 from docmirror/alert-autofix-8
cute-omega Apr 25, 2026
4a3bf97
Initial plan
Copilot Apr 25, 2026
cc00bfa
fix(core): robust mac network service detection for system proxy
Copilot Apr 25, 2026
140f8dc
test(core): cover mac proxy service parsing edge cases
Copilot Apr 25, 2026
a666f03
fix(core): remove pipe from macOS proxy service fallback, add per-ste…
Copilot Apr 27, 2026
c320866
优化脚本中读取版本号的目录
wangliang181230 Apr 28, 2026
4785aa4
fix(core): prompt for admin authorization when networksetup requires …
Copilot Apr 28, 2026
bef21c1
fix: update pnpm-lock.yaml to include request dependency in packages/…
Copilot Apr 28, 2026
617334a
feat: 添加预发布版本标识和相关样式,更新构建配置以支持发布渠道
cute-omega Apr 29, 2026
5e35b7b
feat: 更新工作流以支持 Linux ARM64 构建和上传,优化相关步骤
cute-omega Apr 29, 2026
7ed70c0
feat: 更新 App 组件以优化菜单项的键值和布局,增强可读性
cute-omega Apr 29, 2026
6b9fc15
little fix
cute-omega Apr 29, 2026
03e60a5
partial revert
cute-omega Apr 29, 2026
b97c6e3
+1
cute-omega Apr 29, 2026
a22f7ac
调整gitee资源的域名为 raw.giteeusercontent.com
wangliang181230 Apr 29, 2026
afb1b75
feat: 更新工作流配置,禁用 ARM 架构支持,并修改 App 组件的测试版提示信息
cute-omega Apr 29, 2026
87dedae
Potential fix for pull request finding
cute-omega Apr 29, 2026
e44a41e
fix: sync menu default-selected-keys and default-open-keys with new k…
Copilot Apr 29, 2026
94d2159
Merge pull request #619 from docmirror/test-enhance
cute-omega Apr 30, 2026
0863799
Merge branch 'master' into copilot/fix-system-proxy-error-macos
cute-omega Apr 30, 2026
1578de1
fix ci
chengcheng84 Apr 25, 2026
6412615
ci: remove Windows universal build artifacts
chengcheng84 Apr 30, 2026
ba6ded2
fix: ci
chengcheng84 Apr 30, 2026
476b062
fix: update output directory and publish URL handling
chengcheng84 Apr 30, 2026
45d7118
Merge branch 'master' of https://github.com/chengcheng84/dev-sidecar …
chengcheng84 Apr 30, 2026
d0cd144
fix: review from copilot
chengcheng84 Apr 30, 2026
d20f497
fix
chengcheng84 Apr 30, 2026
b9215e8
fix(gui): restore scoped package name @docmirror/dev-sidecar-gui
chengcheng84 Apr 30, 2026
caf9d6c
Changes before error encountered
Copilot May 1, 2026
933ef3a
Update README with link status and new entry
zhaobokai341 May 4, 2026
d92e6f9
Merge pull request #622 from zhaobokai341/patch-2
cute-omega May 6, 2026
84a1548
EYE BACK
cute-omega May 6, 2026
c54e2ca
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega May 6, 2026
a4c5056
Merge branch 'master' of https://github.com/chengcheng84/dev-sidecar …
chengcheng84 May 15, 2026
4fae2b5
fix: restore search bar and pre-release indicators
chengcheng84 May 15, 2026
e219f46
fix: noTip
chengcheng84 May 15, 2026
93a956b
Merge pull request #599 from chengcheng84/vue-ant-version
cute-omega May 15, 2026
f9ea0e3
fix: improve dark theme styles for labels, buttons, and modals
chengcheng84 May 16, 2026
6b442b3
Merge branch 'master' into copilot/fix-system-proxy-error-macos
cute-omega May 16, 2026
b02a7ea
fix: icon
chengcheng84 May 17, 2026
d1a2a5b
feat: refactor theme system
chengcheng84 May 17, 2026
abc04d1
fix: double space
chengcheng84 May 17, 2026
77c55ca
Merge pull request #617 from docmirror/copilot/fix-system-proxy-error…
cute-omega May 17, 2026
e6306ae
添加 Copilot 使用说明,更新 FreeEye 插件配置和测试加载逻辑
cute-omega May 17, 2026
2ae747a
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega May 17, 2026
5be3ce4
修复了ip address invalid的问题
cute-omega May 18, 2026
73512c4
修复一下端口占用时杀不掉进程的问题
cute-omega May 18, 2026
a72b545
增强了环境变量设置功能
cute-omega May 18, 2026
08f0614
Merge branch 'master' of https://github.com/docmirror/dev-sidecar int…
chengcheng84 May 22, 2026
e29730e
fix: add proper error code for proxy timeout and handle missing e.cod…
Github-Contributor Jun 19, 2026
ad07cf4
fix: 修复代理引擎可靠性、GUI暗色模式及启动流程等多处问题
cute-omega Jun 28, 2026
256f127
fix: 移除 macOS universal build,修复 @electron/universal 合并 @parcel/watch…
cute-omega Jun 28, 2026
65e8753
Merge pull request #645 from Jefsky/fix/timeout-error-handling
cute-omega Jun 28, 2026
6785667
fix(ci): 移除 macOS universal build 的 CI 重命名和上传/下载步骤
cute-omega Jun 28, 2026
4661d49
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega Jun 28, 2026
39231c3
merge: 解决 chengcheng84-fix/ui-eye 的 dark.scss 冲突
cute-omega Jun 28, 2026
54be5d1
Merge branch 'chengcheng84-fix/ui-eye'
cute-omega Jun 28, 2026
5b6e091
fix: 导航栏子菜单默认展开并保持打开状态
cute-omega Jun 28, 2026
da2ccbc
ci: build-and-release 增加 tag 触发 (v*)
cute-omega Jun 28, 2026
959efb2
fix: CSP 处理支持 script-src-elem 指令,修复 GitHub 脚本注入被 CSP 拦截
cute-omega Jun 28, 2026
49f6135
fix: 修复依赖安全漏洞、peer依赖冲突及UI对齐问题
cute-omega Jun 29, 2026
1ec35b5
fix: 修复安装根证书流程中的多个问题
cute-omega Jun 29, 2026
0e734e0
fix: 修复安装根证书流程中的多个问题
cute-omega Jun 29, 2026
c4564d9
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega Jun 29, 2026
c619452
Potential fix for code scanning alert no. 17: Workflow does not conta…
cute-omega Jun 29, 2026
9a8a327
Merge pull request #649 from docmirror/alert-autofix-17
cute-omega Jun 29, 2026
23d368d
Potential fix for code scanning alert no. 18: Workflow does not conta…
cute-omega Jun 29, 2026
7dbec82
Merge pull request #650 from docmirror/alert-autofix-18
cute-omega Jun 29, 2026
34e8228
fix: 修复 dns-over-http 间接依赖漏洞及 setx 命令参数转义问题
cute-omega Jun 29, 2026
8c9f7a9
Merge branch 'master' of https://github.com/docmirror/dev-sidecar
cute-omega Jun 29, 2026
b8129a6
Potential fix for code scanning alert no. 21: Workflow does not conta…
cute-omega Jun 29, 2026
39c3100
Merge pull request #651 from docmirror/alert-autofix-21
cute-omega Jun 29, 2026
816bc94
Potential fix for code scanning alert no. 26: Insecure randomness
cute-omega Jun 29, 2026
d7e3957
Merge pull request #652 from docmirror/alert-autofix-26
cute-omega Jun 29, 2026
1d8ff36
fix: 修复菜单图标缺失和关闭策略弹窗无法选择的问题
cute-omega Jun 29, 2026
c61fdda
feat: 自动更新、构建优化、启动防护、内存裁剪及资源压缩
cute-omega Jun 29, 2026
93d9b5a
fix(gui): 修复开发模式下托盘图标透明的路径解析错误
cute-omega Jun 29, 2026
e7cfba9
feat(mitmproxy): fake server 升级到 HTTP/2,支持浏览器多路复用
cute-omega Jun 29, 2026
fa10382
fix(mitmproxy): HTTP/2 :authority 伪头映射到 req.headers.host
cute-omega Jun 29, 2026
21388a9
fix(mitmproxy): 过滤 HTTP/2 伪头,防止泄漏到上游 HTTP/1.1 请求
cute-omega Jun 29, 2026
00be5dd
feat(mitmproxy): 添加 HTTP/2 会话和流级别错误日志
cute-omega Jun 29, 2026
5a58824
fix(mitmproxy): DS-DNS/DS-DNS-Lookup 头值过滤非 ASCII 字符
cute-omega Jun 29, 2026
e020188
fix(mitmproxy): 坏 IP 快速检测与切换
cute-omega Jun 29, 2026
ea6baf4
fix(mitmproxy): 注入脚本添加 nonce 属性,绕过 'strict-dynamic' CSP
cute-omega Jun 29, 2026
fd39919
merge: 重新引入 HTTP/2 多路复用支持
cute-omega Jun 29, 2026
a3c0a20
fix(dns): 智能 IPv6 检测——静态网卡扫描 + 运行时 ENETUNREACH 兜底
cute-omega Jun 29, 2026
23a0bf5
fix(mitmproxy): nonce 提取增强——支持双引号、report-only CSP、增加失败日志
cute-omega Jun 29, 2026
7c882d6
fix(mitmproxy): 修复 getNonceAttr 函数缺少闭合花括号导致代理无法启动
cute-omega Jun 29, 2026
df4069d
feat(mitmproxy): 按需 IP 探测——分散并发请求 + 即时成败反馈
cute-omega Jun 29, 2026
3bef155
fix(speed): 无新鲜 IP 时复用探测中的 IP,不回退到 DNS 缓存
cute-omega Jun 29, 2026
d9279ec
chore: 仅保留 zh-CN 语言包,节省 ~3MB
cute-omega Jun 29, 2026
21e9f5c
debug: 扩大 nonce 调试日志截断长度到 500 字符
cute-omega Jun 30, 2026
1b93d3c
fix(mitmproxy): CSP 缺少 script-src 时显式添加 'self'
cute-omega Jun 30, 2026
0e5870e
feat(proxy): 添加 REQUEST_CA_BUNDLE 环境变量设置选项
cute-omega Jun 30, 2026
4741047
fix: CA证书路径选项在未勾选设置环境变量时禁用而非隐藏
cute-omega Jun 30, 2026
0c7dc9c
fix: macOS CI 构建包含 zip 目标以生成自动更新 ZIP 文件
cute-omega Jun 30, 2026
d4c82c8
fix: 预发布横幅和标签添加内边距、居中与边框样式
cute-omega Jun 30, 2026
5c86848
fix: 检查更新失败时错误信息显示 undefined 的问题
cute-omega Jun 30, 2026
3bf5719
fix: Windows ia32 增量更新 ZIP 不存在时不中断 CI 构建
cute-omega Jun 30, 2026
6bdd084
fix: 为 mocha 添加 --exit 参数避免 CI 中异步操作导致测试卡死
cute-omega Jun 30, 2026
aa642cd
fix: 修复 after-pack 架构检测为 context.arch,补全 CI 自动更新元文件的上下传
cute-omega Jul 1, 2026
0415e2e
fix: after-pack 使用 Arch[context.arch] 将数值枚举转为架构字符串;修复 after-all-artif…
cute-omega Jul 1, 2026
fc3ed06
fix: latest*.yml 上传改为 warn 并在下载时允许失败;after-all-artifact-build 改用 fs.r…
cute-omega Jul 2, 2026
da1721e
fix: 在 CI 中配置 VUE_APP_PUBLISH_URL/PROVIDER 让 electron-builder 自动生成 la…
cute-omega Jul 2, 2026
1f7a7ac
feat: add TLS1.3-only default with optional TLS1.2 toggle
Copilot Jul 12, 2026
1d1eaf7
Potential fix for pull request finding
cute-omega Jul 12, 2026
d2db13e
Merge pull request #670 from docmirror/copilot/update-dev-sidecar-to-…
cute-omega Jul 13, 2026
63a1842
Revise mirror website section in README
zhaobokai341 Jul 24, 2026
87d8d0b
feat(cli): 重构 CLI 为原生命令行工具 ds-cli
cute-omega Jul 25, 2026
4788b2b
feat(cli): 添加 SEA 打包支持和 GitHub Actions CI
cute-omega Jul 25, 2026
22fa56b
feat(cli): 添加开机自启动功能 (service install/uninstall)
cute-omega Jul 25, 2026
93617c7
fix(cli): 修复 version 命令的 package.json 路径
cute-omega Jul 25, 2026
70c4991
feat(cli): 添加 help 命令和 --help/-h 支持
cute-omega Jul 25, 2026
4825b9a
refactor(cli): help 仅支持命令形式 ds-cli help,移除 --help/-h
cute-omega Jul 25, 2026
87405df
test(cli): 补充 service/help/version/unknown 命令测试,共 50 个测试用例
cute-omega Jul 25, 2026
b588777
docs(cli): README 添加 SEA 打包和交叉编译文档
cute-omega Jul 25, 2026
5d75113
add:统一打包脚本
cute-omega Jul 25, 2026
9a80c1a
feat(cli): 添加跨平台打包脚本 build.js + .gitignore 忽略构建产物
cute-omega Jul 26, 2026
9f7f06b
fix(cli): 修复 GUI 进程检测逻辑,避免误报
cute-omega Jul 26, 2026
1389398
feat(cli): plugin start/stop 持久化到 config.json,重启后生效
cute-omega Jul 26, 2026
5f65a2c
feat(cli): 添加 proxy on/off 命令,plugin start/stop 立即生效
cute-omega Jul 26, 2026
4e217ab
feat(cli): proxy on/off fork worker 立即设置系统代理
cute-omega Jul 26, 2026
953dc3a
feat(core): Linux/macOS 代理设置支持环境变量
cute-omega Jul 26, 2026
acebc9b
feat(core): 改进 shell 检测和代理环境变量提示
cute-omega Jul 26, 2026
1d890a3
test(cli): 补充 proxy on/off、config 持久化、shell 检测测试,共 60 个用例
cute-omega Jul 26, 2026
c405dec
feat(cli): build.js 显示操作系统类型、版本和架构信息
cute-omega Jul 26, 2026
8aee4c6
feat(cli): build.js 动态获取 Node.js 支持的平台列表
cute-omega Jul 26, 2026
a680da4
feat(cli): build.js 自动清理旧构建产物,保留 node-bin 缓存
cute-omega Jul 26, 2026
fdf8281
chore(cli): 删除过时的 sea-config.json(构建脚本已动态生成)
cute-omega Jul 26, 2026
ece3ab5
ci(cli): 简化 CI 构建流程,统一使用 scripts/build.js
cute-omega Jul 26, 2026
ca08334
feat(cli): build.js 并行下载 + SHA256 校验
cute-omega Jul 26, 2026
7c0ecaa
feat(cli): build.js 增量构建 + SHA256 校验 + 并行下载
cute-omega Jul 26, 2026
450c015
remove: sea-config.json from git repo
cute-omega Jul 26, 2026
a8d176e
Merge pull request #676 from zhaobokai341/master
cute-omega Jul 26, 2026
2f60965
feat(core): 用 proper-lockfile 长锁实现 CLI/GUI 单实例互斥
cute-omega Aug 1, 2026
700975d
fix(cli): 修正 GUI 进程检测、status.json 更新与插件状态事件
cute-omega Aug 1, 2026
e3632b8
refactor(cli): 移除 status.json 定时写入,状态事件驱动并入 running.json
cute-omega Aug 1, 2026
680dff8
fix(docs): 更换 star history 图表链接到新的图表服务
OctoBored Aug 13, 2026
c68eeac
Merge pull request #685 from OctoBored/fix/star-history-chart
cute-omega Aug 13, 2026
106a0c9
chore: 升级 pnpm 11 并移除 phantomjs 构建链
cute-omega Aug 13, 2026
0fb6d13
feat(gui): 增加 Arch Linux pacman 打包产物
cute-omega Aug 13, 2026
db76d50
feat(cli): 分离命令结果输出与守护进程日志
cute-omega Aug 14, 2026
2a5fef3
fix: 适配 Node 26 的 lint 与测试兼容性
cute-omega Aug 14, 2026
f97d460
fix(cli): 修复 SEA 打包脚本并重写 CI 构建工作流
cute-omega Aug 14, 2026
26a64e9
fix(cli): 修复 CLI/SEA 命令 stdout 日志污染与 SEA 打包缺陷
cute-omega Aug 14, 2026
7710cd5
docs: 在 CLAUDE.md 中明确提交流程:AI 负责 staging,人类手动执行 commit 以完成签名
cute-omega Aug 14, 2026
c613c33
- feat: 新增流量监控与日志开关,完善 overwall 服务器选择并修复打包问题"
Aug 15, 2026
3fee815
- feat(mitmproxy): 新增请求重试、按域名TLS版本与CF路由黑白名单
Aug 16, 2026
7a80dd1
feat(gui): 新增 GitHub 状态监控
Aug 18, 2026
abba345
修复测试
Aug 18, 2026
396c3ca
Merge branch 'master' into 0816-update
8odream Aug 18, 2026
d516288
fix(ci): pin pnpm to 9.13.2 for electron-builder compatibility
Copilot Aug 18, 2026
fac5d7a
fix(ci): restore pnpm version to match lockfile
Copilot Aug 18, 2026
645912a
fix(ci): 移除 cross-spawn 覆盖以修复 Windows 打包失败
Copilot Aug 18, 2026
3050ff2
Update package.json
8odream Aug 18, 2026
2f0ec96
update
Aug 18, 2026
1ad575e
update
Aug 18, 2026
c6b8ad4
update
Aug 18, 2026
3534dc0
update
Aug 18, 2026
12f7705
update
Aug 18, 2026
a5c47ca
update
Aug 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copilot instructions for dev-sidecar

## Commands

- Dependency management:
- Install dependencies for the entire workspace from the repository root using `pnpm install`. Avoid using `npm install` for dependency installation in this project.
- If `pnpm install` reports dependency conflicts or version mismatches, update the relevant `package.json` entries to compatible versions (or adjust `peerDependencies`), then re-run `pnpm install`.

- Linting:
- Lint the repository from the root with `pnpm lint`.
- Auto-fix lint issues from the root with `pnpm lint:fix`.
- If `pnpm lint` or `pnpm lint:fix` fails, review the reported errors and manually fix the files indicated by the linter, then re-run the command.

- Testing:
- Run package tests where they live:
- `pnpm --filter @docmirror/dev-sidecar test`
- `pnpm --filter @docmirror/mitmproxy test`
- Run a single test file by passing it after `--`, for example:
- `pnpm --filter @docmirror/dev-sidecar test -- test/regex.test.js`
- `pnpm --filter @docmirror/mitmproxy test -- test/proxyTest.js`

- GUI development and packaging (from `packages/gui`):
- `npm run electron`
- `npm run electron:build`
- `npm run serve`
- `npm run lint`
- For GUI debugging: run `npm run electron` and open the Electron developer tools (application menu View → Toggle Developer Tools or the platform shortcut) to inspect renderer pages, console logs, and IPC traffic.

## High-level architecture

- This is a pnpm workspace monorepo with four packages:
- `packages/core`: shared app logic, config, shell helpers, system proxy handling, and plugin/module code.
- `packages/mitmproxy`: the HTTP(S) proxy, DNS, interception, PAC, and response/request rewrite layer.
- `packages/gui`: the Electron + Vue 2 desktop app.
- `packages/cli`: a small CLI entrypoint that loads user config and starts the proxy service.
- `packages/core/src/index.js` exposes the main API and owns process-level error handling plus config/state wiring.
- `packages/mitmproxy/src/index.js` creates the proxy server(s), applies proxy options, and reports status/errors back to the host process.
- `packages/gui/src/background.js` is the Electron main process: it loads config, creates the main window, tray, IPC bridges, and Windows-specific power-monitor behavior.
- Renderer code lives under `packages/gui/src/view/`; IPC/bridge code lives under `packages/gui/src/bridge/`.
- The CLI reads `packages/cli/src/user_config.json5`, prints a banner, and starts the core API with the mitmproxy service path.

## Repo-specific conventions

- Most runtime code in `core`, `mitmproxy`, and `cli` uses CommonJS; GUI code is the Electron/Vue app and is organized around the Electron main process plus renderer/bridge split.
- Keep GUI source imports aligned with the existing file layout and `.js` module naming used in the Electron entrypoints.
- Preserve the startup/shutdown flow: ensure the sequence remains where `core` initializes and manages the proxy lifecycle, `mitmproxy` performs network interception, and the GUI communicates exclusively through IPC bridges and the `core` API; avoid direct cross-component calls that bypass these boundaries.
- Native/module setup matters here: the repo uses a root `.npmrc` with a PhantomJS mirror and C++17 build flags for native modules.
- The project documents Node 22.x, Python 3.11/setuptools, and VS 2022 C++ tooling as the expected local environment for Windows builds.
613 changes: 501 additions & 112 deletions .github/workflows/build-and-release.yml

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: "Build CLI (SEA)"

on:
push:
branches:
- release*
tags:
- 'v*'
paths:
- "packages/cli/**"
- "packages/core/**"
- "packages/mitmproxy/**"
- "pnpm-workspace.yaml"
- "pnpm-lock.yaml"
- "package.json"
- ".github/workflows/build-cli.yml"
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
env:
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
steps:
- name: "Checkout"
uses: actions/checkout@v4.1.7

- name: "Setup pnpm"
uses: pnpm/action-setup@v4

- name: "Setup Node.js 22.x"
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com/
cache: pnpm

- name: "Install dependencies"
run: pnpm install

- name: "Test CLI"
run: pnpm --filter @docmirror/dev-sidecar-cli test

- name: "Cache Node.js binaries (node-bin)"
uses: actions/cache@v4
with:
path: packages/cli/dist/node-bin
key: cli-node-bin-${{ runner.os }}-${{ hashFiles('packages/cli/scripts/build.js') }}

- name: "Build all platforms (SEA)"
run: node packages/cli/scripts/build.js --all

- name: "Generate SHA256SUMS"
run: |
cd packages/cli/dist
sha256sum ds-cli-* > SHA256SUMS.txt
cat SHA256SUMS.txt

- name: "Print dist"
run: |
ls -lah packages/cli/dist/ds-cli-*
file packages/cli/dist/ds-cli-* 2>/dev/null || true

- name: "Upload artifacts"
uses: actions/upload-artifact@v4.4.0
with:
name: ds-cli-${{ github.sha }}
path: |
packages/cli/dist/ds-cli-*
packages/cli/dist/SHA256SUMS.txt
if-no-files-found: error

release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4.1.8
with:
pattern: ds-cli-*
merge-multiple: true
path: release

- name: "Print release dir"
run: |
chmod +x release/ds-cli-*
ls -lah release/

- name: "Create release"
uses: wangliang181230/github-action-ghr@master
env:
GITHUB_TOKEN: ${{ github.token }}
GHR_PATH: release/
GHR_TITLE: ${{ github.ref_name }}
GHR_REPLACE: true
GHR_DRAFT: true
103 changes: 103 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '37 23 * * *'
workflow_dispatch:


jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- name: Run manual build steps
if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
51 changes: 51 additions & 0 deletions .github/workflows/defender-for-devops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# Microsoft Security DevOps (MSDO) is a command line application which integrates static analysis tools into the development cycle.
# MSDO installs, configures and runs the latest versions of static analysis tools
# (including, but not limited to, SDL/security and compliance tools).
#
# The Microsoft Security DevOps action is currently in beta and runs on the windows-latest queue,
# as well as Windows self hosted agents. ubuntu-latest support coming soon.
#
# For more information about the action , check out https://github.com/microsoft/security-devops-action
#
# Please note this workflow do not integrate your GitHub Org with Microsoft Defender For DevOps. You have to create an integration
# and provide permission before this can report data back to azure.
# Read the official documentation here : https://learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-github

name: "Microsoft Defender For Devops"

permissions:
contents: read
security-events: write

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '36 8 * * 1'

jobs:
MSDO:
# currently only windows latest is supported
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.0.x
6.0.x
- name: Run Microsoft Security DevOps
uses: microsoft/security-devops-action@v1.6.0
id: msdo
- name: Upload results to Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
Loading
Loading