margrop
|
27f6869e9d
|
ci: Playwright 浏览器安装失败时重试,系统依赖仍装不上则只装浏览器
|
2026-11-12 00:00:35 +08:00 |
|
margrop
|
45988361a2
|
feat: 群晖与威联通套件内置镜像,安装时无需联网拉取
- 发版时等同一标签的镜像推送后用 skopeo 按架构导出,套件按 x86_64 / arm64 分别出包
- 群晖经 docker-project 的 preload-image 加载;威联通把归档放进架构目录,启动时 docker load
- 威联通启动时本地已有该版本镜像就不再联网拉取,重启和断网时不依赖镜像仓库;升级后清理旧版本镜像
- 不传 --image 时仍生成在线拉取镜像的 noarch 套件,用于本地调试
|
2026-11-11 17:16:34 +08:00 |
|
margrop
|
99329172bc
|
ci: 桌面安装包使用 Electron 镜像并在网络失败时重试
|
2026-11-09 14:26:15 +08:00 |
|
margrop
|
9fb36e0d93
|
ci: 桌面安装包构建改用 Electron 国内镜像
|
2026-11-09 14:05:36 +08:00 |
|
margrop
|
477c97f596
|
feat: 增加群晖与威联通 Docker 套件
套件只管理同版本 Docker 镜像,noarch,需 Container Manager / Container Station;端口 39300,数据分别落在套件卷 docker/wrong-notebook 与 /share/Container/wrong-notebook。加入 SPK/QPKG 构建、Packages CI、安装文档与官网说明。
|
2026-11-09 09:48:11 +08:00 |
|
margrop
|
b554c862f7
|
ci: 支持用 SignPath 测试证书试签 Windows 安装包
Packages 手动运行时可选 windows_signing=test:仅限 main,向测试策略提交请求,
验证签名但不替换发布文件,签名包单独上传为 test-signed-windows-x64。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-11-03 19:33:02 +08:00 |
|
margrop
|
3a70f83bd9
|
ci: 升级 GitHub Actions 至 Node 24 运行时版本
checkout、setup-node、cache、upload/download-artifact、setup-java、
docker 系列与 action-gh-release 升级到最新大版本(仍按提交 SHA 固定);
发布不足两周的 docker/login-action 取 v4.6.0;
gradle/actions 停在 v5.0.2,避免 v6 缓存组件的商业许可条款。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-11-02 20:01:11 +08:00 |
|
margrop
|
20ae64c954
|
ci: 修复 Docker 测试依赖遗漏并检查双架构构建
|
2026-11-02 09:13:52 +08:00 |
|
margrop
|
dfaf606a22
|
test: 实现隔离本地模型的首批端到端用例
|
2026-11-01 17:22:06 +08:00 |
|
margrop
|
6815e05078
|
ci: 并行化测试检查、缓存 Next.js 与 Electron 构建并精简 standalone 追踪
|
2026-11-01 10:44:01 +08:00 |
|
margrop
|
5d39fc5871
|
ci: 原生双架构并行构建 Docker 镜像并优化层缓存
|
2026-11-01 10:37:00 +08:00 |
|
margrop
|
eb157dc2ad
|
feat: 管理员调试模式与调试日志导出
管理员可在「设置 → 用户管理」开启调试模式,复现问题后导出调试日志发给作者排查:
- 调试模式下记录全部级别的服务端日志(不受 LOG_LEVEL 限制)和前端上报的日志,保存在内存中,最多 5000 条,24 小时后自动关闭
- 记录时脱敏:API Key、密码、令牌、Cookie 替换为 [REDACTED],图片 data URL 只保留类型和长度
- 导出文件包含运行版本、系统环境和脱敏后的配置
- 前端注册全局错误监听,未捕获异常与未处理的 Promise 拒绝上报到服务端日志
- 抽出通用下载函数 downloadFile,数据备份与调试日志导出共用
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-31 18:36:52 +08:00 |
|
margrop
|
d11c8bbe25
|
chore: 升级 Vitest 5、Vite React 插件 6 和 jsdom 30,配置改为 ESM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-31 12:19:12 +08:00 |
|
margrop
|
fa55974384
|
ci: 为 Windows 安装包接入可选的 SignPath 签名
|
2026-10-30 12:49:01 +08:00 |
|
margrop
|
8292ff52b7
|
feat: 管理员使用默认密码登录时强制先修改密码
- 登录时检测管理员是否使用默认密码 123456,会话标记 mustChangePassword
- 中间件把被标记会话的所有页面重定向到 /setup,改密后经 session update 按数据库重新判断并解除
- /api/user 拒绝管理员把密码改回默认密码
- E2E 新增 scripts/prepare-e2e.js 准备测试账号,Playwright 支持 E2E_BASE_URL;新增强制改密用例
- 同步更新 README、Wiki、安装包提示文案
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-25 13:49:47 +08:00 |
|
margrop
|
53ed70aea5
|
chore: 默认 Node.js 升级到 24,CI、Docker 镜像与 @types/node 同步
最低支持版本仍为 22.15,待 Node 22 停止维护(2027-04-30)后再提高。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-25 08:14:38 +08:00 |
|
margrop
|
8e0a7a7d1e
|
chore: 新增 CODEOWNERS 与 SUPPORT.md,外部 PR 自动请求维护者评审
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-24 23:24:47 +08:00 |
|
margrop
|
4bb3d4a64d
|
ci: 新增测试覆盖率任务并设置最低覆盖率
- 补装 @vitest/coverage-v8(此前 npm run test:coverage 缺少依赖无法运行)
- 阈值略低于当前覆盖率:语句 70%、分支 65%、函数 75%、行 70%
- CI 在任务摘要中显示覆盖率并上传报告
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-24 23:19:56 +08:00 |
|
margrop
|
ac54cdd781
|
ci: CI 与 scripts/ci.sh 增加 ESLint 检查,不允许警告
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-24 22:45:18 +08:00 |
|
margrop
|
ac4eb094fc
|
ci: 工作流默认只读权限,Actions 固定到提交 SHA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 16:53:21 +08:00 |
|
margrop
|
638820fa27
|
ci: 新增 CodeQL 代码扫描,覆盖 TypeScript、安卓 Java 与 CI 工作流
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 16:22:24 +08:00 |
|
margrop
|
baf8c8b7eb
|
ci: 新增 Dependabot 配置,每周检查 npm、Gradle 和 GitHub Actions 依赖更新
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 16:22:01 +08:00 |
|
margrop
|
30c75d8232
|
feat: 新增安卓单机版,APK 内置 Node.js 与服务端,无需部署服务器
- 安卓工程增加 mode 维度:standalone 单机版(包名 .standalone)与 client 客户端版,各分手机版、平板版
- 单机版内置 Termux 的 Node.js 24 及依赖库、交叉编译的 Prisma 查询引擎与迁移引擎,放入 jniLibs 以便执行;服务端打包为 assets/server.zip,首次启动解压
- LocalServer 用通用启动器在 127.0.0.1:38017 启动服务端(复制预置数据库、执行迁移),进程被系统回收后回到前台自动重启
- 新增 build-android-prisma-engines.sh(按 Prisma 引擎提交交叉编译)与 android-runtime.mjs(下载并校验 Termux 软件包、patchelf 改写库名、组装运行时)
- build.mjs android 支持 --mode;单机版产物为 WrongNotebook-Android-Phone/Tablet-<版本>.apk
- CI 安卓 Job 构建 bundle、缓存并编译安卓 Prisma 引擎
- 「设置 → 关于」在单机版中说明数据保存在本机,不显示更换服务器
- 同步更新 README、安装包文档、Wiki 与测试
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 13:12:11 +08:00 |
|
margrop
|
f2e8906611
|
ci: 安卓签名校验固定使用 build-tools 35.0.0,标签构建拒绝调试签名
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 10:55:17 +08:00 |
|
margrop
|
384ba74a26
|
feat: 新增安卓手机版、平板版客户端,发布时随 Release 提供 APK
- packaging/android:原生 WebView 客户端,首次启动填写服务器地址并通过 /api/health 校验
- 手机版锁定竖屏、平板版横竖屏自动旋转,两个 flavor 共用一套代码
- 补齐拍照上传、blob 文件另存为、系统打印、外部链接、自签名证书确认等能力
- 网页「设置 → 关于」在客户端内显示当前服务器和「更换服务器」按钮
- build.mjs 新增 android 命令,versionCode 由日期版本号换算并保证递增
- packages.yml 新增 Android 构建,标签发布时要求固定签名密钥并上传 APK
- 同步 README、安装包文档与 Wiki
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 09:01:51 +08:00 |
|
margrop
|
dca18fe891
|
docs: 补充开源项目常用文件
- 新增 MIT LICENSE(保留上游 wttwins 版权),package.json 声明许可证
- 新增贡献指南、安全策略、行为准则,以及 Issue 表单和 Pull Request 模板
- 新增 .editorconfig、.gitattributes(统一 LF)和 .nvmrc(Node.js 22)
- README 中英文增加许可证、版本、CI、npm 徽章和参与贡献说明
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 08:40:03 +08:00 |
|
margrop
|
a7865f4583
|
ci: 修复 GitHub Release 说明总是「无重大变更」
- 原逻辑的比较范围写反(当前标签..上一标签),且只在正式版标签中找上一版本,导致提交列表为空
- 改为 scripts/release-notes.sh:预览版与上一个任意版本比较,正式版与上一个正式版比较
- 没有新功能和修复时列出维护提交,并附完整变更对比链接
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-22 08:13:55 +08:00 |
|
margrop
|
f27fd97fde
|
ci: npm 发布恢复 --provenance 和 registry-url,并输出 OIDC 认证日志便于排查
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-21 13:09:32 +08:00 |
|
margrop
|
8940fef67f
|
ci: npm 改用 Trusted Publishing(OIDC)发布,不再需要 NPM_TOKEN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-21 12:33:55 +08:00 |
|
margrop
|
d936126b06
|
ci: npm 发布拆分为独立 Job,发布失败不再阻断 Release 上传
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-21 12:10:24 +08:00 |
|
margrop
|
486b453021
|
ci: npm 冒烟测试和发布使用 ./ 前缀引用本地 tgz
不带 ./ 时 npm 把 dist/xxx.tgz 当作 GitHub 仓库简写去执行 git ls-remote。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-21 11:02:02 +08:00 |
|
margrop
|
c078e991c9
|
feat: 增加 npm、Windows、macOS、Linux、飞牛OS 全平台安装包
- 新增通用启动器 packaging/runtime/launcher.js:数据目录、预置数据库、自动迁移、NextAuth 密钥
- 新增构建脚本 scripts/package/build.mjs(bundle / npm / desktop / fnos)
- 桌面版基于 Electron,飞牛OS 打包参考 CreditDaddy 的 fnpack 流程
- 新增 packages.yml 工作流,在各平台 Runner 构建并上传 Release
- 配置目录支持 CONFIG_DIR 环境变量
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
2026-10-21 10:10:05 +08:00 |
|
margrop
|
590d34fbe1
|
ci: GitHub 工作流仅在 GitHub 上运行
|
2026-10-20 21:33:15 +08:00 |
|
margrop
|
52f6e1b0ae
|
ci: 多架构镜像构建时放宽测试超时
|
2026-10-20 21:27:48 +08:00 |
|
margrop
|
a925665435
|
feat: 版本号改为构建时从 Git 标签自动识别
|
2026-10-20 21:04:28 +08:00 |
|
margrop
|
b0faaef000
|
ci: 镜像构建前先通过公开历史检查
|
2026-10-20 21:01:30 +08:00 |
|
margrop
|
41c06f43b5
|
chore: 隔离公开主线并增加历史隐私检查
|
2026-10-20 08:04:04 +08:00 |
|
wttwins
|
1aec51b99e
|
fix(ci): improve changelog generation to capture non-conventional commits
|
2026-05-31 11:29:22 +00:00 |
|
wttwins
|
5a82c2da78
|
ci: 删除重复的 ci-e2e.yml,统一由 ci.yml 处理
|
2026-04-30 15:14:26 +00:00 |
|
wttwins
|
d0eb335540
|
ci: 优化 workflow 分工 - main 分支跑测试,tag 只构建 Docker
|
2026-04-30 15:11:21 +00:00 |
|
wttwins
|
2dad068faf
|
feat: 支持 Gemini 模型列表查询 + 自动发版流程
- 支持 Gemini 模型列表:通过 /v1beta/models API 获取可用模型
- 新增 release.yml:打 tag 自动同步版本号、生成 changelog、创建 GitHub Release
- 修正 package.json 版本号与当前 tag v1.5.6 对齐
- 补充 Gemini 模型列表单元测试
|
2026-04-30 14:50:46 +00:00 |
|
wttwins
|
57925b287d
|
CI: 修复 workflow 配置错误(移除 paths-ignore,使用 paths 白名单)
|
2025-12-19 18:03:17 +08:00 |
|
wttwins
|
4cf5cd66e1
|
CI: 配置 .md 文件和 doc 目录不触发 CI 流程
|
2025-12-19 17:52:58 +08:00 |
|
wttwins
|
d7b8690a26
|
chore: 优化项目配置和日志管理
## CI/CD 改进
- 在 ci-e2e.yml 添加 build-check 阶段,确保构建验证在 E2E 测试前完成
- 统一 Playwright 报告保留时间:开发环境 7 天,发布环境 30 天
- 移除 ci.yml 的 workflow_dispatch 手动触发,简化发布流程
## 安全加固
- 启用 /api/analyze 和 /api/reanswer 的认证检查,防止未授权访问
## 日志系统升级
- 引入 pino 高性能日志库(10.1.0)替代 console.log
- 创建统一的日志工具 src/lib/logger.ts
- 重构核心 AI API 日志:
* /api/analyze: 替换 9 处 console 调用
* /api/reanswer: 替换 4 处 console 调用
- 新增 LOG_LEVEL 环境变量配置
## 开发规范
- 更新 .cursorrulers:
* 新增 Git 提交规则(禁止自动提交,要求人工确认)
* 新增响应式设计规则(PC/移动端支持要求)
|
2025-12-18 20:53:16 +08:00 |
|
wttwins
|
7be092d662
|
去除标签触发
|
2025-12-18 18:51:05 +08:00 |
|
wttwins
|
c25fcb9ea5
|
重命名测试流水线名称
|
2025-12-18 18:49:56 +08:00 |
|
wttwins
|
eb147d25cc
|
优化发布流水线
|
2025-12-18 18:47:10 +08:00 |
|
wttwins
|
7ce6a5446f
|
1、引入strip-markdown,清洗 Markdown
|
2025-12-18 18:26:39 +08:00 |
|
wttwins
|
60ce3fd4c6
|
1、补充测试E2E验证功能并集成到CI里
|
2025-12-17 19:37:15 +08:00 |
|
wttwins
|
68180516ed
|
ci: docker build only on tag push, latest only for stable releases
|
2025-12-15 02:14:32 +08:00 |
|