fix: 收口依赖兼容与会话撤销

为 miniprogram-ci 和 Jimp 依赖增加兼容 patch 与 smoke test;修复平台模板管理员路由漏配;收紧模板契约校验;为 admin/customer 增加 token 撤销和集中会话存储;同步品牌切换角色、doctor source hash、多屏宽截图证据和 CI 构建门禁。
This commit is contained in:
que01 committed 2026-10-18 23:43:25 +08:00
1 parent 4f0b50c7f1
commit 3017e3eb49
65 files changed
+1623 -975

No files matched your search

@@ -1,11 +1,11 @@
Running 2 tests using 1 worker
(node:588768) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:633537) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588768) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:633537) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
✓ 1 test/browser/admin-editor.spec.ts:235:5 › Admin 按通用预览目标筛选字段并同步品牌草稿 (24.9s)
✓ 2 test/browser/admin-editor.spec.ts:637:5 › 林境模板支持首页和主理人区域点选 (27.0s)
✓ 1 test/browser/admin-editor.spec.ts:235:5 › Admin 按通用预览目标筛选字段并同步品牌草稿 (26.4s)
✓ 2 test/browser/admin-editor.spec.ts:637:5 › 林境模板支持首页和主理人区域点选 (27.8s)
2 passed (53.5s)
2 passed (55.7s)
File diff suppressed because it is too large. Load diff
@@ -888,13 +888,14 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
}
]
],
"exitCode": 0
},
"save-reload-publish-isolation": {
"status": "passed",
@@ -904,46 +905,69 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
}
]
],
"exitCode": 0
},
"visual-reference": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food.png",
"sha256": "46066739ca27e6b6e194972f3accce6f3de81adc089d2968361de9f289f73f37"
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-320.png",
"sha256": "296fd872682a5474797bd2cfa7401e2fdf04904dfe1dcb0178d3057edd101666"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-375.png",
"sha256": "6d51d0aae8828c0c85159fe764ab2cb7a0ab83de9d33a223406e920eb0dcc70d"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-390.png",
"sha256": "cdb9cbbb078641866492e7d601253245fec6fa95dc8d917a550bfec5f9859a28"
}
]
],
"exitCode": 0
},
"empty-error-branches": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/admin-editor.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png",
"sha256": "6580f27a4f5613f1da1abfb907932b1092a3a82b55cfc78e3fc67ef5dad688f2"
"sha256": "c4abb911e0006f1749811d2161ddf78aa6cbee1910da5932209d2dd25cf1301c"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png",
"sha256": "19807439ca41c067185c7abc5f06d0e98749086fa35ef757db43066211d74f06"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png",
"sha256": "890ef276bbc231ad7446c938e2767e8b37dba998e39143b50a9c21e13589854d"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png",
"sha256": "f0936ff7404fe5dfe5f047e9b84d0c7cbdd5434a4c75dfa9c3b0b169dda4b350"
}
]
],
"exitCode": 0
}
},
"completionIssues": []
@@ -1524,13 +1548,14 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
}
]
],
"exitCode": 0
},
"save-reload-publish-isolation": {
"status": "passed",
@@ -1540,46 +1565,69 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
}
]
],
"exitCode": 0
},
"visual-reference": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal.png",
"sha256": "febd1edb6009100841044dde6ca129a0a7830e86804d666b629b92ee9eaddba4"
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-320.png",
"sha256": "bc86fd697e742cd3c8fb9581607e36917771d7783ed9e8f6adda667fcf998043"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-375.png",
"sha256": "0c5d85656ebe7ca66896d8532fe15bc349f3f7581cfeb54fcc9626516d5e1b53"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-390.png",
"sha256": "cfe3df22dc40f9f4a97d6b58f86f5947cd1c601c47895b0edc224c06f8a26b7e"
}
]
],
"exitCode": 0
},
"empty-error-branches": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/admin-editor.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png",
"sha256": "c4abb911e0006f1749811d2161ddf78aa6cbee1910da5932209d2dd25cf1301c"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png",
"sha256": "88718b259d8f19007a491c1825bcfb578f79ca8c536af49caa0d11c3f6b50f07"
"sha256": "19807439ca41c067185c7abc5f06d0e98749086fa35ef757db43066211d74f06"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png",
"sha256": "890ef276bbc231ad7446c938e2767e8b37dba998e39143b50a9c21e13589854d"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png",
"sha256": "f0936ff7404fe5dfe5f047e9b84d0c7cbdd5434a4c75dfa9c3b0b169dda4b350"
}
]
],
"exitCode": 0
}
},
"completionIssues": []
@@ -2122,13 +2170,14 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
}
]
],
"exitCode": 0
},
"save-reload-publish-isolation": {
"status": "passed",
@@ -2138,54 +2187,81 @@
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log",
"sha256": "c5c469f3fa43323f9872ce7dd4114fa8803c7be63c578d058fc1e9b60f72a3e1"
"sha256": "f856baf44079516997ce8345fb843384fd4b47d5ca7009de49449d22e586ee7f"
}
]
],
"exitCode": 0
},
"visual-reference": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal.png",
"sha256": "fb719a7b98202f214be10a9b0055fdbf8939a6547a2bac33a196615b11f40967"
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-320.png",
"sha256": "5185b355dfef3e7bd36019f9a549b6da74d5bed1ee93e8b8a1e2d0e153ef9cad"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors.png",
"sha256": "e68445f755d5efd2c35401b2c9e2bc2fc637f05bcb8344fb5b8a087681d82fd1"
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-375.png",
"sha256": "c0d87b677b3bd48460144d03646a791fac2ea004668346b5ee808ca1b4d02a89"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-390.png",
"sha256": "3548b38659d59b1e3a8fff16a73bfa44b7eae6082b8f53688dfee6fe431257a7"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-320.png",
"sha256": "2d3b5c678dba761126bd0f8c32ddb16f22075631951950cd115e92e9c8d736c6"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-375.png",
"sha256": "b15bd96dba8b79873bf9c214cd9b8d7c3c3a418c1b9ff50be0fda8b132ec3f33"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-390.png",
"sha256": "b17c4da052e3e501e2998121210f44c34f210bdb34b2bcdff516aaae86289ba3"
}
]
],
"exitCode": 0
},
"empty-error-branches": {
"status": "passed",
"commands": [
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=<absolute-output-dir> ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"TEMPLATE_PREVIEW_VISUAL_EVIDENCE=/home/que01/Project/persionalBrand/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18 ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/template-preview-media.spec.ts",
"ADMIN_URL=http://127.0.0.1:3010 pnpm --filter @personal-brand/taro exec playwright test test/browser/admin-editor.spec.ts"
],
"artifacts": [
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log",
"sha256": "de768debf81e14aeb17309622781c3c5239768c54f6ca3008c3cf52fd70aca3b"
"sha256": "f8bc81dcf34094bc9bc430c5ef39fa919633ee58d21a6758cb2268bae8ba8125"
},
{
"path": ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log",
"sha256": "dc3c5984b38e06d7b9b975d5247ea136ae6a9e06f61826bd63949239edfda6fa"
"sha256": "588b8e4372e91ddc58d7f2ba97111936469d5d3efa7d4c2f56b0356cc8d8541a"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png",
"sha256": "c4abb911e0006f1749811d2161ddf78aa6cbee1910da5932209d2dd25cf1301c"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png",
"sha256": "19807439ca41c067185c7abc5f06d0e98749086fa35ef757db43066211d74f06"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png",
"sha256": "f6f7dca9bbb9116d7e87601633221dffb190cd26e85499e2d14285d667445bfc"
"sha256": "890ef276bbc231ad7446c938e2767e8b37dba998e39143b50a9c21e13589854d"
},
{
"path": ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png",
"sha256": "677c2f7053d0cdbbf68d9d8e53d7dbd9a285608e50fca8571248aae0e15fec07"
"sha256": "f0936ff7404fe5dfe5f047e9b84d0c7cbdd5434a4c75dfa9c3b0b169dda4b350"
}
]
],
"exitCode": 0
}
},
"completionIssues": []
@@ -1,18 +1,18 @@
Running 1 test using 1 worker
(node:588293) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632552) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588293) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632552) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588432) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632689) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588540) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632799) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588591) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632867) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:588666) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(node:632924) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
✓ 1 test/browser/template-preview-media.spec.ts:155:5 › 导入包预览矩阵展示身份、资源和完整媒体槽位 (11.2s)
✓ 1 test/browser/template-preview-media.spec.ts:155:5 › 导入包预览矩阵展示身份、资源和完整媒体槽位 (12.7s)
1 passed (12.6s)
1 passed (14.2s)