Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a438e027b | ||
|
|
e63a82b695 | ||
|
|
cdbc92fab8 | ||
|
|
d08a940afe | ||
|
|
d9cf6a07e9 | ||
|
|
b19afc6a53 | ||
|
|
6a8bf08809 | ||
|
|
6cd6520bae | ||
|
|
d0c07f4f74 | ||
|
|
0a188552d5 | ||
|
|
cffef93b37 | ||
|
|
a0f0a4b232 | ||
|
|
f9d5e56bb8 | ||
|
|
0ee83e77e2 | ||
|
|
49ae605eab | ||
|
|
e17faf45ce | ||
|
|
65438cb7e5 | ||
|
|
455065eb70 | ||
|
|
c61dbc551b | ||
|
|
9cb19902d9 | ||
|
|
4f8fbd7806 | ||
|
|
57b2c14056 | ||
|
|
b544d92702 | ||
|
|
bd88b2e39e | ||
|
|
f8f07d30d2 | ||
|
|
3669a0a5fa | ||
|
|
aff228eb55 | ||
|
|
b69b8902d7 | ||
|
|
b3f92e0206 | ||
|
|
f12ddaddae | ||
|
|
189ddc238b | ||
|
|
086e0ebb61 | ||
|
|
93f0253037 | ||
|
|
f1cd6bf974 | ||
|
|
c3a6e59420 | ||
|
|
422d5483bc | ||
|
|
4ee7b768bd | ||
|
|
e78cdd3c97 | ||
|
|
960c66b196 | ||
|
|
5d461ffc6c | ||
|
|
096072926b | ||
|
|
4db5f05531 | ||
|
|
a8da30aad2 | ||
|
|
75ee8bd33a | ||
|
|
8837587ce9 | ||
|
|
eba935e710 | ||
|
|
3ecb6fa276 | ||
|
|
cf6e3f9d2a | ||
|
|
bd06bbc7d2 | ||
|
|
5ce3f827f0 | ||
|
|
08ddf4cd6a | ||
|
|
37a458e3c3 | ||
|
|
94a873f929 | ||
|
|
775bc23dc3 | ||
|
|
8b5509d64f | ||
|
|
de9cb2908d | ||
|
|
389fc917b9 | ||
|
|
e28c6d0d6e | ||
|
|
9316cf4fc4 | ||
|
|
b00ca7dac9 | ||
|
|
705c15eb93 | ||
|
|
1340f6c233 | ||
|
|
5aeddacfc9 | ||
|
|
453d288a6c | ||
|
|
c86b0eefa0 | ||
|
|
56588a9203 | ||
|
|
cf90ced825 | ||
|
|
d36f3c2995 | ||
|
|
af46ee1617 | ||
|
|
374e1cd5bf | ||
|
|
4874c7e95a | ||
|
|
63835afba8 | ||
|
|
ba1d50cdfc | ||
|
|
e9454cf01f | ||
|
|
3cec9adc5f | ||
|
|
c1ad438591 | ||
|
|
2b2fdad56f | ||
|
|
c96c369161 | ||
|
|
4ef08e06d2 | ||
|
|
cd9431985e | ||
|
|
dba01d42d0 | ||
|
|
344a2797b0 | ||
|
|
caa79e7fcf | ||
|
|
df250e04ba | ||
|
|
efe7e8c813 | ||
|
|
b80988ccf7 | ||
|
|
51597ad9fc | ||
|
|
8b8d2beefe | ||
|
|
3ec395046b | ||
|
|
5dc299c478 | ||
|
|
7c29f72ff7 | ||
|
|
da1806f745 | ||
|
|
ec7eab89fb | ||
|
|
282252a5fb | ||
|
|
dfbc14c081 | ||
|
|
4aaebcb65a | ||
|
|
5cb8b6ac83 | ||
|
|
0bc1f64edc | ||
|
|
d3bdff81e5 | ||
|
|
6f9f820f85 | ||
|
|
9552f1eb95 | ||
|
|
a41c6cf928 | ||
|
|
e565f67b46 | ||
|
|
cd66d63f4f | ||
|
|
a99f84b25e | ||
|
|
2cf526e176 | ||
|
|
24b655cae1 | ||
|
|
e5e628de4a | ||
|
|
27334fef81 | ||
|
|
058a88bdb7 | ||
|
|
b991899a5d | ||
|
|
13e0d42472 | ||
|
|
eee4e6bde9 | ||
|
|
5ed8444d5d | ||
|
|
736b582bc1 | ||
|
|
f0a0131aac | ||
|
|
131b6dbbb3 | ||
|
|
f861a3d386 | ||
|
|
be382a117d | ||
|
|
ef40f339cd | ||
|
|
e9b77186dc | ||
|
|
6c708224d2 | ||
|
|
f437df2a83 | ||
|
|
96227eed2e | ||
|
|
656f43e2ff | ||
|
|
9c508333bb | ||
|
|
2f58f07a5a | ||
|
|
d667fa6c57 | ||
|
|
b84afbfa8a | ||
|
|
0933766dcf | ||
|
|
bf14b20a38 | ||
|
|
7bdaaeb2ec | ||
|
|
7da623d055 | ||
|
|
12895e9868 | ||
|
|
9c03cd5900 | ||
|
|
b939101565 | ||
|
|
ae4e0909a6 | ||
|
|
530e768a5b | ||
|
|
3367bb6454 | ||
|
|
2a90201bfa | ||
|
|
b776ce58eb | ||
|
|
ffc0548e1f | ||
|
|
264fee5127 | ||
|
|
3b8a93e12c | ||
|
|
cf879c9265 | ||
|
|
01d1b54caa | ||
|
|
f3d7423d02 | ||
|
|
62f143fe9f | ||
|
|
9837ca581b | ||
|
|
c787ef325b | ||
|
|
3c4e6e7e37 | ||
|
|
ba5b13667b | ||
|
|
1baf908ba4 | ||
|
|
6d0b92c515 | ||
|
|
7d5ea814ec | ||
|
|
b21960cda1 | ||
|
|
ce42acc654 | ||
|
|
1ee519e5d2 | ||
|
|
bc91b98385 | ||
|
|
9c4ccc5bf5 | ||
|
|
46bcafd7a3 | ||
|
|
e46982af6c | ||
|
|
2a9398ab50 | ||
|
|
faad50df80 | ||
|
|
74c1cb752c | ||
|
|
a8358d90d7 | ||
|
|
486ea05ad5 | ||
|
|
4b78ca0f27 | ||
|
|
0151552f55 | ||
|
|
2c88be99ce | ||
|
|
a011e8eab6 | ||
|
|
9a3dff2f14 | ||
|
|
bdb096fb88 | ||
|
|
89c7c603f6 | ||
|
|
681403a4d2 | ||
|
|
a94276494a | ||
|
|
00861a59d6 | ||
|
|
832ab5d563 | ||
|
|
e15ee259f8 | ||
|
|
e4ef6a533e | ||
|
|
3b3b648580 |
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Native exports include intentional whitespace; preserve their original bytes.
|
||||
tests/v1_1/fixtures/native-complex/*.txt -text whitespace=-trailing-space
|
||||
tests/v1_1/fixtures/native-complex/*.kyn -text whitespace=-trailing-space
|
||||
# Copied acceptance reports retain the SHA256 of the original local artifacts.
|
||||
docs/testing/evidence/2026-11-12-r17/* -text whitespace=cr-at-eol
|
||||
docs/testing/evidence/2026-11-13-pr27/* -text whitespace=cr-at-eol
|
||||
# JUnit failure excerpts retain the original blank source lines and spaces.
|
||||
docs/testing/evidence/2026-11-13-pr27/broad-results.xml -text whitespace=cr-at-eol,-trailing-space
|
||||
docs/testing/evidence/2026-11-13-pr27/ci-f9d5e56-failure.txt -text whitespace=cr-at-eol,-trailing-space
|
||||
docs/testing/evidence/2026-11-13-pr27-followup/* -text whitespace=cr-at-eol
|
||||
# Raw fault-injection logs include original source excerpt whitespace.
|
||||
docs/testing/evidence/2026-11-13-pr27-followup/*.txt -text whitespace=cr-at-eol,-trailing-space
|
||||
@@ -0,0 +1,159 @@
|
||||
name: Core regression
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, 'codex/**']
|
||||
tags: ['v*']
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
portable-regression:
|
||||
name: Python core, intervention UI and release configuration
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
QT_QPA_PLATFORM: offscreen
|
||||
DSH_TELEMETRY_DISABLED: '1'
|
||||
PATH: /opt/ci-node/node_modules/.bin:/opt/ci-python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Install runner Python and test dependencies
|
||||
run: |
|
||||
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
||||
[ -f "$apt_source" ] || continue
|
||||
sed -i 's|http://deb.debian.org|https://deb.debian.org|g' "$apt_source"
|
||||
done
|
||||
if ! apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update; then
|
||||
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
||||
[ -f "$apt_source" ] || continue
|
||||
sed -i 's|https://deb.debian.org|https://mirrors.ustc.edu.cn|g' "$apt_source"
|
||||
done
|
||||
apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update
|
||||
fi
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=2 install -y --no-install-recommends python3 python3-venv libegl1 libopengl0 libgl1 libxkbcommon0 libdbus-1-3 libfontconfig1 libglib2.0-0 libxcb-cursor0 fonts-dejavu-core libnss3 libasound2 libxcomposite1 libxdamage1 libxrandr2 libxtst6 libgbm1 libxkbfile1 libxss1 libxshmfence1 libx11-xcb1
|
||||
python3 -m venv /opt/ci-python
|
||||
/opt/ci-python/bin/python3 -m pip install 'pytest>=8,<9' 'pytest-qt>=4.4,<5' 'PySide6>=6.7,<7' 'openpyxl>=3.1,<4'
|
||||
/opt/ci-python/bin/python3 --version
|
||||
/opt/ci-python/bin/python3 -c "from PySide6.QtWebEngineCore import QWebEnginePage; from PySide6.QtWebEngineWidgets import QWebEngineView; print('Qt WebEngine native libraries loaded')"
|
||||
- name: Install supported Node and locked offline Harness dependencies
|
||||
run: |
|
||||
# The cached Node 20 image boots this runner; Harness requires Node 24.9+.
|
||||
npm install --prefix /opt/ci-node --no-audit --no-fund node@24.11.1
|
||||
node --version
|
||||
npm ci --prefix integration/dsh --no-audit --no-fund
|
||||
- name: Read-only model availability (real Harness, no remote model calls)
|
||||
run: |
|
||||
node tools/verify_dsh_model_availability.mjs
|
||||
node --test tests/integration/test_dsh_standard_compat.mjs
|
||||
node tools/verify_dsh_incident_restart.mjs
|
||||
- name: Compile application and build helpers
|
||||
run: python3 -m compileall -q src packaging tools
|
||||
- name: Core regression (no CAD or production credentials)
|
||||
run: >-
|
||||
python3 -m pytest -q
|
||||
tests/dsh/test_core.py
|
||||
tests/dsh/test_failure_policy.py
|
||||
tests/dsh/test_decision_log.py
|
||||
tests/dsh/test_experience.py
|
||||
tests/dsh/test_issue_broker.py
|
||||
tests/dsh/test_incidents.py
|
||||
tests/dsh/test_availability.py
|
||||
tests/dsh/test_availability_harness.py
|
||||
tests/dsh/test_availability_retry.py
|
||||
tests/dsh/test_health.py
|
||||
tests/ui/test_dsh_native_menu.py
|
||||
tests/ui/test_dsh_blockers.py
|
||||
tests/ui/test_dsh_blocker_sources.py
|
||||
tests/ui/test_dsh_diagnosis_lifecycle.py
|
||||
tests/ui/test_dsh_status_indicator.py
|
||||
tests/ui/test_nonblocking_controls.py
|
||||
tests/ui/test_pr10_review_edges.py
|
||||
tests/ui/test_query_observability.py
|
||||
tests/packaging/test_dsh_runtime_staging.py
|
||||
tests/packaging/test_release_configuration.py
|
||||
tests/packaging/test_self_extracting_release.py
|
||||
tests/trial_task_center/test_bom_template_contract.py
|
||||
tests/trial_task_center/test_bom_import_review.py
|
||||
tests/v1_1/test_cad_dialogs.py
|
||||
tests/v1_1/test_lxb_blocking_recovery.py
|
||||
tests/v1_1/test_nonblocking_items.py
|
||||
tests/v1_1/test_component_scope.py
|
||||
tests/v1_1/test_deferred_problem_pass.py
|
||||
tests/v1_1/test_problem_workflow.py
|
||||
tests/v1_1/test_problem_pass_outcomes.py
|
||||
tests/v1_1/test_multi_project_regression.py
|
||||
tests/v1_1/test_worker_cleanup_confirmation.py
|
||||
tests/v1_1/test_headless_core.py
|
||||
tests/v1_1/test_nonblocking_acceptance.py
|
||||
tests/v1_1/test_nonblocking_resume.py
|
||||
tests/v1_1/test_project_session_health.py
|
||||
tests/v1_1/test_bom_actual_metadata.py
|
||||
tests/v1_1/test_manual_dialog_native.py
|
||||
tests/v1_1/test_workspace_execution.py
|
||||
tests/v1_1/test_nonblocking_bom_values.py
|
||||
tests/v1_1/test_value_readback.py
|
||||
tests/dsh/test_run_journal.py
|
||||
tests/dsh/test_incident_admission.py
|
||||
tests/dsh/test_native_runtime.py
|
||||
tests/dsh/test_impact.py
|
||||
tests/dsh/test_pr27_run_finalization.py
|
||||
tests/v1_1/test_pr27_bom_failures.py
|
||||
tests/v1_1/test_pr27_netlist_pause.py
|
||||
tests/v1_1/test_native_cli_netlist.py
|
||||
tests/v1_1/test_netlist_execution.py
|
||||
tests/v1_1/test_pr27_watchdog.py
|
||||
tests/v1_1/test_pr27_pre_dispatch_failure.py
|
||||
tests/v1_1/test_pr27_process_launch.py
|
||||
tests/ui/test_pr27_confirmation_admission.py
|
||||
tests/ui/test_dsh_ai_nonblocking.py
|
||||
tests/ui/test_dsh_ai_nonblocking_main.py
|
||||
tests/ui/test_dsh_task_lifecycle.py
|
||||
tests/ui/test_dsh_operations.py
|
||||
--junitxml=build/ci-results.xml --tb=short
|
||||
- name: Report whether regressions actually executed
|
||||
if: always()
|
||||
run: |
|
||||
summary="${GITHUB_STEP_SUMMARY:-/tmp/dsh-ci-summary}"
|
||||
if [ ! -f build/ci-results.xml ]; then
|
||||
echo 'Regression tests did not execute. Inspect checkout and dependency installation steps.' | tee "$summary"
|
||||
else
|
||||
python3 -c "import xml.etree.ElementTree as E; r=E.parse('build/ci-results.xml').getroot(); s=list(r.iter('testsuite')); print('Executed:',sum(int(x.get('tests',0)) for x in s),'Failures:',sum(int(x.get('failures',0)) for x in s),'Errors:',sum(int(x.get('errors',0)) for x in s),'Skipped:',sum(int(x.get('skipped',0)) for x in s))" | tee "$summary"
|
||||
fi
|
||||
- name: Windows release scope
|
||||
run: |
|
||||
echo 'Windows PyInstaller, Qt WebEngine startup, full runtime file hashes and extracted EXE smoke are validated on the Windows build host.'
|
||||
echo 'This Linux job does not claim Windows/CAD or live model acceptance.'
|
||||
|
||||
javascript-regression:
|
||||
name: JavaScript syntax
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Check runtime syntax
|
||||
run: |
|
||||
node --check integration/dsh/start.mjs
|
||||
node --check integration/dsh/task-plugin/host.mjs
|
||||
node --check integration/dsh/task-plugin/client.js
|
||||
node --check integration/dsh/model_availability.mjs
|
||||
- name: Intervention panel and bounded model views (no model or network)
|
||||
run: |
|
||||
node tools/verify_dsh_incident_panel.mjs
|
||||
node tools/verify_dsh_dock_startup.mjs
|
||||
node tools/verify_dsh_model_results.mjs
|
||||
node tools/verify_dsh_diagnosis_cancel.mjs
|
||||
@@ -18,3 +18,5 @@ __pycache__/
|
||||
coverage.xml
|
||||
/.worktrees/
|
||||
/.superpowers/
|
||||
node_modules/
|
||||
/integration/dsh/issue-bootstrap.json
|
||||
@@ -4,72 +4,210 @@
|
||||
|
||||
面向 **Windows + DxDesigner / Expedition Enterprise 7.9.5** 的器件批量替换工具。一个工程对应一个任务,可以只替换同料号下的部分位号;支持直接编辑和 Excel BOM 导入,同批工程按顺序执行。
|
||||
|
||||
**最新版本:V1.1.3** · [下载便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.3/DxPartReplace-1.1.3.zip) · [版本说明与附件](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/tag/v1.1.3) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
本轮 BOM、Mentor 会话与 Harness 修改尚未发布,详见 [PR 开发及验收清单](docs/testing/2026-11-12-pr-checklist.md)。最新审查修复的本地启动入口为 `outputs/pr27-followup-20261113/app/DxPartReplace/启动程序.cmd`,使用同目录 `data`,候选 SHA256 为 `a96a505b1f8e…`;已验证冻结内容与正常启动退出,尚未完成 20 项实机验收。该候选复用本机不变依赖,不作为独立发行包分发。原 R17 `de35b91aaf4c…` 的记录与产物保留为历史,下方已有发行包不包含本轮修改。
|
||||
|
||||
本轮验证记录见 [本地实机验收](docs/testing/2026-11-12-final-local-validation.md)、[单次与批次分步计时](docs/testing/2026-11-12-final-step-timings.md) 和 [执行、阻塞及恢复流程图](docs/user/execution-flow-2026-11-12.md)。验收按预设的成功、无需替换与失败分别判定;已知的可重试失败任务列表徽标问题在收尾清单单列。
|
||||
|
||||
2026-11-13 的 [PR #27 审查修复与复核](docs/testing/2026-11-13-pr27-review-fixes.md) 单列最新结果:停滞计时、执行回执、BOM 错误、网表范围与确认后状态检查已修复;新候选启动及冻结校验通过,新 20 项实机仍因 Mentor 退出超时未完成,尚未发布。
|
||||
|
||||
**当前版本:V1.3.1(实机测试预发布)** · [本版变更与已知问题](docs/releases/v1.3.1.md) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
|
||||
V1.3.1 包含 PR #27 的原生 BOM 按需核验、Mentor 批内复用、前后网表比对、完整普通 Harness 及审查修复,沿用紫蓝双环图标和原生三栏 DSH 助手。错误触发自有 Mentor 自动回收,确认相关进程退出后才释放桌面;具体时限与恢复要求见[停止与恢复说明](docs/user/safe-stop-and-recovery.md)。
|
||||
|
||||
本地交付目录为 `outputs/releases/v1.3.1`,包含自解压 EXE、ZIP 便携包、SHA256、逐文件清单和本次构建验证报告。两种包均保留完整 Node/Harness、Qt WebEngine 和应用资源。升级前退出旧程序并备份 `data`,解压到新目录,完整保留 EXE 与 `_internal`,不要只替换 EXE。
|
||||
|
||||
**V1.3.1 下载** · [自解压 EXE](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.3.1/DxPartReplace-1.3.1.exe) · [ZIP 便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.3.1/DxPartReplace-1.3.1.zip) · [版本说明与附件](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/tag/v1.3.1)。本版 Mentor 退出超时仍待实机复核,最新 20 项 CAD 验收未完成。
|
||||
|
||||
本版提供[目标封装选择](docs/user/target-cell-selection.md):目标封装可留空,此时工具不主动覆写封装,可后续与中心库同步;需要指定时,在料号规则中读取并选择合法封装。BOM 保持原 11 列。
|
||||
|
||||
## 窗口操作教程
|
||||
## DSH助手:在工具内使用 AI
|
||||
|
||||
下面的 GIF 录制于 V1.1.2,操作步骤仍适用于 V1.1.3,图标与版本号以新版为准。包含创建任务、BOM 导入、错误行提示、保存、顺序执行、查看结果和开始新一轮。共 20 个步骤、47.5 秒;仅记录工具及其弹窗,CAD 等待已压缩,Excel 填表示例在录制之外完成。
|
||||
本项目已将 **DSH助手** 集成到任务中心主窗口。顶部固定显示两个入口:左侧 **任务中心**、右侧 **DSH助手**,单击即可切换,无需展开菜单;助手保留 DeepSeek Harness 官方三栏界面、SVG 动画、模型选择、会话和未发送草稿。也可以使用 `Ctrl+Shift+D` 打开助手。
|
||||
|
||||

|
||||
DSH助手围绕真实任务中心工作,支持:
|
||||
|
||||
如果图片没有自动播放,可以[单独打开 GIF](docs/user/media/v1.1.2-window-bom-tutorial.gif)。
|
||||
- 用自然语言创建任务、修改规则、复制或归档任务;工程选择和提交仍由原生窗口确认。
|
||||
- 查询任务快照、执行预检、影响范围和实际执行历史。
|
||||
- 识别已保存的逐项 Value 策略(继承、保留、Part Label、料号或自定义);可从对话打开当前任务的原生 BOM 多文件选择流程,校验后仍需核对预览并手动保存。
|
||||
- 在原生确认后按冻结范围执行任务,支持安全暂停、原队列恢复和排期授权。
|
||||
- 顶部 **AI 自动介入** 开关默认开启并记住设置;异常、BOM 校验失败、预检阻断、资源释放问题和后台操作长期无进展时自动新建诊断对话,收集脱敏证据,按规则重试或清理自有资源并核验,未解决则转受限 Git 工单。
|
||||
- 右上角使用无外框、无常驻文字的 **AI 状态灯**:绿色待机、黄色检查或介入中、红色未配置/不可用或待人工处理;关闭 **AI 自动介入** 后显示灰色静默。悬浮可查看状态、介入原因、所属任务和当前阶段,点击进入助手,右键可取消本次介入。未配置模型或 API Key 时,仅提示状态,不自动启动诊断、复盘或工单流程,也不弹窗、锁住任务操作;仍可手动打开助手配置模型。
|
||||
- AI 等待模型、复盘、工单上报及后台查询使用独立工作通道,不锁住普通任务操作。只有实际修复及核验占用任务执行通道;执行前重新核对任务证据和所属轮次,期间有新任务、未保存编辑或现场变化则放弃旧建议,保留证据且不自动重排。在助手面板取消诊断,或右键状态灯选择 **取消本次 AI 介入**,会停止模型请求、保存本地证据并转人工接管;已进入执行的 CAD 步骤仍按原暂停/强停机制安全收尾。拒绝关闭或取消未保存计划的关闭确认时,诊断继续。诊断与复盘从原生会话准备好后共享等待预算,默认 180 秒,随模型超时设置调整为 90–300 秒;运行时启动和会话创建另有最多 300 秒的等待上限,不挤占分析时间。
|
||||
- 后台读取异常先在约 200 毫秒后复查,连续失败才介入;同一持续阻塞不会周期性重复建会话,关闭再开启自动介入可主动重新诊断。面板分别显示清理次数及独立核验结果;资源自行释放显示“自行解除”,不会计作 AI 修复。资源清理使用独立控制,不显示 CAD 暂停或强停按钮。
|
||||
- 模型配置的后台检查不会取消健康的在途诊断,也不会把“配置恢复”当成用户重新开启开关。同一异常保持原事件编号,完成后不因配置状态波动重新发诊断;只恢复此前尚未开始的待处理项。仅新异常、用户重新导入或主动关闭再开启允许再次介入。
|
||||
- 本地模型配置检查仅在超时时补试一次,每次最多 3 秒;连续超时显示检查状态,在途诊断和事件去重保持有效。配置检查不请求远端模型,检查中或临时检查失败时,普通任务的原始错误仍会正常反馈。
|
||||
- 在右侧任务监管中查看运行、影响、排期、经验、工单和用量;审计损坏、证据缺失和未知计数会明确显示。
|
||||
|
||||
## 开始使用
|
||||
普通对话使用官方 Standard Harness,提供 PowerShell/Shell、工作区文件写入与编辑、goal、jobs、子智能体和原生上下文压缩,默认权限策略为 `workspace-write`。启动前设置 `DSH_PERMISSION_MODE=read-only` 并重启,可切换为官方只读策略。任务中心的任务工具仍经过原生确认与执行证据核验;通用 Shell 的实际能力不能用这些任务工具的门禁来描述。本版新建的自动异常诊断及复盘使用独立会话,只能读取绑定事件快照,限制由运行时工具守卫执行。关闭 **AI 自动介入** 停止自动诊断,普通对话的工具能力由其 Harness 权限策略控制。未配置模型时仍可使用任务监管和本地恢复功能。
|
||||
|
||||
1. 下载并完整解压便携包,保留 `DxPartReplace.exe` 和 `_internal` 的相对位置。**便携包无需安装 Python**,本机仍需安装可用的 DxDesigner、许可证和中央库。
|
||||
2. 双击 `DxPartReplace.exe`。首次运行会自动创建同目录的 `data`,保存任务、日志和执行证据。
|
||||
3. 点击左侧 **新建**,在弹窗填写工程根目录,点击 **读取工程**,勾选需要处理的 `.prj`,再点击 **创建任务**。每个工程自动创建一个任务。
|
||||
首次接入打开 **工具设置 → 模型 → 添加模型提供商 → 自定义模型 API**,填写 API 地址、协议和密钥,点击 **获取可用模型** 并选择需要的模型,也可手动填写模型 ID。保存后在输入框下方选择模型。设置保存在任务中心数据目录的专用 Harness profile,重启会保留;主工具预配置的密钥继续由 Windows DPAPI 保护,模型设置页新增的密钥使用 Harness 本地凭据存储。开发环境也可通过 `DSH_API_BASE`、`DSH_MODEL`、`DSH_API_KEY` 临时提供配置。不要把数据目录、API key 或 Git 凭据提交到 Git。
|
||||
|
||||
首次使用请在完整工程副本上验证映射与库配置。执行前保存并关闭待处理工程;工具会启动自己的后台 CAD,主桌面仍可查看其他文件。
|
||||
对话输入框的 **+ → 文件** 可上传文本、ZIP 等文件;也可通过官方工作区入口选择本地文件夹,或直接提供路径让助手读取、搜索。ZIP 会解压到新的文件夹,返回真实路径后继续分析内容,不覆盖已有文件。启动展示直接使用 Harness 官方加载动画。
|
||||
|
||||
## 方式一:通过 BOM 批量配置
|
||||
详细的能力边界、异常介入、证据链、排期和工单说明见 [DSH助手使用与监管说明](docs/user/dsh-ai-supervision.md)。源码环境可用下面的命令检查运行时门禁:
|
||||
|
||||
### 1. 导出本批模板
|
||||
```powershell
|
||||
$env:PYTHONPATH = 'src'
|
||||
python -X utf8 -m dx_productivity.dsh --doctor
|
||||
node tools/verify_dsh_runtime.mjs
|
||||
```
|
||||
|
||||
选择任务,打开顶部 **本批位号计划**,点击 **BOM 模板**。只要已导入工程,就能导出同批所有工程的一张空白表,**不需要先采集位号或填写料号规则**。
|
||||
## 图文教程
|
||||
|
||||
工程名称、工程路径自动填写。工程路径用于唯一分配任务,请保持原样;同一工程有多条替换时,可以复制该工程行。
|
||||
当前开发工作区已调整 BOM 流程:导入先保存待核验清单,确认执行后逐工程使用原生 CLI 核验,读取失败不回退 CAD;替换前后从固定副本异步导出并比对连接网表。见 [新的 BOM 流程说明](docs/user/bom-native-workflow.md) 和 [当前执行、阻塞与恢复流程图](docs/user/execution-flow-2026-11-12.md)。下方旧版截图仍用于说明控件位置,旧发行 EXE 不包含尚未发布的源码修改。
|
||||
|
||||
### 2. 在 Excel 填写替换项
|
||||
按下面 **13 步**,完成“创建任务 → 填 BOM → 导入校验 → 保存计划 → 替换 → 查看结果”。本例有两个工程 `Audio_D2128`、`Audio_T605A`,各自只替换 `RV05`,保留同料号下的 `RV11`。
|
||||
|
||||
保留原模板的 11 列表头,按需要填写:
|
||||
截图来自真实窗口:起始页为 V1.1.3,后续操作图取自已验收的 V1.1.2 业务流程,操作位置相同。点击图片可以放大查看;BOM 填写图为示意。
|
||||
|
||||
| 列名 | 填写内容 |
|
||||
### 第 1 步:解压并打开应用
|
||||
|
||||
推荐下载上方自解压 EXE,双击后选择新的解压目录,完成后运行目录内的 DxPartReplace.exe。自解压引擎已内置,无需另外安装 7-Zip,也无需通过 Windows 资源管理器解压。
|
||||
|
||||
[下载 V1.2.2 便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.2.2/DxPartReplace-1.2.2.zip),**完整解压**,双击 `DxPartReplace.exe`。保留它与 `_internal` 的相对位置,无需安装 Python;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
|
||||
打开后看到下图主窗口。首次使用请准备完整的工程副本,执行前保存并关闭待处理工程。
|
||||
|
||||

|
||||
|
||||
### 第 2 步:新建任务,读取工程目录
|
||||
|
||||
点击左下方 **新建**。在弹窗中填写工程根目录,或点击 **选择目录**,再点击 **读取工程**。
|
||||
|
||||
**完成标志:** 弹窗列表显示该目录下找到的 `.prj` 工程。
|
||||
|
||||

|
||||
|
||||
### 第 3 步:勾选工程,创建任务
|
||||
|
||||
勾选这次要处理的工程,点击右下角 **创建任务**。本例勾选两个工程。
|
||||
|
||||
**完成标志:** 左侧出现两个任务,**一个工程对应一个任务**。
|
||||
|
||||

|
||||
|
||||
### 第 4 步:导出本批 BOM 模板
|
||||
|
||||
选中左侧任意一个任务,切换到顶部 **本批位号计划**,点击 **BOM 模板**,选择文件保存位置。
|
||||
|
||||
**完成标志:** 导出的 Excel 包含本批所有工程,工程名称和完整路径已经填写好。此时不需要先采集位号,也不需要先添加料号规则。
|
||||
|
||||

|
||||
|
||||
### 第 5 步:在 Excel 中填写替换项
|
||||
|
||||
打开刚导出的模板,**保留全部 11 列表头以及原工程路径**。同一工程需要填写多条替换时,复制该工程行后再填写。
|
||||
|
||||
本例在两个工程行中分别填写相同的旧、新料号和 `RV05`:
|
||||
|
||||

|
||||
|
||||
| 要填写的列 | 填法 |
|
||||
| --- | --- |
|
||||
| `old_part_number` | 工程当前的旧料号 |
|
||||
| `new_part_number` | 中央库中的目标新料号 |
|
||||
| `refdes` | 要处理的位号,例如 `RV05`;一行可以写多个位号,以逗号、分号、空格或顿号分隔 |
|
||||
| `enabled` | `TRUE` / `是` 表示替换,`FALSE` / `否` 表示保留 |
|
||||
| `sync_nc` | 是否同步 NC,默认开启,可逐行关闭 |
|
||||
| `custom_value` | 可选的自定义 Value;填写后优先写入,留空沿用任务的 Value 策略 |
|
||||
| `old_part_number` | 工程当前的旧料号,本例为 `4100-CA0000-T7` |
|
||||
| `new_part_number` | 中央库中的目标新料号,本例为 `4100-CA0000-T0` |
|
||||
| `refdes` | 要替换的位号,本例为 `RV05`;多个位号可用逗号、分号、空格或顿号分隔 |
|
||||
| `enabled` | `TRUE` / `是` 表示替换,`FALSE` / `否` 表示保留;留空默认替换,建议显式填写 |
|
||||
| `sync_nc` | 是否同步 NC,默认开启;按需要填 `TRUE` 或 `FALSE` |
|
||||
| `custom_value` | 可选的自定义 Value;留空时使用任务的 Value 策略 |
|
||||
|
||||
例如,首次配置的旧料号同时对应 `RV05`、`RV11`,只想替换 `RV05`,可以只填写 `RV05` 的启用项;首次采集的其余位号默认不替换。
|
||||
料号按**文本**填写,不要使用公式。相同位号出现在多个图页时,补填 `schematic_name`、`sheet_number` 或 `uid` 消除歧义。旧新相同、链式或循环替换会被拒绝。
|
||||
|
||||
**再次导入时,BOM 中未列出的既有计划行会保留原勾选和编辑状态。** 如果这轮只想执行 BOM 列出的目标,请在预览中检查其他启用行,并明确取消勾选,或在 BOM 中填写对应的 `enabled=FALSE` 行。
|
||||
**本例首次导入只列出 RV05,采集到的 RV11 默认保留。再次导入时,未列出的既有计划行会保留原勾选;需要停用时,请取消勾选或明确填写 `enabled=FALSE`。**
|
||||
|
||||
同名位号分布在不同图页时,补填 `schematic_name`、`sheet_number` 或 `uid` 消除歧义。`enabled` 留空默认替换,`sync_nc` 留空默认开启;建议显式填写。料号按文本填写;导入不接受公式,也不接受旧新相同、链式或循环替换。
|
||||
填完后保存 Excel 文件。
|
||||
|
||||
### 3. 导入并检查报告
|
||||
### 第 6 步:导入填写好的 BOM
|
||||
|
||||
点击 **导入 BOM**,选择填好的文件。工具先校验表格格式、工程归属,以及能从表中确定的重复声明和料号冲突;通过后,只核验本表涉及的工程。已有位号库存覆盖旧料号时直接匹配;缺少库存时优先通过原生 CLI 采集,不可用时才回退到后台 CAD 只读采集。
|
||||
返回应用,在 **本批位号计划** 点击 **导入 BOM**,选择刚保存的 Excel,等待校验结果。
|
||||
|
||||
新一轮导入开始后,旧报告会清除,界面显示读表、获取库存、匹配位号等进度;取消选择文件则保留原报告。导入失败或取消会保留已有预览和手动编辑。保存和执行前仍会核验工程。
|
||||
当前开发版导入先核对表格和工程归属,保存待核验请求;确认执行后,逐工程用原生 CLI 查询需要的器件,读取失败不回退 CAD。**导入不会执行替换。** 下图为旧发行版的控件示例,当前流程以导入报告和执行确认展示的范围为准。
|
||||
|
||||
- 校验报告显示通过、失败、未检查的行数,并标明 Excel 行号及原因。
|
||||
- 有错误时,整批不会生成新的可保存预览,也不会部分写入计划。修正后重新导入。
|
||||
- 全部通过后,先得到预览;可以切换任务,检查或修改各工程的位号计划。
|
||||

|
||||
|
||||
### 4. 保存并执行
|
||||
### 第 7 步:检查导入报告,有错误先修正
|
||||
|
||||
确认预览后点击 **保存本批位号计划**;普通单工程编辑时按钮显示 **保存位号计划**。
|
||||
点击校验状态条中的 **详情**。报告会显示通过、失败、未检查的行数,以及 Excel 行号和错误原因。
|
||||
|
||||
点击 **执行当前任务** 处理当前工程,或点击左侧 **顺序执行本批任务** 处理同批工程。确认范围后,工具逐项执行原生 Replace Part、保存、关闭并重新打开核验。
|
||||
下图是故意填入不存在位号的示例:**通过 2 行、失败 1 行**,错误定位到 Excel 第 4 行。按报告修正 Excel、保存文件,再次点击 **导入 BOM**。
|
||||
|
||||
**左侧搜索和显示排序只影响浏览,不改变本批执行范围。** 调整执行顺序请使用上移、下移任务按钮。
|
||||
**有错误时不会部分保存。全部通过后再继续下一步。** 新一次导入开始后旧报告会清除;导入失败仍保留已有预览和手动编辑,取消文件选择则保留原报告。
|
||||
|
||||
## 方式二:直接在界面编辑
|
||||

|
||||
|
||||
### 第 8 步:核对每个工程的预览,保存计划
|
||||
|
||||
报告全部通过后,关闭详情,依次选中左侧各任务,核对:
|
||||
|
||||
- 需要替换的 `RV05` 已勾选,新料号正确。
|
||||
- 需要保留的 `RV11` 未勾选。
|
||||
- 自定义 Value、同步 NC 等逐行设置符合预期。
|
||||
|
||||
确认后点击 **保存本批位号计划**;单工程编辑或保存完成后,按钮显示 **保存位号计划**。
|
||||
|
||||
**完成标志:** 底部提示计划保存完成。下图为保存后的状态,只有 RV05 启用。
|
||||
|
||||

|
||||
|
||||
### 第 9 步:按任务确认 Value 与封装设置
|
||||
|
||||
选中一个任务,按需设置顶部 **Value 策略**:勾选后,将替换后的 **Part Label 写入 Value**;逐行自定义 Value 优先。处理多个工程时,分别确认各任务的开关。
|
||||
|
||||
本例开启该选项。**复制的是 Part Label,不是把新料号直接写进 Value。**
|
||||
|
||||

|
||||
|
||||
目标封装可留空,工具不主动覆写 Cell Name,可后续与中心库同步。需要本轮指定时,在 **本批料号规则** 中编辑对应旧、新料号规则,读取并选择合法封装,核对计划中的选择后保存。详见[封装操作说明](docs/user/target-cell-selection.md)。
|
||||
|
||||
### 第 10 步:选择执行范围,确认后开始
|
||||
|
||||
只处理选中工程,点击底部 **执行当前任务**;处理同批工程,点击左侧 **顺序执行本批任务**。本例使用后者。
|
||||
|
||||
在确认弹窗中核对工程数量和执行范围,确认无误再点击 **Yes / 是**。
|
||||
|
||||

|
||||
|
||||
**搜索和显示排序只影响浏览,不改变本批执行范围。** 调整实际执行顺序,请使用左下方 **上移任务 / 下移任务**。
|
||||
|
||||
### 第 11 步:等待后台执行和保存重开核验
|
||||
|
||||
工具按工程顺序执行替换,保存、关闭并重新打开核验。左侧显示各任务状态,底部显示当前阶段和进度。
|
||||
|
||||

|
||||
|
||||
运行期间可以在主桌面查看其他文件,请勿打开或修改本次正在处理的同一工程。需要暂停时,点击 **完成当前项后暂停**,等待当前步骤安全收尾。
|
||||
|
||||
普通暂停等待当前项到达安全边界;执行错误或持续停滞会先写入保护记录,再自动回收自有 Mentor。也可手动选择 **强制结束…**;结果不确定时先核验恢复,不能直接重复替换。详见[停止、强制结束与恢复](docs/user/safe-stop-and-recovery.md)。
|
||||
|
||||
**完成标志:** 任务显示已完成,底部提示本批执行结束。还要打开结果核对,不能只看进度条。
|
||||
|
||||
### 第 12 步:查看实际修改结果与日志
|
||||
|
||||
选中要检查的任务,点击右下角 **替换结果 / 日志**,查看 **位号替换结果**。
|
||||
|
||||
本例应看到:`RV05` 的旧料号为 `4100-CA0000-T7`,回读料号为 `4100-CA0000-T0`,核验状态为 **已保存并核验**。
|
||||
|
||||

|
||||
|
||||
需要排查原因时,切到 **完整日志**,查看具体阶段和耗时;可用 **上一页日志 / 最新日志** 翻页。失败、未命中或未核验不会被当作已保存成功。
|
||||
|
||||

|
||||
|
||||
### 第 13 步:需要继续替换时,开始新一轮
|
||||
|
||||
已完成任务可以点击底部 **开始新一轮**:
|
||||
|
||||

|
||||
|
||||
核对弹窗中的任务范围,再确认。
|
||||
|
||||

|
||||
|
||||
**完成标志:** 已完成任务恢复为待配置,旧计划、命令、快照和日志归档保留。接下来按工程**当前料号**重新填 BOM 或修改规则,重新采集、保存后执行;旧轮次通过 **查看轮次证据** 打开。
|
||||
|
||||
出现状态不确定或恢复提示时,先使用 **核验并恢复**,按[恢复说明](docs/user/interrupted-recovery.md)处理。
|
||||
|
||||
## 不使用 Excel:直接在界面编辑
|
||||
|
||||
1. 在 **本批料号规则** 添加旧、新料号,按需配置 Value 与同步 NC;规则提供采集条件和默认值。
|
||||
2. 切到 **本批位号计划**,点击 **采集所有匹配位号**。
|
||||
@@ -78,7 +216,7 @@
|
||||
|
||||
两种方式可以配合使用,不必为了编辑而先导出 Excel。切换任务会保留编辑草稿;关闭时有未保存内容会提示保存全部、放弃或取消。
|
||||
|
||||
## Value、暂停与执行结果
|
||||
## Value、NC 与日志选项
|
||||
|
||||
- 顶部 **Value 策略** 开关控制当前任务是否将替换后的 Part Label 写入 Value;逐行自定义 Value 优先。处理多个任务时,分别确认各任务的开关。
|
||||
- **同步 NC** 是逐行选项,默认开启,可以关闭。
|
||||
@@ -86,12 +224,6 @@
|
||||
- 点击 **替换结果 / 日志** 查看图页、位号、旧料号、实际回读料号和核验状态。失败、未命中、未核验不会显示为已保存成功;完整日志支持翻页。
|
||||
- 日志和 BOM 详情按需打开,关闭后释放窗口;数据和证据仍保留。
|
||||
|
||||
## 完成后再执行一轮
|
||||
|
||||
已完成任务可以点击 **开始新一轮**。工具归档旧计划、命令、快照与执行证据,清空过期位号基线,将同批已完成任务恢复为待配置。
|
||||
|
||||
接着按工程**当前料号**重新填 BOM 或修改规则,重新采集、保存并执行。旧轮次可通过 **查看轮次证据** 打开。出现状态不确定或恢复提示时,先使用 **核验并恢复**,不要直接重复执行。
|
||||
|
||||
## 更新程序与保留数据
|
||||
|
||||
先关闭旧程序并备份 `data`。完整解压新包,用新 EXE 和 `_internal` 配合原 `data` 使用;不要混用不同版本的依赖目录,也不要删除原数据。
|
||||
@@ -110,6 +242,12 @@ DxPartReplace/
|
||||
|
||||
## 验证范围与已知限制
|
||||
|
||||
历史 V1.3.0 本地包的 1358 项回归、图标、版本资源及 66,805 个文件校验记录见 [V1.3.0 构建记录](docs/releases/v1.3.0-build.md),不作为 V1.3.1 的验收结果。V1.3.1 的实际构建验证记录随 Release 附件提供;本版未宣称完成真实 CAD 20 项验收。官方 Harness 前端保留自身的预览版标记,产物未做代码签名。
|
||||
|
||||
V1.1.4 Beta 4 沿用批次后台资源管理:一次 BOM 导入或顺序执行共用一个私有桌面,CAD 按需启动并在同批工程间复用,批次结束统一退出。若提示 **资源释放待处理**,已保存核验的结果保留,请点击 **重新清理资源**;该操作只清理后台资源,不会再次替换。旧的工程保护锁仍按“核验并恢复”处理。设计、异常边界与实机结果见[批次运行时验收记录](docs/testing/2026-10-21-batch-private-runtime.md)。
|
||||
|
||||
资源释放会追加日志:在 **替换结果 / 日志 → 完整日志** 查看本批开始释放、释放成功/失败及重新清理的结果。独立文件位于 `data/batch-resources/<批次ID>/resource-release.log`,记录批次、桌面、CAD PID、退出码、释放耗时、句柄关闭和桌面消失的分别确认,以及失败原因;同时保留 `session.json` 的原始释放证明。重启后重新检查也会追加记录,不覆盖原失败日志。
|
||||
|
||||
V1.1.3 的业务代码沿用本机已验收候选:两工程实际替换和独立回读、362 字符工程路径、BOM 失败/成功导入、Part Label 写入 Value、可选封装、旧版任务数据副本、新轮次和自有后台资源释放。新增图标及版本元数据另做冻结包检查。详见[验收报告](docs/testing/2026-10-19-release-preparation.md)。
|
||||
|
||||
当前按 **evaluation-only(评估试用)** 交付。不同机器、中央库和 CAD 版本仍需用工程副本确认兼容性;替换回读通过不代表已通过 Packager、ERC 或网表检查。
|
||||
@@ -128,9 +266,13 @@ py -3.12 -m venv .venv
|
||||
|
||||
源码默认数据目录为 `%LOCALAPPDATA%\DxProductivity\trial-task-center`,可用 `DX_TASK_CENTER_HOME` 指定独立目录。运行回归:`python -m pytest -q`;构建使用 `packaging/Build-DxPartReplace.ps1`。
|
||||
|
||||
- [历史窗口 GIF(补充演示,录制于 V1.1.2)](docs/user/media/v1.1.2-window-bom-tutorial.gif)
|
||||
- [完整桌面使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
- [中断核验与恢复](docs/user/interrupted-recovery.md)
|
||||
- [Value 与属性继承](docs/user/value-copy-and-layout.md)
|
||||
- [历史流程和独立 CLI 说明](docs/user/trial-task-center.md)
|
||||
- [CLI 与原生批处理集成](docs/user/part-replacement.md)
|
||||
- [V1.1.3 版本说明](docs/releases/v1.1.3.md)
|
||||
- [V1.3.1 实机测试版说明](docs/releases/v1.3.1.md)
|
||||
- [V1.3.0 版本说明](docs/releases/v1.3.0.md)
|
||||
- [V1.3.0 构建记录与校验值](docs/releases/v1.3.0-build.md)
|
||||
@@ -0,0 +1,18 @@
|
||||
# PR #17 提供方迁移修复
|
||||
|
||||
目标:修复 PR #17 评论 #168 的旧地址与新密钥错配,保留原生自定义提供方及其独立凭据。
|
||||
|
||||
设计:`dx` 且引用启动环境 `DSH_API_KEY` 的配置归主工具管理,每次启动从当前主工具配置完整刷新;独立凭据的提供方保留。Harness 的插件 config 整块替换,因此用户 providers 存在时须同时纳入当前主工具提供方。迁移旧生成配置时,生成的 dx 默认模型回到当前主工具默认值;原生用户选定的有效 dx 模型和自定义提供方默认模型继续保留。没有主工具配置时清除旧应用管理的路由与默认选择。修改前保存原文件备份,重复初始化不重复改写。
|
||||
|
||||
凭据来源补充:上游本地保存的引用优先于环境变量。显式 dx 使用本地保存的 DSH_API_KEY 时,整条路由和密钥作为原生用户覆盖保留。启用了主工具模型、却只有孤立本地密钥时拒绝启动,不从历史 policy 猜测地址;没有主工具模型时不阻断其他独立提供方。首次正常启动即在原生用户配置中物化完整的应用 dx,确保此后模型页仅修改密钥也能保留它所属的地址和模型。配置准备不修改凭据文件,解析错误不包含密钥原文。
|
||||
|
||||
绑定证明以 Harness 真实 composition 为准,保留 name assertion / insert 语义,拒绝凭据、模型适配器和默认模型的重复 ID。从有效 credentials 配置解析实际文件路径。启动前确认最终应用路由与当前配置一致;桌面接入前再次核对实际凭据来源和仅在内存中的密钥摘要,避免环境与文件来源互换。
|
||||
|
||||
不采用只删除旧 dx 的方案:用户的 providers 整块覆盖会遮住新的应用提供方。不采用保留旧地址并换密钥的方案:会破坏凭据绑定。
|
||||
|
||||
执行步骤:
|
||||
|
||||
- [x] 新增真实 Harness/本机 HTTP 回归,覆盖旧 overlay、更换提供方、已有迁移结果、自定义提供方/默认模型、重复启动及主工具配置清除;先确认当前代码失败。
|
||||
- [x] 在启动配置准备阶段按来源刷新应用提供方,保留其他原生配置及凭据文件。
|
||||
- [x] 跑 HTTP 回归、现有 runtime/profile 检查、Python 回归和实际 Qt 模型设置点击;未复现点击失败,保留原脚本。
|
||||
- [x] 更新验收记录与 PR 描述,检查 diff 和秘密泄露后提交、推送到现有 PR;不合并。
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"version": "1.1.4-beta.1",
|
||||
"release_tag": "v1.1.4-beta.1",
|
||||
"classification": "beta",
|
||||
"prerelease": true,
|
||||
"code_commit": "e46982af6c3ea145cfa04486a54227ca02ecdd89",
|
||||
"application_entry_matches_source": true,
|
||||
"vbs_match_source": {
|
||||
"QuickPartReplace.vbs": true,
|
||||
"NativeSnapshotReader.vbs": true
|
||||
},
|
||||
"data_directory_excluded": true,
|
||||
"gif_recorded_version": "1.1.2",
|
||||
"acceptance_report": "docs/testing/2026-10-21-batch-private-runtime.md",
|
||||
"build_log": "build/release-1.1.4-beta.1-build.log",
|
||||
"zip_sha256": "acf9f13617b5c25ddfe4c9e4df90481f6ca7838329bca1c201e7c1fdfe27d4a1",
|
||||
"zip_bytes": 60266953,
|
||||
"file_count": 396,
|
||||
"extracted_zip_smoke": true,
|
||||
"exe_sha256": "c0a43c302568206c9bbfc02203daded1df8e19df1d2083c2f0961eddd213a900",
|
||||
"build_verification": {
|
||||
"passed": 822,
|
||||
"warnings": 1,
|
||||
"seconds": 211.19
|
||||
},
|
||||
"frozen_helper_verification": {
|
||||
"passed": true,
|
||||
"version": "1.1.4-beta.1",
|
||||
"windows_numeric_version": "1.1.4.1",
|
||||
"windows_prerelease_flag": true,
|
||||
"frozen_marker_written": true,
|
||||
"stale_marker_rejected": true,
|
||||
"commands": [
|
||||
"probe",
|
||||
"checkpoint",
|
||||
"quit"
|
||||
],
|
||||
"opened_projects": [],
|
||||
"resources_released": true,
|
||||
"observer_errors": []
|
||||
},
|
||||
"business_module_count": 84,
|
||||
"business_modules_all_match_source": true
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
# V1.1.4 Beta 1 构建与发布记录
|
||||
|
||||
源提交:`e46982af6c3ea145cfa04486a54227ca02ecdd89`。本次后续提交只补充构建记录,程序代码不变。版本显示为 `1.1.4-beta.1`,Python 包元数据为等价的 `1.1.4b1`;Windows 数字版本为 `1.1.4.1`,设置 `VS_FF_PRERELEASE`。
|
||||
|
||||
## 本次检查
|
||||
|
||||
| 项目 | 结果 |
|
||||
| --- | --- |
|
||||
| 标准打包检查 | 822 passed,211.19 秒;1 条已知 pywinauto COM 模式提示 |
|
||||
| 冻结代码对应源码 | 84 个业务模块及应用入口编译码全部一致,两份 VBS SHA256 一致 |
|
||||
| ZIP 解压 | 完整性检查、逐文件校验和解压后的 EXE 启动/干净退出通过 |
|
||||
| 版本信息 | 数字版本 1.1.4.1 与 Windows 预发布标志通过 |
|
||||
| 冻结保护标记 CLI | 当前尝试写入成功;旧代次被拒绝且原记录不变 |
|
||||
| 冻结 CAD 助手 | 实际调用 ZIP 解压 EXE 的 probe → checkpoint → quit,通过 |
|
||||
| CAD 与桌面释放 | CAD/退出助手码均为 0,批次 released,pending 为空,释放日志保留 |
|
||||
| 主桌面 | Default 保持不变,无自有 CAD 前台/主桌面污染,无观察错误 |
|
||||
| 用户数据 | 包内不含运行数据目录、任务数据库、现场日志或工单附件 |
|
||||
|
||||
本轮冻结助手验证没有打开任何工程,也没有重复替换;真实两工程替换范围和限制沿用[已记录的源码实机验收](../testing/2026-10-21-batch-private-runtime-live.md)。
|
||||
|
||||
初次便携包暂存被隐私目录检查阻止:仓库公开的 `docs/testing/data` 内有三份已提交的验收 JSON,被宽泛的 `data` 名称检查误判。保留失败暂存,调整为明确禁止包根运行数据和所有数据库/日志文件,在新暂存目录重新生成并通过;未放行用户数据。
|
||||
|
||||
## 附件
|
||||
|
||||
- `DxPartReplace-1.1.4-beta.1.zip`:60,266,953 字节;包含程序、完整离线文档、GIF 和空 BOM 模板。
|
||||
- `BOM-template.xlsx`、`window-tutorial-1.1.4-beta.1.gif`、`release-manifest-1.1.4-beta.1.json`、`SHA256SUMS-1.1.4-beta.1.txt`。
|
||||
- ZIP SHA256:`acf9f13617b5c25ddfe4c9e4df90481f6ca7838329bca1c201e7c1fdfe27d4a1`。
|
||||
- [紧凑构建记录](v1.1.4-beta.1-build.json);完整逐文件清单在发布附件的 manifest。
|
||||
|
||||
新发布与四个旧发布都设为 Beta 预发布。旧发布只增加 Beta 标题并调整 prerelease 状态,逐一确认原标签、正文和附件 ID/名称/大小不变。新附件先上传到草稿,逐项回下载核对 SHA256,再转为公开 Beta。
|
||||
|
||||
本机原始证据位于 `.worktrees/batch-runtime/build/release-1.1.4-beta.1`,构建日志为同工作树 `build/release-1.1.4-beta.1-build.log`。
|
||||
@@ -0,0 +1,31 @@
|
||||
# DxPartReplace V1.1.4 Beta 1
|
||||
|
||||
发布日期:2026-10-21。**Beta 预发布版**。此前发布也统一标记为 Beta,原标签、附件及下载地址保留。
|
||||
|
||||
## 下载与升级
|
||||
|
||||
完整解压 `DxPartReplace-1.1.4-beta.1.zip`,运行 `DxPartReplace.exe`。无需安装 Python;本机需要可用的 DxDesigner / Expedition Enterprise 7.9.5、许可证和中央库。
|
||||
|
||||
升级前关闭旧程序并备份 `data`,保留原数据,配套更新 EXE 与 `_internal`。不要让不同版本同时打开同一数据目录;历史保护锁不会自动解除。
|
||||
|
||||
[中文图文教程](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.1/README.md)。包内包含离线图文教程、GIF、默认 11 列 BOM 模板、构建清单和 SHA256 校验。教程图片及 GIF 沿用已验收的旧版录制,新增的“重新清理资源”与释放日志以本版界面为准。
|
||||
|
||||
## 本版更新
|
||||
|
||||
- 每次 BOM 导入和顺序执行分别作为一个批次,共用一个私有桌面;CAD 按需启动,在批内跨工程复用,批末统一退出。
|
||||
- 工程之间确认上一工程已关闭,重新核验路径、中心库、图页及目标身份;保留保存、关闭、重开回读流程。
|
||||
- 首次可能写入前持久化保护标记。只有明确证明尚未修改且旧资源已释放时,允许重建重试一次;身份冲突、已修改或结果不确定时不自动重放。
|
||||
- 释放失败保留已保存并核验的任务结果,阻止新批次,提供“重新清理资源”;清理操作不重复替换,重启后仍检查未收尾批次。
|
||||
- 释放日志显示开始、成功、失败和重新检查,包含耗时、CAD退出码、句柄关闭与桌面消失的分别确认、失败原因。同批各任务“完整日志”可见,独立文件位于 `data/batch-resources/<批次ID>/resource-release.log`。
|
||||
- 修复 BOM 错误回报与清理错误同时发生时丢失逐行报告的问题;清理失败只保留诊断,不提供可应用的部分预览。
|
||||
- 保留原生 CLI 优先采集,减少不必要的 CAD 回退;原生会话重试耗尽时停止整批。
|
||||
|
||||
## 验证与范围
|
||||
|
||||
两个全新工程副本完成 BOM 导入、实际替换、保存重开、独立完整属性/连接回读和资源释放。两版本保存结果一致;各工程 57 个组件、103 个引脚连接,56 个非目标组件属性和连接不变,源工程及中心库 `.lmc` 哈希不变。
|
||||
|
||||
相同样例单次对照:BOM 加执行总耗时 170.860 → 151.859 秒,私有桌面创建 6 → 2 次,CAD 启动 2 → 1 次。该结果不代表固定加速比例;BOM 单次测量 2.250 → 3.187 秒。
|
||||
|
||||
工单完整库存覆盖的 31 行回放为 20 通过、11 失败,未强行放行不匹配项;其余 406 条替换行、96 个工程未获对应完整库存,不能宣称全部工程已实机通过。用户机器的外部桌面引用残留根因尚未在本机复现。
|
||||
|
||||
详见[批次运行时验收](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.1/docs/testing/2026-10-21-batch-private-runtime.md)、[实机对照](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.1/docs/testing/2026-10-21-batch-private-runtime-live.md)和[释放日志验证](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.1/docs/testing/2026-10-21-resource-release-logging.md)。
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"version": "1.1.4-beta.2",
|
||||
"release_tag": "v1.1.4-beta.2",
|
||||
"classification": "beta",
|
||||
"prerelease": true,
|
||||
"code_commit": "1ee519e5d25e4052f20b7b32ad18dcd837eb948d",
|
||||
"application_entry_matches_source": true,
|
||||
"vbs_match_source": {
|
||||
"QuickPartReplace.vbs": true,
|
||||
"NativeSnapshotReader.vbs": true
|
||||
},
|
||||
"data_directory_excluded": true,
|
||||
"gif_recorded_version": "1.1.2",
|
||||
"build_log": "build/release-1.1.4-beta.2-build.log",
|
||||
"zip_sha256": "21d242d1c4bd015f3b140d01f08e6779be0b6408f4d0deef09b457ec22a00325",
|
||||
"zip_bytes": 60682629,
|
||||
"file_count": 402,
|
||||
"extracted_zip_smoke": true,
|
||||
"exe_sha256": "0247347e33389025e9dab61065040a1589ed14876eaa9db5cf8fabd24604c360",
|
||||
"build_verification": {
|
||||
"passed": 824,
|
||||
"warnings": 1,
|
||||
"seconds": 177.39
|
||||
},
|
||||
"packaging_checks_passed": 2,
|
||||
"acceptance_guard_checks_passed": 15,
|
||||
"business_module_count": 84,
|
||||
"business_modules_all_match_source": true,
|
||||
"frozen_main": {
|
||||
"passed": true,
|
||||
"win32timezone_archived": true,
|
||||
"process_creation_time_read": true,
|
||||
"resources_released": true,
|
||||
"windows_numeric_version": "1.1.4.2",
|
||||
"windows_prerelease_flag": true
|
||||
},
|
||||
"ui_acceptance": {
|
||||
"full_exe_all_program_files_match_zip": true,
|
||||
"template_columns": 11,
|
||||
"imports": [
|
||||
{
|
||||
"file": "BOM-含错误位号.xlsx",
|
||||
"seconds": 9.889999999999418,
|
||||
"title": "本批 BOM 校验未通过 · 通过 2 / 失败 1 / 未检查 0 行 · 详情"
|
||||
},
|
||||
{
|
||||
"file": "BOM-替换RV05.xlsx",
|
||||
"seconds": 4.734000000011292,
|
||||
"title": "本批 BOM 校验通过 · 通过 2 / 失败 0 / 未检查 0 行 · 详情"
|
||||
}
|
||||
],
|
||||
"search_preserves_tasks": true,
|
||||
"execution_seconds": 209.40600000001723,
|
||||
"completed_tasks": 2,
|
||||
"cad_starts": 1,
|
||||
"queue_desktop_generations": 1,
|
||||
"all_batches_released": true,
|
||||
"results_window_reopened": true,
|
||||
"observer_initial_path_mismatch_retained": true,
|
||||
"read_only_post_verification_passed": true,
|
||||
"replacement_replayed": false
|
||||
},
|
||||
"independent_graphs": {
|
||||
"passed": true,
|
||||
"components_each": 57,
|
||||
"pin_connections_each": 103,
|
||||
"unchanged_non_targets_each": 56,
|
||||
"source_hashes_unchanged": true,
|
||||
"library_lmc_hash_unchanged": true
|
||||
},
|
||||
"acceptance_report": "docs/testing/2026-10-23-issue-2-frozen-runtime.md",
|
||||
"old_release": {
|
||||
"tag": "v1.1.4-beta.1",
|
||||
"withdrawn_to_draft": true,
|
||||
"public_release_api_status": 404,
|
||||
"git_tag_retained": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
# V1.1.4 Beta 2 构建与发布记录
|
||||
|
||||
日期:2026-10-23。源快照 `1ee519e5d25e4052f20b7b32ad18dcd837eb948d`;后续提交仅补充本次构建记录。
|
||||
|
||||
修复工单 #2 的 pywin32 动态依赖漏打包。版本 `1.1.4-beta.2`,Python 元数据 `1.1.4b2`,Windows 数字版本 `1.1.4.2`,带预发布标志。
|
||||
|
||||
| 验证 | 结果 |
|
||||
| --- | --- |
|
||||
| 发布门禁 | 824 passed,177.39 秒;1 条既有 pywinauto STA COM 警告 |
|
||||
| 额外检查 | 打包配置 2 项,验收脚本 15 项通过 |
|
||||
| 冻结主进程 | 最终 ZIP 解压 EXE 实际读取工作进程创建时间,确认进程退出和桌面释放 |
|
||||
| 源码一致性 | 84 个业务模块、应用入口编译码、两份 VBS 哈希一致 |
|
||||
| 完整 EXE 双工程 UI | 创建任务、默认模板导出、错误/正确 BOM 导入、保存计划、实际替换、保存重开、结果日志重开通过 |
|
||||
| 执行批次 | 209.406 秒;一次 CAD 启动,一个桌面代次;资源最终释放 |
|
||||
| 独立前后对照 | 每工程 57 组件、103 引脚连接,56 个非目标组件属性/连接不变,目标料号和 Value 正确 |
|
||||
| 原始数据 | 源工程目录完整哈希、中央库 .lmc 哈希不变 |
|
||||
| 最终 ZIP | 完整性、解压 smoke、逐文件与已验收 UI 包比对通过;不含运行 data、任务数据库或现场日志 |
|
||||
|
||||
旧外部观察器未扫描批次资源目录造成的验收断言保留在原始记录中。已补齐观察器并完成测试,采用只读续验确认已完成的执行和资源释放,没有再次替换。细节见[工单修复与实机记录](../testing/2026-10-23-issue-2-frozen-runtime.md)。
|
||||
|
||||
ZIP:`DxPartReplace-1.1.4-beta.2.zip`,60,682,629 字节。SHA256:`21d242d1c4bd015f3b140d01f08e6779be0b6408f4d0deef09b457ec22a00325`。
|
||||
|
||||
附件包括便携 ZIP、默认 BOM 模板、GIF、SHA256SUMS 和逐文件 manifest。GIF 沿用 1.1.2 教程,包内说明已标明。
|
||||
|
||||
Beta 1 已撤回为草稿,匿名发布 API 返回 404;其 Git 标签和原附件保留用于回溯。Beta 2 先以草稿上传,回下载核对附件哈希后再公开为 Beta。紧凑证据见[构建 JSON](v1.1.4-beta.2-build.json)。本机原始证据为 `build/release-1.1.4-beta.2`。
|
||||
@@ -0,0 +1,43 @@
|
||||
# DxPartReplace V1.1.4 Beta 2
|
||||
|
||||
发布日期:2026-10-23。**Beta 预发布版**。替代已撤回的 V1.1.4 Beta 1;旧 Git 标签保留供回溯,旧发布不再提供公开下载。
|
||||
|
||||
## 下载与升级
|
||||
|
||||
完整解压 `DxPartReplace-1.1.4-beta.2.zip`,运行 `DxPartReplace.exe`。无需安装 Python;本机需要可用的 DxDesigner / Expedition Enterprise 7.9.5、许可证和中央库。
|
||||
|
||||
升级前关闭旧程序并备份 `data`,保留原数据,配套更新 EXE 与 `_internal`。不要让不同版本同时打开同一数据目录;历史保护锁不会自动解除。
|
||||
|
||||
[中文图文教程](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.2/README.md)。包内包含离线图文教程、GIF、默认 11 列 BOM 模板、构建清单和 SHA256 校验。教程图片及 GIF 沿用已验收的旧版录制,新增的“重新清理资源”与释放日志以本版界面为准。
|
||||
|
||||
## Beta 2 修复
|
||||
|
||||
- 修复工单 #2(DXT-20261023-A1F7FADF):发布包缺失 `win32timezone`,导致 BOM 导入记录采集进程创建时间时失败。显式打包 pywin32 的动态依赖,无需用户安装 Python。
|
||||
- 发布门禁改为在完整 EXE 主进程中验证私有桌面、子进程启动、创建时间记录及最终释放,防止源码 Python 的完整环境掩盖打包缺失。
|
||||
- 不改变替换、保存回读、保护锁及资源恢复规则。
|
||||
|
||||
## 继承的批次功能
|
||||
|
||||
- 每次 BOM 导入和顺序执行分别作为一个批次,共用一个私有桌面;CAD 按需启动,在批内跨工程复用,批末统一退出。
|
||||
- 工程之间确认上一工程已关闭,重新核验路径、中心库、图页及目标身份;保留保存、关闭、重开回读流程。
|
||||
- 首次可能写入前持久化保护标记。只有明确证明尚未修改且旧资源已释放时,允许重建重试一次;身份冲突、已修改或结果不确定时不自动重放。
|
||||
- 释放失败保留已保存并核验的任务结果,阻止新批次,提供“重新清理资源”;清理操作不重复替换,重启后仍检查未收尾批次。
|
||||
- 释放日志显示开始、成功、失败和重新检查,包含耗时、CAD退出码、句柄关闭与桌面消失的分别确认、失败原因。同批各任务“完整日志”可见,独立文件位于 `data/batch-resources/<批次ID>/resource-release.log`。
|
||||
- 修复 BOM 错误回报与清理错误同时发生时丢失逐行报告的问题;清理失败只保留诊断,不提供可应用的部分预览。
|
||||
- 保留原生 CLI 优先采集,减少不必要的 CAD 回退;原生会话重试耗尽时停止整批。
|
||||
|
||||
## Beta 2 发布验证
|
||||
|
||||
发布门禁 824 项通过;打包配置检查 2 项、外部验收脚本检查 15 项通过。完整 EXE 在两个全新工程副本上完成创建任务、导出默认模板、错误 BOM 报告(2 通过 / 1 失败)、修正后导入(2 通过 / 0 失败)、保存计划、实际替换、保存重开回读及结果日志查看。两工程各 57 个组件、103 个引脚连接,56 个非目标组件不变;源文件与中心库 `.lmc` 哈希不变。执行批次共一次 CAD 启动、一个桌面代次,最终释放已独立确认。
|
||||
|
||||
本轮[工单修复与验收记录](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.2/docs/testing/2026-10-23-issue-2-frozen-runtime.md)包含原验证漏检范围及外部观察器修正后的只读续验说明;已完成替换没有重放。
|
||||
|
||||
## 继承的历史验证与范围
|
||||
|
||||
两个全新工程副本完成 BOM 导入、实际替换、保存重开、独立完整属性/连接回读和资源释放。两版本保存结果一致;各工程 57 个组件、103 个引脚连接,56 个非目标组件属性和连接不变,源工程及中心库 `.lmc` 哈希不变。
|
||||
|
||||
相同样例单次对照:BOM 加执行总耗时 170.860 → 151.859 秒,私有桌面创建 6 → 2 次,CAD 启动 2 → 1 次。该结果不代表固定加速比例;BOM 单次测量 2.250 → 3.187 秒。
|
||||
|
||||
工单完整库存覆盖的 31 行回放为 20 通过、11 失败,未强行放行不匹配项;其余 406 条替换行、96 个工程未获对应完整库存,不能宣称全部工程已实机通过。用户机器的外部桌面引用残留根因尚未在本机复现。
|
||||
|
||||
详见[批次运行时验收](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.2/docs/testing/2026-10-21-batch-private-runtime.md)、[实机对照](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.2/docs/testing/2026-10-21-batch-private-runtime-live.md)和[释放日志验证](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.2/docs/testing/2026-10-21-resource-release-logging.md)。
|
||||
@@ -0,0 +1,37 @@
|
||||
# DxPartReplace V1.1.4 Beta 3
|
||||
|
||||
2026-10-23,**Beta 预发布/工单现场复测版**,对应工单 [#1](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/issues/1)、[#3](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/issues/3)。
|
||||
|
||||
## 下载与升级
|
||||
|
||||
完整解压 `DxPartReplace-1.1.4-beta.3.zip`,运行 `DxPartReplace.exe`,无需安装 Python。保留 EXE 与 `_internal` 的相对位置;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
|
||||
建议在新目录解压,用工程副本复测。需要沿用任务时,先关闭旧程序、备份旧 `data`,再完整复制数据目录;不同版本不能同时打开同一数据目录。旧保护锁保留,不能通过删除保护记录来重试。
|
||||
|
||||
包内包含中文图文教程、窗口 GIF、空白 11 列 BOM 模板、发布清单。教程沿用旧版已录制的基本操作,新增加的恢复与归档选项以本版界面为准。
|
||||
|
||||
## 本版修改
|
||||
|
||||
- 修复内部长路径访问:缩短批次 attempt 目录,补齐扩展路径、兼容工作目录、深目录工程扫描、日志和保护记录访问;不要求修改系统注册表。
|
||||
- 后台资源由独立批次监督进程持有,批内复用桌面与按需启动的 CAD,批末退出后由主界面独立复核。主界面不持有私有桌面或 COM 对象。
|
||||
- 只有持久化证据证明尚未修改、工程身份一致、旧资源已释放,才允许每工程自动重试一次;修改后、保存核验失败或结果不确定时不重放。
|
||||
- 自有 CAD 启动期间退出时及时检测,避免探针继续空等 120 秒。真实连续启动故障的检测与收尾阶段约 0.25–0.33 秒,完整任务仍受 CAD 启动、替换及保存回读耗时影响。
|
||||
- 分别保留首发错误、清理错误与 BOM 逐行报告。清理资源不重新执行已完成替换;恢复请求和消息检查批次、代次及尝试身份。
|
||||
- 补充自有进程/句柄归属诊断,提供“导出诊断包”,包含独立的批次释放日志并脱敏。
|
||||
- 增加“正常关闭时归档并清空当前任务列表”,默认关闭。启用后安全任务移至回收站;存在保护、中断或未释放资源的任务保留,不物理删除工程、日志及执行证据。
|
||||
- 持久化只读采集缓存,绑定工程指纹及完整载荷摘要;损坏缓存隔离后重新读取。
|
||||
|
||||
## 工单复测步骤
|
||||
|
||||
1. 使用原问题目录长度及工程副本,创建任务并导入原 BOM;确认通过、失败、未检查行数和逐行原因都能显示,失败后再次导入会刷新状态。
|
||||
2. 先选择两个工程的少量位号,保存计划并顺序执行;核对目标料号、未选位号、保存重开结果及释放日志,再扩大批次。
|
||||
3. 遇到资源待处理时,使用“重新清理资源”,确认不会重复替换。仍失败请点击“导出诊断包”,将 ZIP、版本及触发步骤附到原工单。
|
||||
4. 需要关闭后清空列表时,启用正常关闭归档选项;重开后可从回收站恢复。保护或待核验任务应继续保留。
|
||||
|
||||
## 验证范围与已知边界
|
||||
|
||||
实现阶段完成两份新工程副本的完整 EXE BOM 流程、真实替换、保存重开与独立属性/连接对照:每工程 57 器件、103 引脚,56 个非目标器件不变;顺序执行共一个桌面、一次 CAD 启动。另完成深中文路径的冻结 EXE 检查、真实外部桌面持有者、标记写入失败、连续启动失败及写后监督进程崩溃的测试。
|
||||
|
||||
故障实机入口部分为源码非 GUI parent+真实冻结 supervisor/helper/VBS,不等同于完整 GUI 硬退出或机器掉电测试。不同候选的具体哈希、命令和范围见[实施与验收记录](../testing/2026-10-23-issue-3-safe-recovery.md)。本发布包重新构建并检查冻结源码一致性、解压启动及资源释放,结果写入发布清单。
|
||||
|
||||
**仍需现场验证:** 关闭系统长路径支持且没有 8.3 的组合环境尚未完整验收;原工单 102 个工程没有完成原工程实机替换,其中 96 个连报告回放也未覆盖,见[逐工程清单](../testing/2026-10-23-issue-3-uncovered-projects.md)。工单 #1 现场残留桌面的具体持有者仍未确定,不能宣称根因已根治。两个工单保持打开,等待现场反馈。
|
||||
@@ -0,0 +1,37 @@
|
||||
# V1.1.4 Beta 4 构建与发布验证
|
||||
|
||||
2026-10-26,用户授权发布下一版 Beta。版本 `1.1.4-beta.4`,Python 元数据 `1.1.4b4`,Windows 文件版本 `1.1.4.4`,预发布标志开启。业务修改基于 `9c03cd5`;本轮产品代码只调整版本标识。
|
||||
|
||||
## 构建门禁
|
||||
|
||||
- `packaging/Build-DxPartReplace.ps1`:退出码 0,源码门禁 **923 passed,232.69 秒**,一条既有 pywinauto STA 警告。
|
||||
- 打包配置及外部验收脚本检查:**17 passed,11.08 秒**。
|
||||
- 构建产物在完整冻结 EXE 主进程中启动独立监督进程、读取真实进程创建时间并确认自有进程/Job/桌面释放,再完成 GUI 启动与正常关闭检查。
|
||||
- 冻结的 92 个 `dx_productivity` 模块及应用入口逐项对照源码,递归标准化 code filename 后 code object 一致。包含新的 `stop_control` 模块;两份 VBS 在包装阶段另做哈希比对。
|
||||
- EXE SHA256:`ee64d983f6f0457bac2bb16225ee8a8044753b5bf7779e498549c61d8ed4d13b`。
|
||||
|
||||
构建日志:`build/release-1.1.4-beta.4-build.log`。源码比对:`build/release-1.1.4-beta.4/frozen-source-check.json`。实现阶段扩大测试 1147 项通过的范围见[安全停止验收](../testing/2026-10-26-safe-stop-acceptance.md),不与本轮构建门禁数量混算。
|
||||
|
||||
## 冻结监督进程实机验证
|
||||
|
||||
本轮用源码控制器驱动上述正式 EXE 的 `--batch-worker`,执行 BOM 导入与真实 CAD 队列;批内 helper 和 VBS 使用冻结产物。复制两个全新工程,不重放之前完成的替换。
|
||||
|
||||
在第一个工程的生产 `save_requested` 日志出现时只请求普通停止,结果为第一任务 completed、第二任务 pending、队列 paused。新 CAD 实例独立读回确认:第一工程 57 器件、103 引脚连接正确,56 个非目标器件保持;第二工程 57 器件完整属性/连接图与执行前一致。
|
||||
|
||||
执行批次 `orderly_shutdown=true`、`clean=true`、`forced_termination=false`,CAD 与 Quit helper 退出码均为 0,资源状态 released。源工程目录哈希和中央库 `.lmc` 哈希不变。
|
||||
|
||||
证据:`build/release-1.1.4-beta.4/frozen-save-stop.json` 与 `build/safe-stop-live-9894f95db1/`。后者由通用 source 探针生成,保留了其原始 scope 文本;本轮实际冻结进程路由、调用请求和 EXE 哈希以 companion `frozen-save-stop.json` 为准。前后独立读取使用源码读取器,不将其说成全部入口均冻结,也不将该测试说成完整 GUI 交互停止。
|
||||
|
||||
## 包装与公开附件
|
||||
|
||||
便携包只从 EXE、完整 `_internal`、仓库教程及文档生成,附空白 11 列 BOM 模板和历史窗口 GIF;不带 `data`、任务数据库、用户工程、工单附件或现场日志。
|
||||
|
||||
包装脚本要求本轮冻结停止验证的 EXE 哈希与被打包文件一致,检查 ZIP CRC、解压路径、所有程序文件 SHA256,并在清除源码 Python 环境变量后执行解压出来的完整 EXE smoke。ZIP 大小、SHA256、程序文件清单与解压验证结果由公开 `release-manifest-1.1.4-beta.4.json` 记录。
|
||||
|
||||
附件:`DxPartReplace-1.1.4-beta.4.zip`、`SHA256SUMS-1.1.4-beta.4.txt`、`release-manifest-1.1.4-beta.4.json`、`BOM-template.xlsx`、`window-tutorial-1.1.4-beta.4.gif`。GIF 沿用 1.1.2 基础教程,新停止功能以包内说明和界面为准。
|
||||
|
||||
发布流程为先创建草稿,上传后逐项回下载核对大小和 SHA256,全部一致才公开为 Beta 预发布。远端响应与附件校验证据保存在 `build/release-1.1.4-beta.4/`;认证信息不写入文件或日志。本轮没有授权给工单发消息,因此不发布工单评论、不关闭工单,也不修改旧版本附件。
|
||||
|
||||
## 现场边界
|
||||
|
||||
仍未完成原工单 102 个工程的全量现场复测,也没有完整冻结 GUI 的真实保存中强杀或掉电无损验收。工单现场桌面残留持有者尚未查明。本版本提供已验证的停止与收尾改进,不能据此宣布现场事故根因已经根治。
|
||||
@@ -0,0 +1,41 @@
|
||||
# DxPartReplace V1.1.4 Beta 4
|
||||
|
||||
2026-10-26,**Beta 预发布/安全停止与应用收尾复测版**。关联工单 [#1](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/issues/1)、[#3](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/issues/3)。
|
||||
|
||||
## 下载与升级
|
||||
|
||||
完整解压 `DxPartReplace-1.1.4-beta.4.zip`,运行 `DxPartReplace.exe`。无需安装 Python;保留 EXE 和 `_internal` 的相对位置,本机需要可用的 DxDesigner、许可证及中央库。
|
||||
|
||||
请在新目录解压,使用工程副本复测。沿用旧任务前,先安全退出旧程序并备份完整 `data`;不要同时用两个版本打开同一数据目录。不要删除原有保护记录来绕过核验。
|
||||
|
||||
便携包包含中文教程、空白 11 列 BOM 模板、历史窗口操作 GIF、停止与恢复说明及文件校验清单。GIF 沿用 1.1.2 基础操作,新版停止与强制结束功能以实际界面及[停止说明](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.4/docs/user/safe-stop-and-recovery.md)为准。
|
||||
|
||||
## 本版修改
|
||||
|
||||
- 普通“完成当前项后暂停”只停止后续调度,当前替换项完成必要校验、保存、回读和关闭后再停止;关闭窗口也等待收尾。
|
||||
- 有写入可能的阶段长时间没有进度时保留应用等待,不再仅凭超时自动杀进程;纯只读采集仍采用有界取消。
|
||||
- 新增独立的“强制结束…”确认。先可靠保存中断保护和批次证据,再终止本程序拥有的进程;保护写入失败时拒绝本次强制结束并显示原因。
|
||||
- 当前修改或保存结果不确定、应用拒绝退出时保留现场,禁止盲目保存、丢弃和重放。等待期间可导出诊断包。
|
||||
- 保存请求、保存调用返回、保存回读和工程关闭分别记录,避免保存后关闭失败被误记为未保存。
|
||||
- 修复收尾记录写入失败跳过正常 Quit 的路径;CAD 主进程正常退出后,给自有辅助进程短暂自然退出机会,再决定是否需要强制清理。
|
||||
- 正常退出、强制终止和物理资源释放分别报告。资源消失不再掩盖应用退出异常,已经核验的业务结果继续保留。
|
||||
- 控制通信异常不会直接授权终止正在运行的交互批次;强制结束及进程退出诊断记录保持一致。
|
||||
|
||||
## 复测建议
|
||||
|
||||
1. 新建两个工程副本的少量位号任务,导入 BOM 并保存计划。
|
||||
2. 在第一项执行或保存时点击普通暂停,核对当前项完成保存回读,下一项保持未执行;重新打开工程核对料号和连接。
|
||||
3. 对长时间等待先导出诊断。仅在接受当前结果需要核验时确认“强制结束…”;重开后先“核验并恢复”,不要直接重复替换。
|
||||
4. 如仍有异常,保留版本、触发步骤、诊断 ZIP 和失败工程名称。资源待处理时的清理不会重新执行替换。
|
||||
|
||||
为避免强制请求与任务切换同时发生而漏记目标,本版强制结束会保守保护本批可能涉及的任务。先前已完成任务也可能需要复核,但其保存结果和执行证据不被覆盖或重放。
|
||||
|
||||
## 验证范围与已知边界
|
||||
|
||||
实现阶段扩展回归 **1147 项通过**。源码监督入口在两份新工程副本上验证了保存期间请求普通停止:第一工程 completed,第二工程 pending;新 CAD 独立读回确认第一工程 57 器件、103 引脚连接正确、56 个非目标器件不变,第二工程完整图未变化。源工程及中央库 `.lmc` 哈希不变,执行批次正常退出且没有强制清理。
|
||||
|
||||
本轮发布门禁 923 项通过,打包与验收脚本检查 17 项通过。正式 EXE 的冻结监督进程再次完成真实 CAD 保存期间普通停止及新实例独立读回;当前项完成、下一项未执行,正常退出且无强制终止。该实机入口由源码控制器驱动,不等同于完整 GUI 交互验收。
|
||||
|
||||
发布构建、解压后完整 EXE 启动、冻结监督进程及资源释放检查另见[Beta 4 构建记录](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.4/docs/releases/v1.1.4-beta.4-build.md)和附件 manifest。源码/受控辅助进程故障测试不等同于完整冻结 GUI 下的真实 CAD 强制中断或掉电无损验证。
|
||||
|
||||
**现场资源残留根因仍未全部闭环。** 原工单全量 102 个工程及特定系统组合仍需现场复测,本版不宣称所有环境已根治,不自动关闭关联工单。完整范围见[实施验收](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.4-beta.4/docs/testing/2026-10-26-safe-stop-acceptance.md)。
|
||||
@@ -0,0 +1,12 @@
|
||||
# V1.2.1
|
||||
|
||||
本版合并 PR #14 的 DSH 启动错误提示,并提供完整 Windows 便携运行包。
|
||||
|
||||
- 包含整个已安装的 DSH Node 依赖目录、Node 可执行文件、官方前端、任务插件、Qt WebEngine 运行库和全部 UI 图标。
|
||||
- 按维护者的部署要求保留 issue reporter 配置;模型 API 密钥及个人任务数据不随包分发。
|
||||
- 应用标题、Python 项目元数据和 Windows 产品版本统一为 1.2.1。
|
||||
- 新增 Gitea Actions 回归,覆盖平台无关核心逻辑与发行配置。Windows 冻结程序另在构建机验收。
|
||||
|
||||
完整解压 `DxPartReplace-1.2.1.zip`,运行目录内的 `DxPartReplace.exe`。请保留 `_internal` 的完整目录结构,升级前备份旧版 `data`。
|
||||
|
||||
旧版在本版通过验证并公开后转为草稿下架,历史标签保留。运行和云端验证的实际结果见发行附件中的 build-validation.json。
|
||||
@@ -0,0 +1,7 @@
|
||||
# V1.2.2
|
||||
|
||||
本版本合并 PR15 的操作历史与安全续跑改进,并提供带内置 7-Zip 解压引擎的 Windows 自解压包。
|
||||
|
||||
下载 `DxPartReplace-1.2.2.exe` 可使用自解压界面选择目标目录;`DxPartReplace-1.2.2.zip` 作为同内容回退包。两种包都包含完整的 `DxPartReplace.exe`、`_internal`、DSH Node 运行时、Qt WebEngine 依赖和资源文件。
|
||||
|
||||
解压后请保留 `DxPartReplace.exe` 与 `_internal` 的相对位置。本机仍需可用的 DxDesigner、许可证和中央库。沿用旧任务前先安全退出旧版本并备份 `data`,不要同时使用不同版本打开同一数据目录。
|
||||
@@ -0,0 +1,30 @@
|
||||
# v1.3.0 本地构建记录
|
||||
|
||||
2026-11-09 从 main `4f8fbd78062b04203c106efb2fad476a5d6dbc82` 准备独立发行工作区,仅带入批准的紫蓝双环图标、1.3.0 版本元数据及发行说明。2026-11-10 整理并提交发行准备源码。
|
||||
|
||||
版本同步到 Python 包、应用显示版本和 Windows PE 资源;正式版标记为 0。图标以 1024×1024 `app-master.png` 为源,导出运行时 PNG、文档图标及 16/20/24/32/40/48/64/96/128/256 像素 ICO。
|
||||
|
||||
## 验证结果
|
||||
|
||||
- 现有 Windows 发行脚本完整回归:1358 passed,1 条 COM 线程模式提示,无失败。
|
||||
- 打包配置与版本检查:8 passed;随后显式指定官方 7-Zip 工具运行真实自解压场景,1 passed。
|
||||
- 冻结主程序及自解压 EXE 的 Windows 版本资源均为 1.3.0 / 1.3.0.0,所有语言资源已更新;10 档图标像素与批准的 ICO 一致。
|
||||
- 冻结监督进程、进程身份识别、自有后台资源释放和正常退出检查通过;从最终包解出的程序再次通过相同检查。
|
||||
- 实际 UI 操作验证原生 Harness 三栏界面、SVG 动画、工具设置、自定义模型入口、未发送草稿和页面切换保留;未配置 Key,未发送模型请求,所有自有子进程正常退出。
|
||||
- 实际运行最终自解压 EXE,66,805 个文件与逐文件清单的 SHA256 完全一致;ZIP 每个成员的 CRC 与 SHA256 通过。该机器实测解压约 306.5 秒。
|
||||
- 交付副本复制后再次核对产物 SHA256,结果一致;安装包不包含用户数据目录。
|
||||
|
||||
## 产物
|
||||
|
||||
| 文件 | 字节数 | SHA256 |
|
||||
| --- | ---: | --- |
|
||||
| `DxPartReplace-1.3.0.exe` | 357640754 | `a179ae3b003d73e7aa9fb2ffc20b76c45cc571a072dc438200bdffd64aa0db1d` |
|
||||
| `DxPartReplace-1.3.0.zip` | 504669931 | `0c3fa4599f7989da7c14d14c70cb04bbcdac2bee1cebb07d2f3325462484fb47` |
|
||||
|
||||
本地交付目录为 `outputs/releases/v1.3.0`,包含安装包、校验文件、逐文件清单、验收报告和界面截图。大型发行二进制不加入 Git 源码提交。
|
||||
|
||||
自解压包使用官方 7-Zip 解压器副本,先替换图标和版本资源,再附加压缩数据;原始安装的 7-Zip 未修改。完整 Node/Harness 与 Qt WebEngine 运行时保留。
|
||||
|
||||
## 范围
|
||||
|
||||
本地包未上传,未创建远端 Release 或 Git 标签,未做代码签名。没有执行真实模型请求、远端测试工单或真实用户 CAD 工程替换。官方 Harness 前端保留自身的预览版标记。源码提交仅补充发行说明,不改变已验收包中的应用代码或图标。
|
||||
@@ -0,0 +1,13 @@
|
||||
# v1.3.0
|
||||
|
||||
以 main `4f8fbd7` 为基础,统一最新紫蓝双环图标,版本信息更新为 1.3.0。发行候选包已完成本地构建与核验,源码发布准备通过 PR 提交;远端 Release 与 Git 标签尚未创建。
|
||||
|
||||
本版包含原生三栏 DSH 助手、自动异常介入与核验、任务创建及多文件 BOM 交接、逐项 Value 策略、按单器件隔离失败及安全恢复。AI 等待与后台查询不占普通任务执行通道;同一持续异常去重,执行前重新核对授权、任务轮次及现场。状态灯以纯圆点显示,悬浮可看状态与原因。配置检查超时最多补试一次,不重建已完成事件。
|
||||
|
||||
交付自解压 EXE、便携 ZIP、SHA256 与逐文件清单。两种包均包含完整 Node/Harness、Qt WebEngine 和应用资源,内容一致。
|
||||
|
||||
升级前退出旧程序并备份 `data`;先解压到新目录,再按需迁移数据。保留主程序和 `_internal` 的相对位置,不只替换单个 EXE,也不要让新旧程序同时使用同一数据目录。新安装需要自行配置 AI 模型及 Key;本机仍需 DxDesigner EE 7.9.5、许可证和中央库才能执行 CAD 操作。
|
||||
|
||||
发行验证以随包的本地验收报告为准。打包和界面启动检查不等于已对真实用户工程完成替换,也不证明远端模型网络连接可用。
|
||||
|
||||
本地构建结果与产物校验值见 [v1.3.0 构建记录](v1.3.0-build.md)。
|
||||
@@ -0,0 +1,19 @@
|
||||
# v1.3.1 实机测试版
|
||||
|
||||
本版包含 PR #27 的 BOM 按需原生核验、Mentor 批内复用、前后固定副本网表比对,以及官方 Standard Harness 的完整普通会话能力。补齐执行恢复与重试失败的持久收尾、心跳停滞判断、BOM 原始错误保留、网表原子写入和自动诊断会话重启后的快照限制。
|
||||
|
||||
本次复审后的调整仅清理无用 import、统一版本标识并修正用户文档。错误触发的 Mentor 自动回收保持原设计:先持久化不确定记录,再清理自有进程,确认退出后释放桌面。默认停滞阈值为 150 秒请求停止、300 秒等待安全边界、约 330 秒仍无业务进展进入失败回收;业务进展重新计时,心跳不重新计时。详见 [停止与恢复说明](../user/safe-stop-and-recovery.md)。
|
||||
|
||||
交付自解压 EXE、便携 ZIP、SHA256、逐文件清单和本次构建验证报告,两种包均包含完整 Node/Harness、Qt WebEngine 和应用资源。普通会话默认 `workspace-write`,支持 Shell、文件编辑、goal、jobs 和子智能体;自动异常诊断只能读取绑定事件快照。
|
||||
|
||||
## 升级与测试
|
||||
|
||||
退出旧程序,备份原 `data`,将新版本解压到新目录。完整保留 EXE 与 `_internal`,不要只覆盖单个 EXE,也不要让新旧程序同时使用同一数据目录。首次验证请使用工程副本;需要 DxDesigner EE 7.9.5、许可证和可用中央库。新目录通过“启动程序.cmd”启动,数据保存在该目录的 `data`。
|
||||
|
||||
建议依次检查启动、BOM 导入、单项替换、暂停/恢复、批内复用和批次结束释放;若出现退出异常,保留任务轮次、日志与诊断包。已保存核验项不要重复替换,结果不确定项先使用“核验并恢复”。
|
||||
|
||||
## 已知待验证问题
|
||||
|
||||
上轮冻结 EXE 实机批次出现 Mentor quit helper 超过 20 秒并触发回收,20 项验收未完成。本版未宣称修复该超时,也没有通过放大超时或解除不确定保护来绕过故障。资源释放不代表回滚,`Close(False)` 仍可能落盘。打包、启动和自动化回归通过不能替代本版本的真实 CAD 验收。
|
||||
|
||||
本版作为预发布提供实机测试,未做代码签名。历史 R17 的 20 项验收和原生/Harness 对照不作为本包的验收结果。
|
||||
@@ -0,0 +1,50 @@
|
||||
# 2026-10-30 优化分支第二轮审查
|
||||
|
||||
本轮在 `.worktrees/project-optimization` 的 `codex/project-optimization` 分支执行。主工作区继续使用 DSH 分支,两个工作目录分别维护各自提交。
|
||||
|
||||
## 已复现并修复的问题
|
||||
|
||||
| 问题 | 触发条件和原因 | 修复 |
|
||||
| --- | --- | --- |
|
||||
| P1:历史资源记录使界面卡顿 | `_update_gates()` 同步调用资源扫描,搜索、选择规则和执行状态更新都会读取全部历史 JSON。500 条已释放记录的一次扫描约需 1.57–1.65 秒 | 新增 `ui/resource_status.py`,后台读取并保留状态快照;初始化、操作收尾和定时复查更新快照,按钮刷新直接读取快照 |
|
||||
| P1:异常退出丢失 BOM 逐行诊断 | `_finish_response()` 在资源复核通过后发现 CAD 退出异常,创建新的 `application_shutdown_failed` 错误,却没有携带原业务错误和 BOM 报告 | 在 `supervisor_result.py` 统一构造退出错误,保留原错误、清理错误和逐行报告;移除报告中的可执行预览 |
|
||||
| P2:规则窗口销毁后访问已释放控件 | 封装读取仍在运行时销毁规则窗口,成功和失败回调均只判断逻辑关闭标记,未判断 Qt 对象是否有效 | 回调先检查 `isValid(self)`,丢弃销毁后的结果;两条路径均有实际 Qt 生命周期回归 |
|
||||
| P2:已完成批次仍显示可执行按钮 | 按钮只判断批次存在;处理函数重新筛选任务后发现没有剩余任务,直接返回 | 抽取 `pending_batch_tasks()`,按钮门控、执行和确认范围共用待执行任务列表 |
|
||||
|
||||
资源快照采用保守处理:首次读取未完成或读取失败时阻断执行;操作结束触发的刷新会合并,操作前的旧快照不能解除门禁。周期检查不会取消慢读取。窗口关闭会停止周期检查并丢弃迟到结果。服务层原有执行前资源检查继续作为最终校验。
|
||||
|
||||
## 测量范围
|
||||
|
||||
使用独立临时目录创建合法的已释放资源记录,无 CAD 进程和工程写入。原同步扫描测得:
|
||||
|
||||
- 0 条:三次分别为 2.68、1.83、1.41 毫秒。
|
||||
- 100 条:293.55、277.36、313.80 毫秒。
|
||||
- 500 条:1650.06、1626.25、1569.35 毫秒。
|
||||
|
||||
接入后台快照后,在真实 `TrialTaskCenterWindow`、`TaskCenterService` 和 `TaskStore` 的空任务窗口中,500 条历史记录下连续调用按钮门控 100 次,总计 6.63 毫秒,期间文件扫描次数为 0。另有已选中任务的 Qt 回归验证后台慢读取期间仍能搜索和响应事件。该结果证明 GUI 热路径移除了扫描,不表示磁盘扫描本身变快,也不代表实际 CAD 替换速度。
|
||||
|
||||
## 前次结论修正
|
||||
|
||||
前次把停止事件轮询从 0.1 秒改成 0.01 秒,并将一次时序测试失败解释为阻塞根因,证据不足。`Event.wait()` 会在事件设置后立即唤醒;初次保护失败后的进度文件写入可能延后重试,固定等待 0.25 秒不能证明保护重试没有发生。
|
||||
|
||||
本轮恢复 0.1 秒等待,回归测试等待明确的强制结束拒绝状态,再检查线程仍存活和保护写入确已重试。不会把这项时序调整计作资源泄漏修复。
|
||||
|
||||
## 测试入口修正
|
||||
|
||||
全仓收集发现 `tests/ui/test_execution_feedback.py` 与 `tests/v1_1/test_execution_feedback.py` 的模块名冲突。UI 文件更名为 `test_ui_execution_feedback.py` 并更新文档引用。
|
||||
|
||||
默认 `python -m pytest -q` 仅覆盖 `tests/v1_1`,不能称为整个仓库测试。全仓历史测试曾启动,随后为实施新确认的 GUI 阻塞修复而主动停止,未将该次运行记作完整通过。当前验证覆盖新版测试、UI 和项目发布要求的安全子集。
|
||||
|
||||
本轮未进行真实 DxDesigner 工程替换或冻结包验收;现场桌面引用残留仍需实际故障机器的进程与句柄证据。
|
||||
|
||||
## 最终验证
|
||||
|
||||
```powershell
|
||||
python -m pytest -q tests/v1_1 tests/ui tests/part_replace/test_verification.py tests/trial_task_center/test_execution_safety.py tests/trial_task_center/test_application.py --durations=5
|
||||
```
|
||||
|
||||
结果:960 passed,1 项既有 pywinauto STA 警告,462.49 秒。此命令覆盖新版测试、UI 和发布安全子集。
|
||||
|
||||
安全停止的真实子进程测试曾在收到首条阶段进度前触发 0.6 秒启动超时,未进入其要验证的保存/强制结束路径。测试现将启动预算与阶段无进度时限区分,并断言目标阶段确实被接收;保存和只读阶段的原 0.3 秒时限继续有效。生产监控超时参数未修改。
|
||||
|
||||
`python -m compileall -q src` 和 `git diff --check` 均通过。
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"browser": "156.0.8078.73",
|
||||
"checks": [
|
||||
{
|
||||
"test": "browser-layout-ready",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-running",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-recovery",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-assistant",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-review-visible",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "escape-cancels-without-execution",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-batch-guard",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-confirm-starts-preparation",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-keeps-running",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-verification-before-pause",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-after-verification",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-solid-material-fallback",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-layout",
|
||||
"ok": true,
|
||||
"width": 980,
|
||||
"height": 700
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-review",
|
||||
"ok": true
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"screenshots": "Chrome headless, screenshot waits for compositor; 1440x900 and 980x700."
|
||||
}
|
||||
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 108 KiB |
@@ -0,0 +1,39 @@
|
||||
# 细节打磨:文字、交互和表格
|
||||
|
||||
用户要求三方面一起打磨,保留已认可的布局与原生磨砂。
|
||||
|
||||
## 文字、间距与状态
|
||||
|
||||
- 工程标题过长时省略显示,完整名称保留在提示中;不会把小窗口撑宽。
|
||||
- 工程状态保持单行并右对齐,避免“待配置”等短词中途折行;长状态有完整提示。
|
||||
- 按钮图标统一 16px;输入框、按钮、菜单和表格补充焦点、按下、选中与禁用反馈。
|
||||
- 表头与单元格提示说明只读字段、完整内容、UID 和工程身份。
|
||||
|
||||
## 搜索与批量编辑
|
||||
|
||||
- 搜索显示“匹配 X / 总数”,无匹配时显示清楚的空状态;清空后恢复全部行。
|
||||
- 没有查询或结果时,下一条操作不再可用;表格空状态不截获鼠标事件。
|
||||
- 批量填写显示选中行数,未选行或未填新料号时禁用。行选中用于编辑,替换勾选用于计划,两者在提示中区分。
|
||||
|
||||
## 保存与键盘
|
||||
|
||||
- 计划旁显示已保存 / 未保存;没有修改时禁用重复保存。本批 BOM 预览仍保留本批保存范围。
|
||||
- 支持 `Ctrl+F` 定位搜索、`F3` 下一条、`Ctrl+S` 保存。快捷键受当前编辑状态和原有权限门禁约束。
|
||||
- 实际验证并修正了单元格未提交时的保存问题:快捷键先提交当前编辑器,再获取保存快照;鼠标保存也能读取当前输入值。
|
||||
- 编辑中的临时输入参与未保存检测与执行门禁,但不提前改变模型;`Esc` 或放弃操作关闭编辑器并保留原值。
|
||||
|
||||
## 验证
|
||||
|
||||
相关 UI、状态与 BOM 回归 **131 项通过**;最终文字尺寸/对齐调整后,材质、布局与细节的针对性检查 **24 项通过**。新增细节用例覆盖真实单元格编辑、鼠标保存、键盘保存、取消、放弃、只读状态、匹配反馈、批量填写和长标题。
|
||||
|
||||
独立静态审查确认先前的 Ctrl+S 问题已修正,未发现新的重要编辑器生命周期或保存门禁问题。
|
||||
|
||||
原生验收继续使用临时示例数据与独立活动背板,没有启动 CAD。左右磨砂随背板变化,表格保持不透明;小窗口与实色回退通过。详见 [polish-acceptance.json](polish-acceptance.json)。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码已更新,便携 EXE 未重新构建;本机原生验收环境仍为 Windows 11 build 26200、125% 缩放。
|
||||
@@ -0,0 +1,68 @@
|
||||
# R5:GitHub 毛玻璃实现调研与原生实测
|
||||
|
||||
日期:2026-10-30。分支:`codex/ui-update`。
|
||||
|
||||
结论:当前 PySide6 工具应优先验证 **Windows 原生 Acrylic**,将真实窗口背后的内容交给系统合成器模糊。需要 Apple 式边缘折射时,另用 SVG/着色器处理应用内的浮层,不能把半透明白色、模糊、Mica 和折射统称为同一种效果。
|
||||
|
||||
此前 R4 页面确实使用了浏览器背景模糊,但背景接近纯色、叠加白色过厚,缺少可观察的透射细节;它也没有启用正式 Qt 窗口的系统背景模糊。不能用那张图证明原生毛玻璃已经完成。
|
||||
|
||||
## 实际参考的 8 个项目
|
||||
|
||||
通过 GitHub 仓库 API 读取 README、仓库树和关键源码。搜索 API 遇到速率限制,raw 域名连接失败后,改用仓库内容/Blob API,成功读取了下列材料。本文没有把检索失败的项目计入参考数量。
|
||||
|
||||
| 项目 | 已核对的实现 / 文档 | 可借鉴内容 | 与本项目的关系 |
|
||||
| --- | --- | --- | --- |
|
||||
| [PyQt-Frameless-Window](https://github.com/zhiyiYo/PyQt-Frameless-Window) | [`setAcrylicEffect`](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/qframelesswindow/windows/window_effect.py#L53) 调用 `SetWindowCompositionAttribute`,AccentState 使用 Acrylic。README 提供 PySide6 分支。 | 真正的窗口背景模糊;窗口边框、命中与拖动处理。 | 最接近现有 Python / Qt 栈。GPLv3;本轮没有复制该库代码或引入依赖。 |
|
||||
| [PythonBlurBehind](https://github.com/Peticali/PythonBlurBehind) | [`blur()`](https://github.com/Peticali/PythonBlurBehind/blob/main/blurWindow/blurWindow.py#L115) 明确区分 BlurBehind 与 Acrylic,并对 HWND 应用效果。 | 小范围 ctypes 与系统合成边界,适合先做原生验证。 | MIT。原生小样采用同类 Windows API 机制,以独立探针验证,不调用 CAD。 |
|
||||
| [WinUI Gallery](https://github.com/microsoft/WinUI-Gallery) | [`AcrylicPage.xaml`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/Acrylic/AcrylicPage.xaml#L41) 区分应用内 Acrylic 与系统背景;[`DesktopAcrylicController`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/SystemBackdrops/SystemBackdropsDesktopacryliccontroller.txt) 检查支持并管理资源生命周期。 | 染色、亮度、回退、应用内 / 窗口背后的不同采样来源。 | MIT。用于材质规范参考,不需要把 Qt 重写成 WinUI。 |
|
||||
| [PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) | [`AcrylicBrush`](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/qfluentwidgets/components/widgets/acrylic_label.py#L163) 使用背景采集、Gaussian blur、tint、luminosity 和 noise;部分 Acrylic 是截图处理。 | 材质由模糊、染色、亮度与纹理多层组合;不能只画一层白色。 | GPLv3 / 商业许可。必须区分其图像材质和实时原生 Acrylic;不能看到 Acrylic 类名就认为全是系统合成。 |
|
||||
| [window-vibrancy](https://github.com/tauri-apps/window-vibrancy) | [`apply_acrylic`](https://github.com/tauri-apps/window-vibrancy/blob/dev/src/windows.rs#L62) 在合适版本使用 `DWMWA_SYSTEMBACKDROP_TYPE / DWMSBT_TRANSIENTWINDOW`,否则走 Accent;Mica 有单独接口。 | Windows 版本判断、不同 API 路径及清理机制。 | Apache-2.0。Rust/Tauri 不能直接装进 PySide6,但系统 API 的技术路线值得对照。 |
|
||||
| [QWindowKit](https://github.com/stdware/qwindowkit) | README 列出 `acrylic-material`、`dwm-blur`、`mica`,并讲明 Qt 私有 API、原生子窗口、Snap 与命中处理;不同平台的 glass 属性不同。 | 窗口外壳需要与材质一起设计,不能破坏拖动、缩放、系统菜单与 Snap。 | Apache-2.0;本轮核对其 README。C++ 工程与 Python 绑定成本需单独评估,不自动引入。旧 FramelessHelper 已指向该项目。 |
|
||||
| [liquid-glass-react](https://github.com/rdev/liquid-glass-react) | [`src/index.tsx`](https://github.com/rdev/liquid-glass-react/blob/master/src/index.tsx#L35) 包含位移贴图、三通道位移和颜色合并;背景模糊是另一层。 | 边缘折射、可调磨砂、轻微色散,不只是圆角和阴影。 | MIT。可参考视觉与滤镜;它作用于网页内容,不是 Windows 桌面背景。README 说明 Safari/Firefox 位移支持有局限。 |
|
||||
| [shuding/liquid-glass](https://github.com/shuding/liquid-glass) | [`liquid-glass.js`](https://github.com/shuding/liquid-glass/blob/main/liquid-glass.js#L69) 使用 `backdrop-filter:url(...)` 与 `feDisplacementMap`;按几何函数生成位移贴图。 | 用真实背板内容测试边缘弯折;位移贴图的 R/G 控制横向与纵向采样。 | MIT。本轮验证页使用自行生成的位移贴图,没有复制项目源码。 |
|
||||
|
||||
源码核对记录及文件 Blob SHA 见 [github-material-sources.json](github-material-sources.json)。许可信息来自读取时的仓库元数据/README;本轮未安装上述库。
|
||||
|
||||
## 如何区分几种效果
|
||||
|
||||
| 效果 | 背后内容是什么 | 观察方式 |
|
||||
| --- | --- | --- |
|
||||
| 普通透明 | 原始内容直接 alpha 混合 | 背后的字和细线仍清晰,容易穿过前景文字。 |
|
||||
| 网页背景磨砂 | 同一页面中、元素背后的图像 | 动背板或滚动内容,模糊颜色随之变化;不能看到浏览器外的窗口。 |
|
||||
| 原生 Acrylic | Windows 合成器提供的窗口后方内容,具体行为受系统与窗口状态影响 | 用独立的真实背景窗口换色/移动,前景材质跟随变化。 |
|
||||
| Mica | 通常从桌面壁纸等来源形成的窗口底材 | 不应期待它像透明玻璃一样实时折射所有背后窗口。 |
|
||||
| Liquid Glass 视觉模拟 | 对采样图像做边缘位移,叠加磨砂、高光等 | 背后的直线在边缘弯折;强度过高会影响工程数据识读。 |
|
||||
|
||||
## 本机原生实测
|
||||
|
||||
本机 Windows 11 build 26200。可复现探针:[native-acrylic-probe.py](native-acrylic-probe.py)。它只创建自有测试窗口,前景不绘制背景截图,使用系统 API 配置效果后,捕获这些窗口组成的测试区域;截图前检查区域中的窗口归属,发现遮挡即取消保存。
|
||||
|
||||
**左侧是普通透明,右侧启用 Accent Acrylic。** 两个前景窗口背后的测试图案一致。原生 Acrylic 明显滤除了竖线和背景字;更换背板颜色后,透入的颜色随之改变。
|
||||
|
||||

|
||||
|
||||
[查看背板变化动图](native-acrylic-live.gif) · [第二种背板截图](native-acrylic-b.png)
|
||||
|
||||
验证结果:`SetWindowCompositionAttribute` 返回成功;截图中右侧背景水平边缘能量约为左侧的 1/6.35,换色后右侧像素也发生变化。这是对测试图案的图像差异检查,不是通用材质质量评分。
|
||||
|
||||
**还发现了一条未跑通的路径:** 清除 Accent 后,单独设置 `DWMWA_SYSTEMBACKDROP_TYPE=3` 返回 HRESULT 0,但该 Qt 小样的实际输出是灰色实底。见 [DWM 路径截图](native-dwm-acrylic.png)。因此不能仅凭 API 返回成功宣称真实玻璃已启用,需要继续验证 Qt 窗口表面、DWM 扩展区域与系统设置。
|
||||
|
||||
原生调用日志见 [native-acrylic-verification.json](native-acrylic-verification.json);像素与动态背板验证见 [material-verification.json](material-verification.json)。没有启动 CAD、读写工程或改变系统全局透明度设置。
|
||||
|
||||
## 可交互材质验证台
|
||||
|
||||
[打开 material-lab.html](material-lab.html)。三列使用相同背板,依次展示:只有透明、背景磨砂、低磨砂与边缘折射。
|
||||
|
||||
可以拖动背景位置、调整磨砂强度、关闭/打开模糊与折射。背板由网页图形与文本实时组成;没有用预先模糊的背景图冒充采样。该页是浏览器机制验证,原生实测在上面的独立探针中。
|
||||
|
||||

|
||||
|
||||
Chrome 实测确认:磨砂滤镜为 `blur(18px) saturate(1.25)`,关闭后为 `none`;SVG 位移引用有效;改变背板位置会改变三列可见像素。效果开关在透明对照列的影响很小,而磨砂/折射列发生明显变化。1000px 页面宽度无横向溢出,浏览器无页面脚本错误。滤镜像素变化证明效果参与渲染,不代表它等同于 Apple 原生材质或所有浏览器效果一致。
|
||||
|
||||
## 对现有工程工具的建议
|
||||
|
||||
建议保留现有 PySide6 业务层和 SVG 图标,将外壳的侧栏、顶栏和短暂浮层接入已实测有视觉效果的原生模糊路径。料号表格使用独立清晰内容面。不要给整窗口设置低 opacity,也不要把普通白色底加阴影当作 Acrylic。
|
||||
|
||||
Apple 式折射适合少量浮层与分段控件;大面积表格不使用明显几何位移。若要在原生 Qt 中加入折射,需要 Qt Quick ShaderEffect / 可控的合成层等进一步验证;浏览器 SVG 位移不能原样翻译成 QWidget 的 QSS。
|
||||
|
||||
后续正式接入仍需验证:Qt/PySide6 版本、DWM 系统回退、透明度/高对比设置、激活状态、窗口拖动与 Snap、高 DPI、多显示器、远程桌面、打包以及现有 DSH WebEngine 子窗口的兼容性。本轮完成的是调研、机制对比和原生小样,未更改正式 UI 或执行状态机。
|
||||
|
After Width: | Height: | Size: 34 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="524" viewBox="0 0 1120 524"><rect width="1120" height="524" fill="white"/><text x="24" y="34" font-family="Segoe UI,Arial" font-size="18" fill="#34465f">DxPartReplace / SVG icon set</text><text x="24" y="54" font-family="Segoe UI,Arial" font-size="11" fill="#8b98a9">32 original symbols / 20 x 20 grid / 1.6 stroke / currentColor</text><rect x="24" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg><text x="80" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">arrow-up</text><rect x="160" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg><text x="216" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chat</text><rect x="296" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg><text x="352" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check-circle</text><rect x="432" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="474" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg><text x="488" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check</text><rect x="568" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="610" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg><text x="624" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chevron</text><rect x="704" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="746" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg><text x="760" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">circuit</text><rect x="840" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="882" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg><text x="896" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">clock</text><rect x="976" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="1018" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg><text x="1032" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">close</text><rect x="24" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg><text x="80" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">columns</text><rect x="160" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg><text x="216" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">copy</text><rect x="296" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-Line truncated
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,5 @@
|
||||
# SVG icons
|
||||
|
||||
Original 20 × 20 SVG icons for the DxPartReplace UI concept. Consistent 1.6 unit strokes, rounded caps and joins; color inherits `currentColor`. These are original drawings, not Apple SF Symbols.
|
||||
|
||||
The preview embeds the same shapes as an SVG symbol sprite; the individual files can be used by Qt SVG rendering when the production interface is implemented.
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 215 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg>
|
||||
|
After Width: | Height: | Size: 298 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 241 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg>
|
||||
|
After Width: | Height: | Size: 207 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 198 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 299 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 235 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg>
|
||||
|
After Width: | Height: | Size: 206 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg>
|
||||
|
After Width: | Height: | Size: 258 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 252 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 2.5v10m-3.5-3.5 3.5 3.5 3.5-3.5M3.5 13v4h13v-4"/></g></svg>
|
||||
|
After Width: | Height: | Size: 236 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 6a2 2 0 0 1 2-2h4l2 2h5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2Z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 265 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="5" height="5" rx="1"/><rect x="12" y="3" width="5" height="5" rx="1"/><rect x="3" y="12" width="5" height="5" rx="1"/><rect x="12" y="12" width="5" height="5" rx="1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 366 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 9v5m0-8h.01"/></g></svg>
|
||||
|
After Width: | Height: | Size: 235 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2.5h6l4 4v11H4v-15h2Zm6 0v4h4M7 10h6m-6 3.5h6"/></g></svg>
|
||||
|
After Width: | Height: | Size: 234 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="4" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="10" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r=".9" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
After Width: | Height: | Size: 371 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v12m6-12v12" stroke-width="2.5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 220 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m7 3.5 9 6.5-9 6.5Z" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4v12M4 10h12"/></g></svg>
|
||||
|
After Width: | Height: | Size: 202 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2.5" width="12" height="15" rx="2"/><path d="M7 6h6M7 10h3m0 0v4m0-4h3m-6 4h6"/></g></svg>
|
||||
|
After Width: | Height: | Size: 269 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M16.5 7A7 7 0 1 0 17 12M16.5 3v4h-4"/></g></svg>
|
||||
|
After Width: | Height: | Size: 221 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 5h10M7 10h10M7 15h10"/><circle cx="3.5" cy="5" r=".6"/><circle cx="3.5" cy="10" r=".6"/><circle cx="3.5" cy="15" r=".6"/></g></svg>
|
||||
|
After Width: | Height: | Size: 307 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3h12l2 2v12H3ZM6 3v5h7V3M6 17v-5h8v5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 225 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 3H3v4m10-4h4v4M3 13v4h4m10-4v4h-4M6 10h8m-6-3v6m4-6v6"/></g></svg>
|
||||
|
After Width: | Height: | Size: 242 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="5.5"/><path d="m12.5 12.5 4.5 4.5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 239 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7 3.5v13M4.5 7h.1m-.1 3h.1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 266 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5h3m4 0h7M3 10h8m4 0h2M3 15h2m4 0h8"/><circle cx="8" cy="5" r="2"/><circle cx="13" cy="10" r="2"/><circle cx="7" cy="15" r="2"/></g></svg>
|
||||
|
After Width: | Height: | Size: 314 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4v12m-3-3 3 3 3-3M13 5h4m-4 5h3m-3 5h2"/></g></svg>
|
||||
|
After Width: | Height: | Size: 227 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M2.5 8h15M8 8v8.5m4-8.5v8.5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 266 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 5.5h13M7 5V3h6v2M5 5.5l.8 11h8.4l.8-11M8 8.5v5m4-5v5"/></g></svg>
|
||||
|
After Width: | Height: | Size: 243 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 12.5v-10M6.5 6 10 2.5 13.5 6M3.5 13v4h13v-4"/></g></svg>
|
||||
|
After Width: | Height: | Size: 233 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m10 2.5 8 14H2Zm0 5v4.5m0 2.5h.01"/></g></svg>
|
||||
|
After Width: | Height: | Size: 219 B |
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.323206901227035,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 131,
|
||||
"options_exposed": true
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
# 第二种背景磨砂:正式 PySide6 接入
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
> 正式界面现已继续完成 [按钮、布局与右侧磨砂补全](layout-refinement.md),当前截图与验收数值以该记录为准。
|
||||
|
||||
2026-10-30。工作分支 `codex/ui-update`。用户明确批准材质对比页中的第二种“背景磨砂”,本次已将它接入正式 `TrialTaskCenterWindow`。
|
||||
|
||||
## 已实现
|
||||
|
||||
- 通过 ctypes 对窗口自身启用 Windows Acrylic;使用事先在本机验证可见效果的 `SetWindowCompositionAttribute` 路径。没有把浏览器 CSS 当作原生窗口背景模糊,也没有用背景截图充当材质。
|
||||
- 保留系统窗口框架,顶栏与任务侧栏响应真实窗口后的内容。没有使用全窗口 opacity。
|
||||
- 高对比度、系统透明度关闭、远程会话、非 Windows / 离屏、不支持的版本、接口失败与用户选择减少透明度时回退实色。可见窗口定期复查系统策略;只影响本窗口,不写系统设置。
|
||||
- alpha 窗口在回退时显式绘制实色底,避免原生窗口在禁用合成后露出黑色区域。
|
||||
- 32 个原创新 SVG 文件纳入正式应用 assets,沿用原有 package-data 规则。导航、执行、保存、导入导出、诊断和任务操作接入图标,并保留操作文字 / 提示。
|
||||
- 工程名称和路径置于表格上方;原有 Value 与关闭归档选项放入可展开区域;缩窄布局后保留位号表和操作空间。
|
||||
|
||||
现有执行状态机、CAD 服务与 DSH 后端未作为本次材质修改的一部分重写。工作区中已有的其他 DSH 生命周期修改被保留,本次没有替它们提交或发布。
|
||||
|
||||
## 测试
|
||||
|
||||
相关命令:
|
||||
|
||||
```powershell
|
||||
python -m pytest tests/ui tests/v1_1/test_ui_workspace.py tests/v1_1/test_ui_remediation.py tests/v1_1/test_safe_stop_ui.py tests/v1_1/test_target_table.py tests/v1_1/test_ui_operation_lifecycle.py tests/v1_1/test_task_navigation.py -q --basetemp=build/pytest-acrylic-final
|
||||
```
|
||||
|
||||
结果:**103 passed**。覆盖材质策略 / 回退、偏好持久化、句柄变化、SVG 控件、现有 UI 流程、窄窗口、草稿、过滤/排序与安全暂停等相关行为。
|
||||
|
||||
独立静态代码审查未发现本次范围中的重要生产问题;指出的 Windows 专属策略测试缺少平台跳过标记已修正。
|
||||
|
||||
实机验收命令:
|
||||
|
||||
```powershell
|
||||
python tools/accept_acrylic_ui.py --output build/acrylic-acceptance
|
||||
```
|
||||
|
||||
验收使用临时示例工程、库存和已保存计划,没有启动 CAD。实际窗口置于自有实时背板上,截图区域在保存前检查窗口归属。验证环境为 Windows 11 build 26200,125% 缩放。
|
||||
|
||||
| 项目 | 实测 |
|
||||
| --- | --- |
|
||||
| 原生 Acrylic | 已启用,截图可见背景模糊 |
|
||||
| 背板换色时侧栏变化 | 平均像素差约 21.32 |
|
||||
| 同时表格区域变化 | 平均像素差 0.0,保持实色 |
|
||||
| 减少透明度后的侧栏 | 实色 RGB 均值 233 / 238 / 244,无黑色底 |
|
||||
| 980×700 | 窗口尺寸保持,位号表 viewport 高度 131 逻辑像素 |
|
||||
| Value / 归档选项 | 可从标题旁入口展开 |
|
||||
|
||||
数值是固定示例区域的图像比较,不是通用性能或视觉质量评分。日志见 [implementation-acceptance.json](implementation-acceptance.json)。
|
||||
|
||||
## 实际窗口截图
|
||||
|
||||
以下是正式 Qt 窗口的系统合成截图,已使用示例工程数据,不是 HTML 预览。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 交付边界
|
||||
|
||||
已更新源代码与打包资产,尚未重新构建便携 EXE。旧版便携包不会自动更新外观。本轮未做真实 CAD 写入,也未完成 Windows 10、多显示器、不同显卡驱动、所有缩放比例与发布包的跨环境验证。
|
||||
|
||||
窗口使用 Windows 合成接口;不同系统设置与远程环境下可能回退为实色。当前 DSH 内嵌前端继续使用其自身界面,只统一外层导航,不宣称已重写官方 Harness 的页面。
|
||||
|
After Width: | Height: | Size: 328 KiB |
|
After Width: | Height: | Size: 381 KiB |
|
After Width: | Height: | Size: 379 KiB |
|
After Width: | Height: | Size: 125 KiB |
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.82688605017125,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"right_header_backdrop_difference": 7.638507661558961,
|
||||
"right_execution_backdrop_difference": 12.32960451977401,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 194,
|
||||
"options_exposed": true
|
||||
}
|
||||
|
After Width: | Height: | Size: 660 KiB |
|
After Width: | Height: | Size: 809 KiB |
|
After Width: | Height: | Size: 803 KiB |
@@ -0,0 +1,35 @@
|
||||
# 正式界面:按钮、布局与右侧磨砂补全
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
用户反馈上一轮只落地外壳和图标,按钮布局仍旧、右侧磨砂被白底遮挡。本轮修改正式 PySide6 组件,保留已有服务与执行门禁。
|
||||
|
||||
## 已改变的布局
|
||||
|
||||
- 任务侧栏顶部直接新建;编辑、恢复、顺序调整和删除进入任务管理菜单,显示排序单独提供菜单。任务项用 delegate 分层显示名称、状态、图标与顺序,不添加逐行 QWidget。完整名称和路径继续保留在数据与提示中。
|
||||
- 搜索、BOM 模板、BOM 导入和位号采集合并到一条工具栏。搜索支持输入过滤、清空和下一条;低频位号 Excel 工具与搜索命令进入更多菜单。
|
||||
- 保存计划移至表格底部,和逐行编辑、批量填写形成连续操作区。
|
||||
- 执行区只显示当前状态的直接动作。普通执行、恢复、重试、开始新一轮与安全暂停按已有状态门禁显示。诊断、资源清理、轮次证据、布局和强制结束进入更多操作菜单;强制结束保留原确认流程。
|
||||
- 工程状态与设置位于标题行,工程重新读取收进菜单,路径保留复制入口。
|
||||
|
||||
## 右侧材质
|
||||
|
||||
移除工作区与标签页的大面积不透明白底。右侧工程标题、搜索工具栏、编辑工具区和执行面板现在共同透出 Windows 原生 Acrylic。表格 viewport 继续保持实色,交互菜单与错误/恢复提示仍须清晰可读。
|
||||
|
||||
底层使用上一轮已验证的 Windows 合成实现,不通过整窗口 opacity 制造效果;减少透明度仍切回实色。
|
||||
|
||||
## 命令安全与验证
|
||||
|
||||
菜单通过现有按钮对象执行,菜单展示时同步文字、图标、启用与显式可见状态;触发时再次检查源按钮当前状态。隐藏按钮保留在原面板的隐藏存储容器内,继续受原业务门禁控制。没有复制执行逻辑,也没有让过期菜单状态绕过禁用操作。
|
||||
|
||||
新增 `test_workspace_redesign.py` 覆盖菜单触发与禁用、任务管理菜单、工具栏与保存位置、执行维护菜单、小窗口操作可见性。相关回归合计 **108 项通过**。独立静态审查未发现重要的命令路由、状态或可见性问题。
|
||||
|
||||
原生验收新增了右侧两个采样区:工程路径/标题区域和执行区。改变自有背板时,左右外壳都必须变化;表格区域仍须不变。Windows 11 build 26200、125% 缩放下通过,980×700 表格 viewport 约 194 逻辑像素。
|
||||
|
||||
本次验收使用临时示例数据,没有启动 CAD。详细数值见 [layout-acceptance.json](layout-acceptance.json)。旧窗口会通过正常关闭流程重开;未保存或运行中的关闭保护不会被自动绕过。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码界面已更新,便携 EXE 尚未重新构建。Windows 10、不同驱动、远程桌面及打包后的效果仍需对应环境验证。
|
||||
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 547 KiB |
|
After Width: | Height: | Size: 478 KiB |
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>毛玻璃机制对比 · DxPartReplace</title>
|
||||
<style>
|
||||
*{box-sizing:border-box}body{margin:0;background:#f4f5f7;color:#2c3542;font:13px "Segoe UI","Microsoft YaHei UI",sans-serif}header{padding:30px 38px 22px;border-bottom:1px solid #e0e4ea;background:white;display:flex;align-items:center;gap:25px}h1{font-size:23px;font-weight:600;letter-spacing:-.5px;margin:0 0 8px}header p{color:#7b8594;margin:0;font-size:12px}.tag{margin-left:auto;border:1px solid #dfe6ee;padding:6px 10px;border-radius:6px;font-size:11px;color:#8190a3}.controls{display:flex;align-items:center;gap:22px;margin:24px 38px 20px;padding:16px 20px;background:white;border:1px solid #e1e6ee;border-radius:12px}.controls label{display:flex;align-items:center;gap:10px;font-size:12px;color:#748297}input{accent-color:#526c8d}button{background:#fff;border:1px solid #dce3ec;border-radius:7px;padding:7px 12px;font:inherit;font-size:12px;color:#647b99;cursor:pointer}.controls button{margin-left:auto}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 38px}.card{min-width:0;background:#fff;border:1px solid #e0e5ec;border-radius:15px;overflow:hidden}.cardhead{padding:17px 18px 15px}.cardhead h2{font-size:14px;font-weight:600;margin:0 0 6px}.cardhead p{color:#8795a7;font-size:11px;margin:0;line-height:1.6}.scene{position:relative;height:420px;background:#e1e6ed;overflow:hidden;border-top:1px solid #e6eaf0;border-bottom:1px solid #e6eaf0}.backdrop{position:absolute;inset:-120px;transform:translateX(var(--shift,0px));background:repeating-linear-gradient(90deg,transparent 0 22px,#ffffff99 23px 24px),linear-gradient(120deg,#5984b6,#a7c9c6 48%,#d3a6a0);display:flex;flex-direction:column;padding:130px 135px;gap:14px;color:#284967;font:15px Consolas,monospace;white-space:nowrap}.backdrop strong{font:600 44px "Segoe UI",sans-serif;letter-spacing:-2px;margin:0 0 20px}.backdrop span{color:white;text-shadow:0 1px 1px #1e395733}.glass{position:absolute;left:28px;right:28px;top:56px;bottom:47px;background:rgba(255,255,255,.12);border:1px solid #ffffffc4;border-radius:22px;box-shadow:inset 0 1px 0 #ffffffdb,0 14px 35px #29445f19;padding:23px 20px;color:#213e5a}.glass h3{font-size:17px;margin:0 0 6px;font-weight:600}.glass p{font-size:11px;margin:0;color:#3b5d7e}.sample{margin-top:85px}.sample>div{background:#ffffff44;border:1px solid #ffffff86;border-radius:8px;padding:10px 11px;margin-top:8px;display:flex;justify-content:space-between;font-size:11px}.sample b{font-weight:500}.sample small{color:#526f8d}.frost .glass{backdrop-filter:blur(var(--blur,18px)) saturate(125%);background:#ffffff30}.liquid .glass{backdrop-filter:url(#lens) blur(1px) saturate(125%);background:#ffffff18;box-shadow:inset 2px 2px 1px #ffffffc7,inset -2px -2px 1px #ffffff65,0 14px 35px #29445f19}.liquid .glass:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(130deg,#ffffff5c,transparent 22% 75%,#ffffff24);border:1px solid #ffffff60}.notes{padding:16px 18px 19px;color:#7d8ca1;font-size:11px;line-height:1.8;height:112px}.notes b{color:#4c6689;font-weight:500}.legend{margin:22px 38px 0;display:flex;gap:22px;font-size:11px;color:#8b98aa}.legend b{font-weight:500;color:#677f9e}.native{margin:22px 38px 30px;background:#fff;border:1px solid #dfe6f0;border-radius:13px;padding:20px 22px;display:flex;align-items:center;gap:18px}.native h2{font-size:14px;margin:0 0 8px;font-weight:500}.native p{font-size:11px;color:#8c9aaf;margin:0;line-height:1.8}.native a{margin-left:auto;text-decoration:none;font-size:12px;color:#607eaa;white-space:nowrap;border:1px solid #dfe7f2;padding:10px 14px;border-radius:8px}.foot{margin:0 38px 28px;color:#9aa6b6;font-size:10px;line-height:1.8}.off .glass{backdrop-filter:none!important}.off .frost .glass{background:#fff6}.off .liquid .glass{background:#fff3}@media(max-width:1050px){header,.controls{margin-left:0;margin-right:0}.cards{padding:0 18px;gap:12px}.glass{left:17px;right:17px;padding:20px 15px}.controls{margin:18px}.controls label{font-size:11px}.native{margin:20px 18px}.scene{height:400px}.backdrop{padding-left:125px}.controls{flex-wrap:wrap}.notes{height:145px}}
|
||||
</style>
|
||||
<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs><filter id="lens" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1" color-interpolation-filters="sRGB"><feImage id="lensMap" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="map"/><feDisplacementMap in="SourceGraphic" in2="map" scale="58" xChannelSelector="R" yChannelSelector="G"/></filter></defs></svg>
|
||||
<header><div><h1>毛玻璃,要让背后的内容真正发生变化。</h1><p>同一份活动背板,比较透明、背景模糊与边缘折射。前景文字始终保持清楚。</p></div><span class="tag">材质验证台 · 浏览器模拟</span></header>
|
||||
<section class="controls"><label>背后内容位置 <input id="shift" type="range" min="-75" max="75" value="0" oninput="moveBackdrop(this.value)"></label><label>磨砂强度 <input id="blur" type="range" min="0" max="32" value="18" oninput="setBlur(this.value)"><span id="blurValue">18px</span></label><button id="effectSwitch" aria-pressed="true" onclick="toggleEffects()">关闭模糊 / 折射</button></section>
|
||||
<section class="cards"><article class="card clear"><div class="cardhead"><h2>01 · 只有透明</h2><p>Alpha 混合;没有模糊,也没有折射。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>只透明会让背景线条穿过控件。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>观察:</b>背景文字、竖线保持锐利。<br>这是不能替代毛玻璃的透明面板。</div></article>
|
||||
<article class="card frost"><div class="cardhead"><h2>02 · 背景磨砂</h2><p>Backdrop blur + 饱和度 + 轻染色。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>颜色透入,细节经过真实模糊。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>参考:</b>WinUI Gallery、PythonBlurBehind、PyQt-Frameless-Window。<br>本列是浏览器内背景模糊;原生系统实测见下方。</div></article>
|
||||
<article class="card liquid"><div class="cardhead"><h2>03 · 低磨砂 + 边缘折射</h2><p>SVG 位移贴图采样背后内容,弯曲边缘。</p></div><div class="scene"><div class="backdrop"></div><div class="glass"><h3>工程任务</h3><p>观察边界处的竖线与文字弯曲。</p><div class="sample"><div><b>Audio_D2128</b><small>待执行</small></div><div><b>RV05</b><small>1 个替换位号</small></div></div></div></div><div class="notes"><b>参考:</b>rdev/liquid-glass-react、shuding/liquid-glass。<br>本列原创位移贴图;适合浮层,不建议铺满工程表格。</div></article></section>
|
||||
<div class="legend"><span><b>可验证:</b>拖动背板,看透射与折射随内容移动。</span><span><b>可对比:</b>关闭效果,背景细节立即恢复。</span><span><b>边界:</b>网页效果不等于 Windows 原生背景模糊。</span></div>
|
||||
<section class="native"><div><h2>已验证 Windows 原生 Acrylic / PySide6</h2><p>直接调用 SetWindowCompositionAttribute。左侧为普通透明,右侧为原生模糊,背板来自独立的实时窗口。<br>DWM 背景类型的调用成功不代表实际有模糊,需查看实测报告。</p></div><a href="native-acrylic-a.png">查看原生对照实拍</a><a href="github-material-research.md">8 个 GitHub 项目的实现对比</a></section>
|
||||
<p class="foot">所有背景图形由页面生成,无图片截图纹理;没有远程媒体或 CDN。SVG 滤镜依赖浏览器支持,浏览器不支持时应回退到普通磨砂。本页不操作 CAD 或任务数据。</p>
|
||||
<script>
|
||||
document.querySelectorAll('.backdrop').forEach(el=>el.innerHTML='<strong>BACKDROP<br>LIVE</strong>'+Array.from({length:7},()=>'<span>RV05 4100-CA0000-T7 100nF</span>').join(''));
|
||||
const mapCanvas=document.createElement('canvas');mapCanvas.width=384;mapCanvas.height=384;const ctx=mapCanvas.getContext('2d'),pixels=ctx.createImageData(384,384);
|
||||
for(let y=0;y<384;y++)for(let x=0;x<384;x++){let nx=x/383,ny=y/383;let edge=Math.min(nx,1-nx,ny,1-ny);let falloff=Math.max(0,1-edge/.17);falloff=falloff*falloff;let dx=nx<.5?-1:1,dy=ny<.5?-1:1;let horizontal=Math.abs(nx-.5)*2,vertical=Math.abs(ny-.5)*2;let i=(y*384+x)*4;pixels.data[i]=128+dx*falloff*horizontal*105;pixels.data[i+1]=128+dy*falloff*vertical*105;pixels.data[i+2]=128;pixels.data[i+3]=255}
|
||||
ctx.putImageData(pixels,0,0);document.getElementById('lensMap').setAttribute('href',mapCanvas.toDataURL());
|
||||
function moveBackdrop(value){document.documentElement.style.setProperty('--shift',value+'px')}
|
||||
function setBlur(value){document.documentElement.style.setProperty('--blur',value+'px');document.getElementById('blurValue').textContent=value+'px'}
|
||||
function toggleEffects(){const off=document.body.classList.toggle('off');document.getElementById('effectSwitch').setAttribute('aria-pressed',String(!off));document.getElementById('effectSwitch').textContent=off?'启用模糊 / 折射':'关闭模糊 / 折射'}
|
||||
</script></html>
|
||||
|
After Width: | Height: | Size: 466 KiB |
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"browser": "156.0.8078.73",
|
||||
"backdrop_support": true,
|
||||
"svg_displacement_support": true,
|
||||
"frost_filter": "blur(18px) saturate(1.25)",
|
||||
"effects_off": "none",
|
||||
"background_transform": "matrix(1, 0, 0, 1, 65, 0)",
|
||||
"compact_no_horizontal_overflow": true,
|
||||
"page_errors": [],
|
||||
"pixel_comparisons": [
|
||||
{
|
||||
"card": 0,
|
||||
"effects_on_vs_off_mean_difference": 0.8051708148482342,
|
||||
"backdrop_moved_difference": 11.28541744993358
|
||||
},
|
||||
{
|
||||
"card": 1,
|
||||
"effects_on_vs_off_mean_difference": 14.270726560144709,
|
||||
"backdrop_moved_difference": 4.7047532911265195
|
||||
},
|
||||
{
|
||||
"card": 2,
|
||||
"effects_on_vs_off_mean_difference": 10.785156778705165,
|
||||
"backdrop_moved_difference": 8.87468481339449
|
||||
}
|
||||
],
|
||||
"native": {
|
||||
"sharp_horizontal_edge_energy": 4.490932590169232,
|
||||
"acrylic_horizontal_edge_energy": 0.7067472915091962,
|
||||
"edge_suppression_ratio": 6.354368306922327,
|
||||
"live_backdrop_color_difference": 7.227865290602934,
|
||||
"os_build": 26200,
|
||||
"swca_returned_success": true,
|
||||
"dwm_hresult": 0,
|
||||
"dwm_observation": "Solid output in this isolated Qt setup after clearing SWCA; HRESULT 0 alone is not evidence of backdrop blur."
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 466 KiB |
|
After Width: | Height: | Size: 470 KiB |
|
After Width: | Height: | Size: 474 KiB |
@@ -0,0 +1,124 @@
|
||||
"""Disposable native Windows material probe, not a CAD or production UI change.
|
||||
|
||||
Run with Python + PySide6 + Pillow on Windows. Opens only owned test windows,
|
||||
captures their shared rectangle, then closes them. No user content is sampled.
|
||||
"""
|
||||
import ctypes
|
||||
from ctypes import wintypes
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
os.environ.pop('QT_QPA_PLATFORM',None)
|
||||
from PySide6.QtCore import Qt,QTimer,QRectF
|
||||
from PySide6.QtGui import QColor,QFont,QPainter,QLinearGradient,QPen
|
||||
from PySide6.QtWidgets import QApplication,QWidget,QVBoxLayout,QLabel
|
||||
from PIL import ImageGrab
|
||||
|
||||
root=Path(__file__).resolve().parent
|
||||
user=ctypes.WinDLL('user32',use_last_error=True)
|
||||
dwm=ctypes.WinDLL('dwmapi',use_last_error=True)
|
||||
user.SetWindowCompositionAttribute.argtypes=[wintypes.HWND,ctypes.c_void_p]
|
||||
user.SetWindowCompositionAttribute.restype=wintypes.BOOL
|
||||
class Point(ctypes.Structure):
|
||||
_fields_=[('x',ctypes.c_long),('y',ctypes.c_long)]
|
||||
user.WindowFromPoint.argtypes=[Point]
|
||||
user.WindowFromPoint.restype=wintypes.HWND
|
||||
user.GetWindowThreadProcessId.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.DWORD)]
|
||||
dwm.DwmSetWindowAttribute.argtypes=[wintypes.HWND,wintypes.DWORD,ctypes.c_void_p,wintypes.DWORD]
|
||||
dwm.DwmSetWindowAttribute.restype=ctypes.c_long
|
||||
class Accent(ctypes.Structure):
|
||||
_fields_=[('state',ctypes.c_int),('flags',ctypes.c_int),('color',ctypes.c_uint32),('animation',ctypes.c_int)]
|
||||
class Composition(ctypes.Structure):
|
||||
_fields_=[('attribute',ctypes.c_int),('data',ctypes.c_void_p),('size',ctypes.c_size_t)]
|
||||
def accent(hwnd,state):
|
||||
policy=Accent(state,0,0x20F4F4F4,0)
|
||||
data=Composition(19,ctypes.cast(ctypes.pointer(policy),ctypes.c_void_p),ctypes.sizeof(policy))
|
||||
return bool(user.SetWindowCompositionAttribute(hwnd,ctypes.byref(data)))
|
||||
def backdrop(hwnd,kind):
|
||||
value=ctypes.c_int(kind)
|
||||
return int(dwm.DwmSetWindowAttribute(hwnd,38,ctypes.byref(value),ctypes.sizeof(value)))
|
||||
|
||||
app=QApplication([])
|
||||
app.setFont(QFont('Segoe UI',11))
|
||||
screen=app.primaryScreen().availableGeometry()
|
||||
width=min(1200,screen.width()-60);height=min(760,screen.height()-60)
|
||||
origin=(screen.x()+(screen.width()-width)//2,screen.y()+(screen.height()-height)//2)
|
||||
class Background(QWidget):
|
||||
phase=0
|
||||
def paintEvent(self,event):
|
||||
p=QPainter(self);p.setRenderHint(QPainter.RenderHint.Antialiasing)
|
||||
p.fillRect(self.rect(),QColor('#e8edf2'))
|
||||
for col in range(2):
|
||||
area=QRectF(30+col*(width/2),110,width/2-60,height-155)
|
||||
g=QLinearGradient(area.topLeft(),area.bottomRight())
|
||||
g.setColorAt(0,QColor('#4c79b6') if self.phase==0 else QColor('#cf8663'))
|
||||
g.setColorAt(.47,QColor('#aecac9'));g.setColorAt(1,QColor('#d6a39e') if self.phase==0 else QColor('#6a88b1'))
|
||||
p.fillRect(area,g)
|
||||
p.setPen(QPen(QColor('#ffffffb0'),2))
|
||||
for x in range(int(area.left()),int(area.right()),24):p.drawLine(x,int(area.top()),x,int(area.bottom()))
|
||||
p.setPen(QColor('#253d57'));p.setFont(QFont('Segoe UI',35,QFont.Weight.Bold))
|
||||
p.drawText(area.adjusted(22,90,-10,0),'BACKDROP\nLIVE '+str(self.phase+1))
|
||||
p.setPen(QColor('#fff'));p.setFont(QFont('Consolas',13))
|
||||
for row in range(6):p.drawText(int(area.left()+22),int(area.top()+260+row*30),'RV05 4100-CA0000-T7 100nF')
|
||||
p.setPen(QColor('#34475f'));p.setFont(QFont('Segoe UI',18,QFont.Weight.DemiBold))
|
||||
p.drawText(30,38,'Native Windows / PySide6 material probe')
|
||||
p.setFont(QFont('Segoe UI',10));p.setPen(QColor('#6c7f96'))
|
||||
p.drawText(30,66,'Identical owned background on both sides. No screenshot texture is painted into either foreground window.')
|
||||
p.drawText(30,height-17,'Captured from actual Windows composition; no CAD, no user project, no foreign window in the capture rectangle.')
|
||||
|
||||
class Pane(QWidget):
|
||||
def __init__(self,title,subtitle):
|
||||
super().__init__(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint)
|
||||
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||
layout=QVBoxLayout(self);layout.setContentsMargins(24,25,24,24)
|
||||
titleLabel=QLabel(title);titleLabel.setStyleSheet('background:transparent;color:#213952;font-size:18px;font-weight:600')
|
||||
hint=QLabel(subtitle);hint.setStyleSheet('background:transparent;color:#46617f;font-size:11px');hint.setWordWrap(True)
|
||||
layout.addWidget(titleLabel);layout.addWidget(hint);layout.addStretch()
|
||||
for text in ['Audio_D2128','Selected: RV05','Plan saved / No CAD write']:
|
||||
label=QLabel(text);label.setStyleSheet('background:rgba(255,255,255,110);color:#314d6c;border:1px solid rgba(255,255,255,170);border-radius:7px;padding:10px;font-size:12px');layout.addWidget(label)
|
||||
def paintEvent(self,event):
|
||||
p=QPainter(self);p.fillRect(self.rect(),QColor(255,255,255,45));p.setPen(QPen(QColor(255,255,255,170),1));p.drawRect(self.rect().adjusted(0,0,-1,-1))
|
||||
|
||||
bg=Background(None,Qt.WindowType.FramelessWindowHint|Qt.WindowType.Tool|Qt.WindowType.WindowStaysOnTopHint)
|
||||
bg.setGeometry(origin[0],origin[1],width,height)
|
||||
left=Pane('Transparency only','OS blur disabled. Background lines and letters remain sharp.')
|
||||
right=Pane('Windows Acrylic','ACCENT_ENABLE_ACRYLICBLURBEHIND. Background is composed by Windows.')
|
||||
paneW=int(width/2-112);paneH=height-250
|
||||
left.setGeometry(origin[0]+56,origin[1]+143,paneW,paneH)
|
||||
right.setGeometry(origin[0]+int(width/2)+56,origin[1]+143,paneW,paneH)
|
||||
report={'os_build':sys.getwindowsversion().build,'capture_method':'PIL ImageGrab of owned background window rectangle, not QWidget.grab','uses_baked_backdrop':False,'ownership_grid_checked':True,'artifacts':[]}
|
||||
bg.show();left.show();right.show();right.raise_();right.activateWindow()
|
||||
def capture(name):
|
||||
dpr=app.primaryScreen().devicePixelRatio()
|
||||
bbox=tuple(round(v*dpr) for v in [origin[0],origin[1],origin[0]+width,origin[1]+height])
|
||||
for y in range(bbox[1]+3,bbox[3]-3,24):
|
||||
for x in range(bbox[0]+3,bbox[2]-3,24):
|
||||
hwnd=user.WindowFromPoint(Point(x,y));pid=wintypes.DWORD()
|
||||
user.GetWindowThreadProcessId(hwnd,ctypes.byref(pid))
|
||||
if pid.value!=os.getpid():
|
||||
left.close();right.close();bg.close();app.quit()
|
||||
raise RuntimeError('Owned test rectangle is occluded; no capture saved')
|
||||
im=ImageGrab.grab(bbox=bbox,all_screens=True)
|
||||
im.save(root/name);report['artifacts'].append({'file':name,'dimensions':im.size,'phase':bg.phase})
|
||||
def first():
|
||||
report['accent_api_return']=accent(int(right.winId()),4)
|
||||
report['left_native_handle']=int(left.winId());report['right_native_handle']=int(right.winId())
|
||||
QTimer.singleShot(1800,second)
|
||||
def second():
|
||||
capture('native-acrylic-a.png');bg.phase=1;bg.update();QTimer.singleShot(1400,third)
|
||||
def third():
|
||||
capture('native-acrylic-b.png')
|
||||
report['clear_accent_before_dwm']=accent(int(right.winId()),0)
|
||||
report['dwm_transient_hresult']=backdrop(int(right.winId()),3)
|
||||
QTimer.singleShot(1400,fourth)
|
||||
def fourth():
|
||||
capture('native-dwm-acrylic.png')
|
||||
(root/'native-acrylic-verification.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n',encoding='utf-8')
|
||||
left.close();right.close();bg.close();app.quit()
|
||||
QTimer.singleShot(800,first)
|
||||
QTimer.singleShot(15000,app.quit)
|
||||
app.exec()
|
||||
assert 'dwm_transient_hresult'in report,'Probe did not complete'
|
||||
print(json.dumps(report,ensure_ascii=True))
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"os_build": 26200,
|
||||
"capture_method": "PIL ImageGrab of owned background window rectangle, not QWidget.grab",
|
||||
"uses_baked_backdrop": false,
|
||||
"ownership_grid_checked": true,
|
||||
"artifacts": [
|
||||
{
|
||||
"file": "native-acrylic-a.png",
|
||||
"dimensions": [
|
||||
1500,
|
||||
944
|
||||
],
|
||||
"phase": 0
|
||||
},
|
||||
{
|
||||
"file": "native-acrylic-b.png",
|
||||
"dimensions": [
|
||||
1500,
|
||||
944
|
||||
],
|
||||
"phase": 1
|
||||
},
|
||||
{
|
||||
"file": "native-dwm-acrylic.png",
|
||||
"dimensions": [
|
||||
1500,
|
||||
944
|
||||
],
|
||||
"phase": 1
|
||||
}
|
||||
],
|
||||
"accent_api_return": true,
|
||||
"left_native_handle": 21301414,
|
||||
"right_native_handle": 36241716,
|
||||
"clear_accent_before_dwm": true,
|
||||
"dwm_transient_hresult": 0
|
||||
}
|
||||
|
After Width: | Height: | Size: 166 KiB |
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.82010089789873,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"right_header_backdrop_difference": 9.334799022873641,
|
||||
"right_execution_backdrop_difference": 12.328983050847457,
|
||||
"visible_search_feedback": true,
|
||||
"empty_search_feedback": true,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 197,
|
||||
"options_exposed": true
|
||||
}
|
||||
|
After Width: | Height: | Size: 661 KiB |
|
After Width: | Height: | Size: 788 KiB |
|
After Width: | Height: | Size: 805 KiB |
|
After Width: | Height: | Size: 791 KiB |
@@ -0,0 +1,29 @@
|
||||
# PR #10 第二轮审查修复(2026-10-31)
|
||||
|
||||
对应[评论 #117](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-117),基于已同步 main 的 `6f9f820`,仍在独立检出中验证,不包含主工作区未提交的 DSH 生命周期文件。
|
||||
|
||||
## P1:原执行轮次的停止意图
|
||||
|
||||
审查复现成立:用户在最后一步请求安全暂停或强制结束,而末项返回 `batch_failed` 时,队列可能已耗尽,`paused=False`。原实现先清除 `_batch_stop`,诊断开始时新建 `StopControl`,导致自动重试的 `not_stopped` 门禁失去原始停止请求。
|
||||
|
||||
现在窗口在运行收尾时保留原执行轮次的 `StopControl`(包括 `force_event`),排入诊断队列时将该对象与原 `run_id` 一起捕获。`DshAutomation` 直接复用该对象;等待诊断启动及模型回复期间的停止请求也能被同一对象观察。单任务结果、批次结果及 worker 异常回调统一经过这一传递。诊断、证据和待提交工单仍可保存,但停止后的轮次不会准备或执行失败项重试,也不会消耗重试额度。
|
||||
|
||||
新的显式确认执行通过 `_begin_run` 创建新轮次与新控制对象;不会清除或重置旧轮次的停止请求。回归验证了暂停后用户重新准备并确认执行的路径,正常重试仍可用。
|
||||
|
||||
## P2:运行时输出的 UTF-8 分块
|
||||
|
||||
审查复现成立:QProcess 输出块边界可落在中文字符的 UTF-8 字节中间,按块 `decode(..., 'replace')` 会把合法中文改成替换字符,而 JSON 仍能解析。
|
||||
|
||||
stdout 和 stderr 现分别使用持续的增量 UTF-8 解码器;stdout 完成解码后再按行解析原协议。每次启动(含重试启动)均清空协议行缓冲和两个解码器,旧进程的半行或未完成字符不会混入新进程。无改变协议前缀、任务参数、Origin 校验或动作门禁。
|
||||
|
||||
## 回归证据
|
||||
|
||||
新增 `tests/ui/test_pr10_review_edges.py` 共 15 项:
|
||||
|
||||
- 单任务/批次 × 未暂停、暂停、强制结束、暂停后重新授权。使用真实 `TaskCenterService`、执行队列、持久化、`DshAutomation` 和 `IncidentRunner`,只替换外部 CAD、模型、工单传输与线程派发。明确断言末项结果 `paused=False`,停止后执行器仅调用一次,正常对照允许两次;重新授权路径仍可执行并重试。
|
||||
- worker 异常收尾覆盖未暂停、暂停和强制结束三种情况,验证诊断收到同一个原控制对象、原 run ID 和授权上下文。
|
||||
- CREATE_REQUEST 在每个字节位置拆成两块,涵盖中文、目录、自定义 Value、μ 与 emoji;多行 DIAGNOSIS 每字节分块;stderr 中文分块;通过真实 `start()` 路径验证重启清空旧半行和 UTF-8 状态。
|
||||
|
||||
修改前复现暂停/强制结束的 4 个错误重试,以及两个 Unicode 损坏用例;正常对照通过。修改后新增 15 项通过,独立复核同样通过 15 项。`tests/ui tests/dsh` 加安全停止相关回归共 156 项通过。完整 `tests/v1_1 tests/ui tests/dsh tests/packaging` 回归 **1101 项通过**,无忽略/跳过项,1 条已有 pywinauto COM 模式警告,结果见本目录的 `pr10-review-117-tests.json`。
|
||||
|
||||
本轮未启动 CAD、真实模型、浏览器运行时或远端工单传输;未重建 EXE。真实源码协议方法通过信号接收器及 QProcess 字节流替身调用。
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-117-tests.xml",
|
||||
"tests": 1101,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"seconds": 333.04,
|
||||
"review_comment": 117,
|
||||
"main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd",
|
||||
"isolated_checkout": true,
|
||||
"test_exclusions": [],
|
||||
"warnings": [
|
||||
"pywinauto: Revert to STA COM threading mode"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# PR #10 评论 #127 修复(2026-10-31)
|
||||
|
||||
对应[评论 #127](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-127)提出的两项 P3。基于 `0bc1f64` 的独立检出修改,不包含主工作区未提交文件。
|
||||
|
||||
## 畸形协议行不再丢弃后续消息
|
||||
|
||||
原 `_stdout()` 已取出一批完整行,但其中一行 `json.loads` 异常会提前退出 Qt 槽,导致同批后续行丢失。现逐行解析并隔离 JSON、对象类型和 READY 地址字段的输入错误;坏行跳过后继续处理同批合法消息。增量 UTF-8 解码与原 task_id/revision、本机 URL 检查继续生效。
|
||||
|
||||
诊断信息仅追加固定协议前缀与异常类型,并沿用 12000 字符上限;不保存坏行原文或解析异常中的载荷,避免把用户数据或凭据带入错误日志。未知普通输出仍忽略。
|
||||
|
||||
## 模型元数据原子发布
|
||||
|
||||
`provider.json` 改为先写同目录唯一临时文件,写完整后 flush/fsync,再通过 `os.replace` 发布。受控的半途写入、刷盘和替换失败均保留旧的完整 JSON,并清理临时文件。元数据仍不包含 API 密钥,DPAPI 密钥存储与加载接口保持原状。
|
||||
|
||||
此处保证元数据单文件的原子发布,不把密钥与元数据两个文件表述为一个跨文件事务。
|
||||
|
||||
## 验证
|
||||
|
||||
- 修复前新增故障用例 25 项失败,复现协议 JSON/类型异常、同批消息丢失及元数据未使用原子发布。
|
||||
- 本轮新增 27 项回归:五类协议消息 × 非法 JSON/null/list/string、READY 字段错误、坏行后的正常本机握手,以及配置写入/刷盘/替换故障。
|
||||
- 与上一轮停止意图、UTF-8 和已有配置回归合计 43 项通过;独立复核同样通过 43 项,无阻塞或重要问题。
|
||||
- 完整 `tests/v1_1 tests/ui tests/dsh tests/packaging` 回归 **1128 项通过**,无忽略/跳过项,1 条已有 pywinauto COM 模式警告;结果见 `pr10-review-127-tests.json`。未使用真实用户模型配置、未启动 CAD、真实模型或远端工单传输,未重建 EXE。
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-127-tests.xml",
|
||||
"tests": 1128,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"seconds": 534.309,
|
||||
"review_comment": 127,
|
||||
"main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd",
|
||||
"isolated_checkout": true,
|
||||
"test_exclusions": [],
|
||||
"warnings": [
|
||||
"pywinauto: Revert to STA COM threading mode"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
# PR #10 评论 #134 修复(2026-10-31)
|
||||
|
||||
对应[评论 #134](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-134)的 P2。基于 `dfbc14c` 的独立检出处理,未修改主工作区未提交内容。
|
||||
|
||||
## 配置对的一致性提交
|
||||
|
||||
原实现先覆盖固定 `provider-key.dpapi`,再发布 `provider.json`。即使 JSON 保持完整,第二步失败仍会加载旧 URL/模型与新密钥。使用不同的两个虚构服务器地址和密钥、真实 Windows DPAPI,故障注入已复现此混合;正常切换对照通过。
|
||||
|
||||
现采用版本化不可变密钥和最终原子发布指针:
|
||||
|
||||
1. 每次保存用独占创建的新 `provider-key-<uuid>.dpapi`,写入 DPAPI 密文并 flush/fsync,不覆盖已发布密钥。
|
||||
2. 在唯一临时 JSON 中写入 `schema_version=2`、对应 `key_file`、URL 和模型,flush/fsync。
|
||||
3. 最后 `os.replace` 发布 `provider.json`,这是唯一提交点。此前失败时清理未发布密钥和临时 JSON,保留完整旧配置。
|
||||
4. 已成功发布的旧密钥不自动删除,以支持读取者先读到旧 metadata、再遇到另一进程发布新版本的场景。中断可能留下的无引用密钥不参与加载。
|
||||
|
||||
加载新格式时只使用该 JSON 指定的版本密钥;引用只接受固定文件名格式,禁止路径跳转。缺失、损坏或解密失败时拒绝加载,不退回旧密钥。无版本号的旧 JSON 仍使用固定 `provider-key.dpapi`;旧配置下次保存才升级。新格式需要更新后的客户端读取。
|
||||
|
||||
桌面验收工具此前固定复制两个文件,现通过 `load_provider` 读取完整快照,再 `save_provider` 写入隔离目录,兼容旧格式及版本密钥。此过程只在内存中解密,不将明文密钥写入元数据、日志或环境文件。
|
||||
|
||||
## 验证
|
||||
|
||||
- 原实现的故障/并发读取回归 **8 failed / 2 passed**,明确复现跨提供方密钥混合。
|
||||
- provider 与 native runtime 专项 **25 passed**,独立审查同样 **25 passed**,未发现阻塞或重要问题。
|
||||
- 覆盖新旧格式 × JSON 写入/metadata 刷盘/最终替换失败;同时改变 URL 与密钥,断言保存过程中及失败后都是旧配置;正常切换、旧快照并发读取、新版本缺失禁止回退、非法引用、首次发布失败清理、验收工具复制均有回归。
|
||||
- 完整 `tests/v1_1 tests/ui tests/dsh tests/packaging` 回归 **1146 项通过**,无忽略/跳过项,1 条已有 pywinauto COM 模式警告;结果见 `pr10-review-134-tests.json`。本轮只使用临时目录与虚构密钥,未修改本机实际 provider 配置,没有模型网络请求或 CAD 操作,未重新构建 EXE。
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-134-tests.xml",
|
||||
"tests": 1146,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"seconds": 358.081,
|
||||
"review_comment": 134,
|
||||
"main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd",
|
||||
"isolated_checkout": true,
|
||||
"test_exclusions": [],
|
||||
"warnings": [
|
||||
"pywinauto: Revert to STA COM threading mode"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.82010089789873,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"right_header_backdrop_difference": 9.299740913465097,
|
||||
"right_execution_backdrop_difference": 12.328983050847457,
|
||||
"visible_search_feedback": true,
|
||||
"empty_search_feedback": true,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 197,
|
||||
"force_stop_direct": true,
|
||||
"force_stop_available_while_pausing": true,
|
||||
"options_exposed": true
|
||||
}
|
||||
|
After Width: | Height: | Size: 659 KiB |
@@ -0,0 +1,33 @@
|
||||
# PR #10 审查修复(2026-10-31)
|
||||
|
||||
对应 [审查评论 #110](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/pulls/10#issuecomment-110)。本次在独立检出中处理,主工作区未提交的 DSH 生命周期文件未带入提交或测试环境。
|
||||
|
||||
## 范围和基线
|
||||
|
||||
原 PR 标题/说明只覆盖 UI,但相对 main 的差异实际还包含 DSH 助手核心、Harness 集成、异常诊断、受控重试、工单上报及对应打包配置。现采用评论允许的“完整声明范围”方案:更新 PR 标题和说明,列出子系统、安全边界、安装依赖、验收命令和部署限制。PR #11 基于本分支继续扩展监管闭环;其新增能力与审查问题不作为本次完成项。
|
||||
|
||||
最新 main `2cf526e` 已通过合并提交 `a41c6cf` 进入本分支。这样无需改写已发布历史及下游 PR 的基线。唯一冲突位于 `main_window.py` 的执行门禁:保留 main 的 `ResourceStatus` 异步检查、未知资源状态阻断及清理按钮条件,同时保留 UI 的活动单元格 dirty 检查。`batch_runtime.py`、`supervisor_evidence.py` 和 `ui/resource_status.py` 与该 main 一致,主线的身份、快照、active_task 落盘和诊断保留修复没有被覆盖。
|
||||
|
||||
## 逐项处理
|
||||
|
||||
| 审查项 | 处理 |
|
||||
| --- | --- |
|
||||
| P1 范围声明不完整 | 完整声明 DSH 核心与 Acrylic UI 的实际范围和边界 |
|
||||
| P1 落后 main 且冲突 | 合入 main,联合保留资源状态与单元格门禁,在独立检出重跑回归 |
|
||||
| P2 强制结束入口隐藏 | 执行期间直接显示在主按钮行;安全暂停请求后仍可使用;确认和核验保护不变 |
|
||||
| P3 原生材质接口依赖 | 在用户文档中明确未文档化 accent API、Win11 DWM 实验结果、支持矩阵及未覆盖环境 |
|
||||
| P3 回退色硬编码 | `theme.py` 与 QSS 共用默认色;系统高对比度下停用自定义样式并使用系统调色板,退出后恢复原样式 |
|
||||
| P3 两秒策略轮询 | 降至 30 秒;显示、激活与系统调色板事件仍触发检查,隐藏窗口不轮询策略 |
|
||||
| P3 菜单注册时清除 hidden | 保留注册前明确设置的隐藏状态,首次同步前动作也不可见,触发时继续核对状态 |
|
||||
|
||||
独立复核另发现高对比度通用 QSS 被 `#taskSearch` 等规则覆盖,导致浅底浅字;已改为高对比度期间撤下整套样式,补测聚焦搜索框、工程标题及任务文字的实际颜色。完整测试还发现窗口销毁后排队的材质回调访问已删除 HWND;已绑定 `QTimer.singleShot` 的 QObject context,并增加 `isValid` 检查和销毁回归。
|
||||
|
||||
## 验证范围
|
||||
|
||||
- 审查点名的 `test_safe_user_stop.py`、`test_batch_runtime.py`、`test_missing_uid_inventory.py`、`test_supervisor_evidence.py`:80 项通过。
|
||||
- 材质、菜单、强制结束与安全暂停专项:26 项通过。
|
||||
- 完整合并后回归:`python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-tests.xml`,**1086 passed**,无忽略项,1 条已有 pywinauto COM 模式警告;见[结果摘要](pr10-review-tests.json)。
|
||||
- 原生验收:`python tools/accept_acrylic_ui.py --output build/pr10-review-controls-final`。临时示例数据,无 CAD/真实模型/远端工单调用。通过原生 Acrylic、实色表格、透明度回退、搜索、980×700 与执行/暂停控制入口验证;见 [JSON](pr10-review-acceptance.json)。执行按钮截图只预览 UI 状态,未派发执行 worker。
|
||||
- 本轮未重新构建 EXE,也未重新做真实模型、真实工单或 CAD 写入验收;DSH 真实集成的历史证据位于 `docs/testing/2026-10-30-dsh-*.md`。
|
||||
|
||||

|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"command": "python -m pytest -q tests/v1_1 tests/ui tests/dsh tests/packaging --junitxml=build/pr10-review-tests.xml",
|
||||
"tests": 1086,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"seconds": 193.561,
|
||||
"main_base": "2cf526e1769f354cd7e57861c4b0df9f165565dd",
|
||||
"isolated_checkout": true,
|
||||
"test_exclusions": [],
|
||||
"warnings": [
|
||||
"pywinauto: Revert to STA COM threading mode"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
[
|
||||
{
|
||||
"test": "1440x900-ready",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900,
|
||||
"primary": "核对执行范围",
|
||||
"primaryIcon": "#icon-play"
|
||||
},
|
||||
{
|
||||
"test": "1440x900-running",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900,
|
||||
"primary": "完成当前项后暂停",
|
||||
"primaryIcon": "#icon-pause"
|
||||
},
|
||||
{
|
||||
"test": "1440x900-recovery",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900,
|
||||
"primary": "核验并恢复",
|
||||
"primaryIcon": "#icon-refresh"
|
||||
},
|
||||
{
|
||||
"test": "1440x900-assistant",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900,
|
||||
"primary": "核验并恢复",
|
||||
"primaryIcon": "#icon-refresh"
|
||||
},
|
||||
{
|
||||
"test": "svg-references",
|
||||
"ok": true,
|
||||
"symbols": 32
|
||||
},
|
||||
{
|
||||
"test": "row-inspector",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "execution-review-before-write",
|
||||
"ok": true,
|
||||
"scope": "current"
|
||||
},
|
||||
{
|
||||
"test": "review-cancel-keeps-ready",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "batch-not-ready-blocked",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "dirty-plan-blocks-execution",
|
||||
"ok": true,
|
||||
"selected": 2
|
||||
},
|
||||
{
|
||||
"test": "dirty-plan-cannot-open-review",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "filtered-review-retains-hidden-selection",
|
||||
"ok": true,
|
||||
"visibleRows": 1,
|
||||
"reviewCount": 2
|
||||
},
|
||||
{
|
||||
"test": "confirm-starts-preparation",
|
||||
"ok": true,
|
||||
"phase": "准备环境"
|
||||
},
|
||||
{
|
||||
"test": "pause-does-not-interrupt-write",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "pause-waits-for-save",
|
||||
"ok": true,
|
||||
"phase": "保存工程"
|
||||
},
|
||||
{
|
||||
"test": "save-is-not-verified-success",
|
||||
"ok": true,
|
||||
"phase": "重新打开并回读核验"
|
||||
},
|
||||
{
|
||||
"test": "pause-after-verification",
|
||||
"ok": true,
|
||||
"refs": [
|
||||
"RV05",
|
||||
"RV11"
|
||||
]
|
||||
},
|
||||
{
|
||||
"test": "changed-plan-invalidates-confirmation",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "assistant-retains-recovery-lock",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "recovery-requires-explicit-review",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "recovery-goes-to-verification",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "completion-follows-verification",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "reduce-transparency",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "980x700-layout",
|
||||
"ok": true,
|
||||
"width": 980,
|
||||
"height": 700
|
||||
},
|
||||
{
|
||||
"test": "980x700-review-layout",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "zero-items-blocked",
|
||||
"ok": true
|
||||
}
|
||||
]
|
||||