Repository navigation
fix: 支持原生 Windows 开发启动与构建 - #6
Merged
Merged
Conversation
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.
关联 #5 的阶段 A。
Windows 默认 npm shell 无法执行原有的
WRANGLER_LOG_PATH=... vinext build/start,开发启动器直接启动vinext时也依赖平台特定的命令包装。本 PR 将这些入口改为由当前 Node 执行项目内安装的 Vinext CLI,使原生 Windows 可以运行开发服务、完成构建并启动构建后的 Web 页面。改动
localhost、显式 hostname 和其他参数。start仅启动 Web 的行为。没有新增 npm 依赖。
start仍只负责 Web 服务;Codex 发现与调用、Office 转换及 iPad USB 适配留在 #5 后续阶段推进。本机验证
环境:Windows 11 x64、Node.js 24.17.0、npm 11.13.0,使用默认 npm script-shell。
npm ci、npm run build、npm run typecheck、npm run lint通过。npm run test:startup:14/14 通过。npm run test:startup-smoke:2/2 通过。npm run dev,浏览器成功加载“我的空间”;页面、bridge 和/api/codex/health返回成功。终端 Ctrl+C 后,本次启动的 Node/workerd 进程及监听端口均已退出。6155109在 Windows/macOS × Node.js 22/24 的四组检查全部通过,检查路径包含中文和空格。完整套件的既有前置条件问题
npm test的构建步骤通过,测试结果为 125/127 通过,2 项失败。以下两项已在修改前的同一 main 基线上复现,相关测试与业务代码未在本 PR 修改:tests/codex-model-selection.test.mjs中的模拟 Codex 使用无扩展名 Unix shebang 文件,Windows 直接执行得到ENOENT。tests/rendered-html.test.mjs的源码检查读取个人目录的paper-reader/SKILL.md,本机没有该可选 Skill 时得到ENOENT。启动兼容性工作流执行本 PR 的启动测试、实际构建、真实服务检查、类型检查和 lint;不将上述完整套件描述为全部通过,也不要求真实 AI 账户或 Office 转换环境。
本次修改与测试使用了 Codex 辅助。