chore: switch to Low workspace and Nutstore-only publish
- build.ps1: dev build only; no copy to a fixed exe - publish.ps1: user-run Medium publish to Nutstore - docs: workspace stays D:\Scripts\md-preview, repo under AgentLowWorking - .gitignore: local test/ scratch directory
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# 项目状态(滚动更新)
|
||||
|
||||
> 最后更新:2026-10-30
|
||||
> 最后更新:2026-11-02
|
||||
> 用途:上下文压缩/交接后快速恢复。详细背景见 AGENTS.md、HANDOFF.md、scan-2026-10-21.md、roadmap.md。
|
||||
>
|
||||
> **当前:编辑 Tab/自动缩进 + 阅读 Find 选区填入/零滚动完成;59 个测试通过;固定 exe 已更新为 2026-10-30 build(5,505,024 字节,SHA256 A632EF03…);Gitea release v1.4.2-local.5 已发布;Nutstore 镜像已同步。**
|
||||
> **当前(2026-11-02):仓库根迁移到 `D:\Scripts\md-preview\AgentLowWorking`,整棵树 Low、DSH workspace-write 可编译;成品只发布到 Nutstore;仓库内 exe 已删除。功能基线仍是 v1.4.2-local.5(59 tests)。**
|
||||
|
||||
## 1. 仓库
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
- `618ac47` feat: 阅读 Find 选区填入、选区锚点、零滚动打开
|
||||
- 若干 docs 提交(状态/路线图/HANDOFF、local.3/local.4/local.5 release notes)
|
||||
- 忽略:`/target/`、`/MD-Preview-windows-x64.exe`、`/backup/`、`/agent/reports/*.png`
|
||||
- **不变量**:exe 固定为 `D:\Scripts\md-preview\MD-Preview-windows-x64.exe`,默认 .md 打开方式指向它,不要改名/移动。
|
||||
- **不变量(2026-11-02 起)**:仓库根 `D:\Scripts\md-preview\AgentLowWorking`;成品固定为 `C:\Users\wucl1\Nutstore\1\Scripts\MD-Preview-windows-x64.exe`(Medium),默认 .md 打开方式指向它;仓库内不再放 exe。
|
||||
|
||||
## 2. 当前构建/部署状态
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
- 大小 5,505,024 字节;版本 1.4.2.0
|
||||
- SHA256 `A632EF0363D04CE6F72B9779BA742681868AC31D36A7FE57E4F6D44E7BEAD988`
|
||||
- 完整性级别 Medium - OK;禁用字符串检查全 0;PE subsystem=2(GUI,无双击 cmd)。
|
||||
- 构建方式:`cargo build --release` + `Copy-Item` + 同等校验。本机 DSH pwsh 下 `build.ps1` 会被 cargo 的 stderr 警告触发 `$ErrorActionPreference='Stop'`;脚本逻辑未改。
|
||||
- 构建方式:`cargo build --release`(build.ps1 已改为 Low 工作区版,不再复制到固定路径;cargo stderr 不会再触发 Stop)。
|
||||
- 上一版(v1.4.2-local.4):5,499,392 字节;SHA256 `7134BBC68423605BE220E19DAA1D6CB679AFBB9153C526E717F50388C1A0841D`。
|
||||
- 上一版部署(v1.4.2-local.3):5,507,584 字节;SHA256 `0BFF730209CE835B18DC1447740A1F2770EA0645577A91EB969A6215B1C2372E`。
|
||||
- Nutstore 镜像:工作区外的 `C:\Users\wucl1\Nutstore\1\Scripts\MD-Preview-windows-x64.exe` 已同步为 v1.4.2-local.5(5,505,024 字节,SHA256 `A632EF03…`)。
|
||||
@@ -150,15 +150,17 @@
|
||||
|
||||
```powershell
|
||||
cargo test
|
||||
.\agent\scripts\build.ps1 # 需要先关闭正在运行的 MD Preview
|
||||
.\agent\tests\smoke.ps1 -Launch
|
||||
.\agent\scripts\build.ps1 # 开发构建;产物在 target\release\
|
||||
.\agent\tests\smoke.ps1 -Launch # 发布后冒烟(Nutstore exe)
|
||||
.\agent\scripts\publish.ps1 # 发布:用户在自己的普通 PowerShell 运行
|
||||
```
|
||||
|
||||
## 8. 环境与规则
|
||||
|
||||
- **最高优先级**:`agent/AGENTS.md` —— 只在工作区内改文件;工作区外的任何修改先停下询问用户。
|
||||
- 工作区是 Medium 完整性级别;DSH 需 danger-full-access 才能改/编译(workspace-write 会 EPERM / os error 5)。
|
||||
- 不要把工作区改成 Low。
|
||||
- **最高优先级**:`agent/AGENTS.md` —— 只在仓库内改文件;仓库外的任何修改先停下询问用户。
|
||||
- 仓库根 `D:\Scripts\md-preview\AgentLowWorking` 整棵树是 **Low**;DSH 用 **workspace-write** 即可改/编译。
|
||||
- 构建产物是 Low,不能直接双击;冒烟用 `MD_PREVIEW_CONFIG_DIR` 指到仓库内。
|
||||
- 发布由用户手动运行 `publish.ps1`(Medium);Agent 不运行发布脚本、不改注册表。
|
||||
- `git clean -xdf` 会删除被忽略的 backup 与 exe。
|
||||
- 截图/录屏等二进制验证产物**不入库**:放 `agent/tmp/` 或 `target/tmp/`,看完即删;`agent/reports/` 只留文本。
|
||||
- `%TEMP%` 历史测试残留已于 2026-10-21 16:38 经用户同意清理;之后的测试/构建把 TEMP/TMP 指向 `target\tmp` 与 `target\test-tmp`。
|
||||
@@ -182,3 +184,14 @@ cargo test
|
||||
- 仓库描述与 topics 已通过 API 设置(topics:windows, markdown, markdown-preview, rust, webview2, offline, desktop-app)。
|
||||
- **Gitea token 位置**:`C:\Users\wucl1\.gitea-token`(工作区外;保留,不要提交/删除;读取后不要打印内容)。
|
||||
- 工作区内的 `.gitea-token` 旧路径已 gitignore;以后优先使用上面的用户目录文件。
|
||||
|
||||
## 10. 2026-11-02 迁移(Low 工作区)
|
||||
|
||||
- 仓库根:`D:\Scripts\md-preview\AgentLowWorking`(整棵树 Low)。
|
||||
- DSH 工作区仍是父目录 `D:\Scripts\md-preview`;代码在子目录 `AgentLowWorking`。
|
||||
- DSH 以 `workspace-write` 运行;不再需要 danger-full-access。
|
||||
- 开发构建:`.\agent\scripts\build.ps1`(产物 `target\release\md-preview.exe` 是 Low)。
|
||||
- 开发冒烟:`$env:MD_PREVIEW_CONFIG_DIR="$PWD\target\smoke"; .\target\release\md-preview.exe <file>`。
|
||||
- 发布:用户在自己的普通 PowerShell(Medium)运行 `.\agent\scripts\publish.ps1`;脚本复制到 Nutstore、设 Medium、校验 SHA256、刷新 `.md` 关联、删除旧 exe。
|
||||
- 仓库内不再放成品 exe;默认打开指向 Nutstore。
|
||||
- 迁移步骤与回滚见 `agent/docs/migration-2026-11-02.md`。
|
||||
|
||||
Reference in New Issue
Block a user