diff --git a/.codex-tasks/template-audit-execution/raw/completion-evidence.json b/.codex-tasks/template-audit-execution/raw/completion-evidence.json index c4e0626..d3e5776 100644 --- a/.codex-tasks/template-audit-execution/raw/completion-evidence.json +++ b/.codex-tasks/template-audit-execution/raw/completion-evidence.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "scope": "模板完成证据登记,保留命令、日志与产物哈希", - "generatedAt": "2026-10-18T21:55:00+08:00", + "generatedAt": "2026-10-19T00:20:00+08:00", "templates": { "acheng-campus-food": { "real-manifest-interaction": { @@ -13,13 +13,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", @@ -29,46 +30,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= 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= 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 } }, "atelier-solopreneur": { @@ -81,13 +105,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", @@ -97,46 +122,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= 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= 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 } }, "linjing-editorial": { @@ -149,13 +197,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", @@ -165,55 +214,83 @@ "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= 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= 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 } } - } + }, + "sourceTreeHash": "6505db4083d33579d25dd3899fdb64af2dd427bb22b0ddf002400003c35fd721" } diff --git a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log index 91bb983..7ade29d 100644 --- a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log +++ b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/admin-editor.log @@ -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) diff --git a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log index 72489e3..0a7f93e 100644 --- a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log +++ b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/api-integration.log @@ -9,9 +9,9 @@ Template contract migration populated-data rehearsal passed Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma -Datasource "db": PostgreSQL database "personal_brand", schema "pb_test_5ae5baafea3f8467" at "localhost:5432" +Datasource "db": PostgreSQL database "personal_brand", schema "pb_test_7b368c9ece363023" at "localhost:5432" -46 migrations found in prisma/migrations +47 migrations found in prisma/migrations Applying migration `20260918161022_init` Applying migration `20260919121500_unique_service_name` @@ -59,6 +59,7 @@ Applying migration `20261017110000_backfill_miniapp_stage_status` Applying migration `20261017120000_template_operation_failure_events` Applying migration `20261018120000_enforce_single_template_contract` Applying migration `20261018170000_add_admin_token_version` +Applying migration `20261018180000_add_customer_token_version` The following migration(s) have been applied: @@ -155,141 +156,146 @@ migrations/ └─ migration.sql └─ 20261018170000_add_admin_token_version/ └─ migration.sql + └─ 20261018180000_add_customer_token_version/ + └─ migration.sql All migrations have been successfully applied. -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [NestFactory] Starting Nest application... -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] HealthModule dependencies initialized +28ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] AppModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [InstanceLoader] AdminModule dependencies initialized +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicController {/public}: +9ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +3ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RoutesResolver] HealthController {/health}: +0ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [RouterExplorer] Mapped {/health, GET} route +1ms -[Nest] 587161 - 10/18/2026, 9:49:12 PM LOG [NestApplication] Nest application successfully started +2ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [NestFactory] Starting Nest application... +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] HealthModule dependencies initialized +33ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] AppModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [InstanceLoader] AdminModule dependencies initialized +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicController {/public}: +9ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +4ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/session/logout, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/session/logout, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +1ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RoutesResolver] HealthController {/health}: +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms +[Nest] 622648 - 10/18/2026, 11:11:19 PM LOG [NestApplication] Nest application successfully started +3ms Workspace template packages validated: 3 template package: acheng-campus-food@1.0.3 content checksum: 250114e1bd6c476e9832918cdca538b6652a75b390ba0d72925c7f91019f4593 archive checksum: 664b0bc531993c92d9e083326337d62f03c06bf84a9e4a19d324ed35b7023f41 -directory: ../../../../tmp/pb-template-integration-tMRe4W/acheng-campus-food-1.0.3 -archive: ../../../../tmp/pb-template-integration-tMRe4W/acheng-campus-food-1.0.3.tar.gz +directory: ../../../../tmp/pb-template-integration-Ak61WG/acheng-campus-food-1.0.3 +archive: ../../../../tmp/pb-template-integration-Ak61WG/acheng-campus-food-1.0.3.tar.gz Workspace template packages validated: 3 template package: linjing-editorial@1.0.6 content checksum: 078f5cadfb077f59b72735ce9045f995699e75114b0aef29461f22a5ddeaa166 archive checksum: cd8a2b264f8341004f645ded01df1773ddc16663752d01d61775fb886117b735 -directory: ../../../../tmp/pb-template-integration-Bx0Krj/linjing-editorial-1.0.6 -archive: ../../../../tmp/pb-template-integration-Bx0Krj/linjing-editorial-1.0.6.tar.gz +directory: ../../../../tmp/pb-template-integration-A7CGvA/linjing-editorial-1.0.6 +archive: ../../../../tmp/pb-template-integration-A7CGvA/linjing-editorial-1.0.6.tar.gz > @personal-brand/api@ db:seed /home/que01/Project/persionalBrand/apps/api > tsx prisma/seed.ts @@ -300,847 +306,871 @@ archive: ../../../../tmp/pb-template-integration-Bx0Krj/linjing-editorial-1.0.6. Seed idempotency verified: content, forms and release history preserved TAP version 13 -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [NestFactory] Starting Nest application... -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] HealthModule dependencies initialized +34ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [InstanceLoader] AdminModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicController {/public}: +10ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +4ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +4ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RoutesResolver] HealthController {/health}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:18 PM LOG [NestApplication] Nest application successfully started +3ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [NestFactory] Starting Nest application... +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] HealthModule dependencies initialized +32ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] PublicModule dependencies initialized +2ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [InstanceLoader] AdminModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicController {/public}: +9ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +3ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] TenantController {/admin/brands}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RoutesResolver] HealthController {/health}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [RouterExplorer] Mapped {/health, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:25 PM LOG [NestApplication] Nest application successfully started +2ms # Subtest: 模板目录只允许平台模板管理员访问,并支持安全、幂等导入 ok 1 - 模板目录只允许平台模板管理员访问,并支持安全、幂等导入 --- - duration_ms: 1403.067001 + duration_ms: 1463.529466 type: 'test' ... # Subtest: 模板失败指标仅平台模板管理员可查,按窗口聚合且不暴露操作内容 ok 2 - 模板失败指标仅平台模板管理员可查,按窗口聚合且不暴露操作内容 --- - duration_ms: 410.20197 + duration_ms: 422.128753 type: 'test' ... # Subtest: 平台模板管理员可以按行业预览版本,且预览不写入品牌数据 ok 3 - 平台模板管理员可以按行业预览版本,且预览不写入品牌数据 --- - duration_ms: 2081.411666 + duration_ms: 2080.073583 type: 'test' ... -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [NestFactory] Starting Nest application... +3659ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] HealthModule dependencies initialized +11ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [InstanceLoader] AdminModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicController {/api/public}: +2ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/brand, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicTrustContentController {/api/public/trust-content}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/trust-content, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicTemplateController {/api/public/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/templates/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/templates/:key, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicWorkspaceController {/api/public/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/workspace, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicOfferingController {/api/public/offerings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/offerings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/offerings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] PublicInquiryFormController {/api/public/inquiry-forms}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/public/inquiry-forms/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/api/customer/inquiry-submissions}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] CustomerBookingController {/api/customer/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/bookings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/bookings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/bookings/:id/cancel, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] CustomerSessionController {/api/customer/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/customer/session/wechat, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminSessionController {/api/admin/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/session/login, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/session/change-password, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] TenantController {/api/admin/brands}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/brands, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/brands/:brandId/switch, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/api/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/preview, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/install, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/select-version, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminTemplateController {/api/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/upgrade, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminCapabilityController {/api/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/capabilities, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/sample-content/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/sample-content/import, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/capabilities/:key, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminOfferingController {/api/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings/:id, DELETE} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminInquiryController {/api/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/submissions, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/submissions/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminConfigController {/api/admin/config}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/brand, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/brand, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/presentation, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminReleaseController {/api/admin/releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/releases, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/releases/readiness, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/releases/publish, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/releases/:version/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/releases/revoke, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/api/admin/miniapp-releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/latest, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/settings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/settings, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/:id/upload, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/:id/status, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminUploadController {/api/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/config, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/presign, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminLocalUploadController {/api/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/local, PUT} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminBookingController {/api/admin/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/unread-count, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/status, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/read, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/tags, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/tags, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/tags, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] AdminTemplatePackageController {/api/admin/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/publish, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/retire, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/audit, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] TemplateOperationMetricsController {/api/admin/template-operations}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/admin/template-operations/failures, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RoutesResolver] HealthController {/api/health}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [RouterExplorer] Mapped {/api/health, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:22 PM LOG [NestApplication] Nest application successfully started +2ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [NestFactory] Starting Nest application... +3703ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] HealthModule dependencies initialized +11ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] PublicModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [InstanceLoader] AdminModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RoutesResolver] PublicController {/api/public}: +2ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RouterExplorer] Mapped {/api/public/brand, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RoutesResolver] PublicTrustContentController {/api/public/trust-content}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RouterExplorer] Mapped {/api/public/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RoutesResolver] PublicTemplateController {/api/public/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RouterExplorer] Mapped {/api/public/templates, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:28 PM LOG [RouterExplorer] Mapped {/api/public/templates/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/public/templates/:key, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicWorkspaceController {/api/public/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/public/workspace, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicOfferingController {/api/public/offerings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/public/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/public/offerings/:id, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicInquiryFormController {/api/public/inquiry-forms}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/public/inquiry-forms/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/api/customer/inquiry-submissions}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions/:id, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/inquiry-submissions, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerBookingController {/api/customer/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/bookings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/bookings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/bookings/:id/cancel, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerSessionController {/api/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerSessionController {/api/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/customer/session/wechat, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminSessionController {/api/admin/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/session/login, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/session/logout, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/session/change-password, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] TenantController {/api/admin/brands}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/brands/members/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/brands, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/brands/:brandId/switch, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/api/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/install, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/select-version, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminTemplateController {/api/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/upgrade, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/template/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminCapabilityController {/api/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/capabilities, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/sample-content/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/sample-content/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/capabilities/:key, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminOfferingController {/api/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/offerings/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminInquiryController {/api/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/fields/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/submissions, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/submissions/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/workspace/forms/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminConfigController {/api/admin/config}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/brand, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/presentation, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/config/trust-content/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminReleaseController {/api/admin/releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/releases, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/releases/readiness, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/releases/publish, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/releases/:version/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/releases/revoke, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/api/admin/miniapp-releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/latest, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/settings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/settings, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/:id/upload, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/miniapp-releases/:id/status, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminUploadController {/api/admin/uploads}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/config, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/presign, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminLocalUploadController {/api/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/uploads/local, PUT} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminBookingController {/api/admin/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/unread-count, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/status, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/read, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/:id/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/tags, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/bookings/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminTemplatePackageController {/api/admin/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates/import, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/retire, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/audit, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/templates/:id/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] TemplateOperationMetricsController {/api/admin/template-operations}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/admin/template-operations/failures, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] HealthController {/api/health}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/api/health, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [NestApplication] Nest application successfully started +2ms # Subtest: admin routes remain guarded when an API prefix is configured ok 4 - admin routes remain guarded when an API prefix is configured --- - duration_ms: 461.667376 + duration_ms: 458.531772 type: 'test' ... # Subtest: miniapp release tasks are authorized, idempotent, and state checked ok 5 - miniapp release tasks are authorized, idempotent, and state checked --- - duration_ms: 471.714785 + duration_ms: 472.966847 type: 'test' ... -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [NestFactory] Starting Nest application... +910ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] HealthModule dependencies initialized +10ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] AppModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] SessionModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [InstanceLoader] AdminModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicController {/public}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RoutesResolver] HealthController {/health}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:23 PM LOG [NestApplication] Nest application successfully started +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [NestFactory] Starting Nest application... +909ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] HealthModule dependencies initialized +9ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] SessionModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [InstanceLoader] AdminModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicController {/public}: +2ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RoutesResolver] HealthController {/health}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:29 PM LOG [NestApplication] Nest application successfully started +1ms # Subtest: API restart recovers an expired persisted miniapp build attempt ok 6 - API restart recovers an expired persisted miniapp build attempt --- - duration_ms: 100.272215 + duration_ms: 102.930355 type: 'test' ... # Subtest: miniapp release settings never expose or persist plaintext private keys ok 7 - miniapp release settings never expose or persist plaintext private keys --- - duration_ms: 442.175555 + duration_ms: 458.837053 type: 'test' ... # Subtest: real template declarations persist brand offering and trust bindings through draft and publication ok 8 - real template declarations persist brand offering and trust bindings through draft and publication --- - duration_ms: 650.943008 + duration_ms: 652.970505 type: 'test' ... # Validated 193 manifest bindings through persistence draft and publication # Subtest: food structured edits survive publication and reach the generated page slots ok 9 - food structured edits survive publication and reach the generated page slots --- - duration_ms: 283.02734 + duration_ms: 284.211589 type: 'test' ... # Subtest: admin release lifecycle is authorized, brand-scoped, and versioned ok 10 - admin release lifecycle is authorized, brand-scoped, and versioned --- - duration_ms: 1683.49972 + duration_ms: 1679.981763 type: 'test' ... # Subtest: health and public content are available without authentication ok 11 - health and public content are available without authentication --- - duration_ms: 43.228496 + duration_ms: 40.765824 type: 'test' ... # Subtest: visual template compatibility is enforced by catalog, preview, and version selection ok 12 - visual template compatibility is enforced by catalog, preview, and version selection --- - duration_ms: 396.59468 + duration_ms: 396.322619 type: 'test' ... # Subtest: industry template state has a single source of truth ok 13 - industry template state has a single source of truth --- - duration_ms: 424.755304 + duration_ms: 428.119354 type: 'test' ... # Subtest: seeded public workspaces keep personal, food, and doors brands isolated ok 14 - seeded public workspaces keep personal, food, and doors brands isolated --- - duration_ms: 18.239865 + duration_ms: 15.726597 type: 'test' ... # Subtest: public workspace uses brand-scoped capability installations and preserves status ok 15 - public workspace uses brand-scoped capability installations and preserves status --- - duration_ms: 497.536436 + duration_ms: 487.059406 type: 'test' ... # Subtest: admin can update declared capability status with authorization and audit ok 16 - admin can update declared capability status with authorization and audit --- - duration_ms: 388.966356 + duration_ms: 400.497365 type: 'test' ... # Subtest: editor membership can manage brand content but cannot change system settings ok 17 - editor membership can manage brand content but cannot change system settings --- - duration_ms: 391.282437 + duration_ms: 390.713365 type: 'test' ... # Subtest: owner can manage brand members without removing the final owner ok 18 - owner can manage brand members without removing the final owner --- - duration_ms: 783.153714 + duration_ms: 790.637972 type: 'test' ... # Subtest: manually created member must change the initial password before normal use ok 19 - manually created member must change the initial password before normal use --- - duration_ms: 2252.811529 + duration_ms: 2248.155375 type: 'test' ... # Subtest: admin can install optional quote capability without industry-specific branching ok 20 - admin can install optional quote capability without industry-specific branching --- - duration_ms: 884.508189 + duration_ms: 898.088554 type: 'test' ... # Subtest: admin capability list includes template defaults and brand overrides ok 21 - admin capability list includes template defaults and brand overrides --- - duration_ms: 388.052035 + duration_ms: 394.823865 type: 'test' ... # Subtest: installing another industry template is rejected without drifting brand identity ok 22 - installing another industry template is rejected without drifting brand identity --- - duration_ms: 413.112002 + duration_ms: 420.256896 type: 'test' ... # Subtest: cross template requests are rejected without creating a drifted installation ok 23 - cross template requests are rejected without creating a drifted installation --- - duration_ms: 411.475221 + duration_ms: 416.720003 type: 'test' ... # Subtest: admin can preview and import sample content idempotently ok 24 - admin can preview and import sample content idempotently --- - duration_ms: 475.381111 + duration_ms: 461.192649 type: 'test' ... -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [NestFactory] Starting Nest application... +11683ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] HealthModule dependencies initialized +11ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] PublicModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] SessionModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [InstanceLoader] AdminModule dependencies initialized +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicController {/public}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +5ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +1ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RoutesResolver] HealthController {/health}: +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms -# [Nest] 587402 - 10/18/2026, 9:49:34 PM LOG [NestApplication] Nest application successfully started +2ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [NestFactory] Starting Nest application... +11697ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] HealthModule dependencies initialized +10ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] InfrastructureModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] BookingModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] PublicModule dependencies initialized +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] TenantModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] SessionModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] CustomerModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [InstanceLoader] AdminModule dependencies initialized +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicController {/public}: +2ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicTrustContentController {/public/trust-content}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicTemplateController {/public/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/templates, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/templates/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/templates/:key, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicWorkspaceController {/public/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/workspace, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicOfferingController {/public/offerings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/offerings/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] PublicInquiryFormController {/public/inquiry-forms}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/public/inquiry-forms/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] CustomerInquirySubmissionController {/customer/inquiry-submissions}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/inquiry-submissions, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] CustomerBookingController {/customer/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/bookings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/bookings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/bookings/:id/cancel, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] CustomerSessionController {/customer/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/customer/session/wechat, POST} route +4ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminSessionController {/admin/session}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/session/login, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/session/logout, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/session/change-password, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] TenantController {/admin/brands}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/brands/members, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/brands/members, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/brands/members/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/brands, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/brands/:brandId/switch, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminWorkspacePreviewController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/install, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/select-version, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminTemplateController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/upgrade, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/template/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminCapabilityController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/preview, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/sample-content/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/capabilities/:key, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminOfferingController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/offerings/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminInquiryController {/admin/workspace}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/fields/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/submissions/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/workspace/forms/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminConfigController {/admin/config}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/brand, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/brand, PATCH} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/presentation, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/config/trust-content/:id, DELETE} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminReleaseController {/admin/releases}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/releases, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/releases/readiness, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/releases/publish, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/releases/:version/rollback, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/releases/revoke, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminMiniAppReleaseController {/admin/miniapp-releases}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/latest, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/settings, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/upload, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/miniapp-releases/:id/status, PATCH} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/uploads/config, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/uploads/presign, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminLocalUploadController {/admin/uploads}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/uploads/local, PUT} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminBookingController {/admin/bookings}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings, GET} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/unread-count, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/status, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/read, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/:id/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/bookings/tags, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] AdminTemplatePackageController {/admin/templates}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates/import, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/publish, POST} route +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/retire, POST} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/audit, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/templates/:id/preview, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] TemplateOperationMetricsController {/admin/template-operations}: +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/admin/template-operations/failures, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RoutesResolver] HealthController {/health}: +1ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [RouterExplorer] Mapped {/health, GET} route +0ms +# [Nest] 622888 - 10/18/2026, 11:11:41 PM LOG [NestApplication] Nest application successfully started +1ms # Subtest: template ledger install, upgrade preview, and rollback stay brand-scoped ok 25 - template ledger install, upgrade preview, and rollback stay brand-scoped --- - duration_ms: 1075.621333 + duration_ms: 1056.83269 type: 'test' ... # Subtest: admin preview workspace is authorized and brand-scoped draft runtime ok 26 - admin preview workspace is authorized and brand-scoped draft runtime --- - duration_ms: 62.103827 + duration_ms: 59.651932 type: 'test' ... # Subtest: admin can customize workspace fields with brand isolation ok 27 - admin can customize workspace fields with brand isolation --- - duration_ms: 422.2401 + duration_ms: 410.668864 type: 'test' ... # Subtest: selected package version is reflected in public runtime workspace ok 28 - selected package version is reflected in public runtime workspace --- - duration_ms: 408.784785 + duration_ms: 414.823112 type: 'test' ... # Subtest: public workspace exposes declared brand and trust presentation data ok 29 - public workspace exposes declared brand and trust presentation data --- - duration_ms: 32.187557 + duration_ms: 33.017736 type: 'test' ... # Subtest: edited template facts reach public workspace only after publication ok 30 - edited template facts reach public workspace only after publication --- - duration_ms: 371.753007 + duration_ms: 364.174023 type: 'test' ... # Subtest: admin can create and version an inquiry form ok 31 - admin can create and version an inquiry form --- - duration_ms: 1029.405694 + duration_ms: 1050.483287 type: 'test' ... # Subtest: admin workspace data stays inside the acting brand ok 32 - admin workspace data stays inside the acting brand --- - duration_ms: 409.348005 + duration_ms: 408.06289 type: 'test' ... # Subtest: inquiry form offering link is validated against the brand ok 33 - inquiry form offering link is validated against the brand --- - duration_ms: 450.516744 + duration_ms: 407.542659 type: 'test' ... # Subtest: release readiness explains a form whose offering was disabled ok 34 - release readiness explains a form whose offering was disabled --- - duration_ms: 395.097764 + duration_ms: 404.433143 type: 'test' ... # Subtest: admin rejects invalid dynamic inquiry field definitions ok 35 - admin rejects invalid dynamic inquiry field definitions --- - duration_ms: 381.908629 + duration_ms: 384.56403 type: 'test' ... # Subtest: admin can manage offerings and public endpoint hides disabled offerings ok 36 - admin can manage offerings and public endpoint hides disabled offerings --- - duration_ms: 471.081245 + duration_ms: 470.914728 type: 'test' ... # Subtest: offering with an inquiry form cannot be deleted ok 37 - offering with an inquiry form cannot be deleted --- - duration_ms: 388.283994 + duration_ms: 396.981879 type: 'test' ... # Subtest: admin booking endpoints reject missing or customer credentials ok 38 - admin booking endpoints reject missing or customer credentials --- - duration_ms: 1.128054 + duration_ms: 1.355381 type: 'test' ... # Subtest: seeded admin can log in and read protected booking resources ok 39 - seeded admin can log in and read protected booking resources --- - duration_ms: 390.229127 + duration_ms: 384.122466 type: 'test' ... # Subtest: admin login validates credentials ok 40 - admin login validates credentials --- - duration_ms: 362.58279 + duration_ms: 363.522068 + type: 'test' + ... +# Subtest: admin logout revokes the current token +ok 41 - admin logout revokes the current token + --- + duration_ms: 775.193569 + type: 'test' + ... +# Subtest: customer logout revokes the current token +ok 42 - customer logout revokes the current token + --- + duration_ms: 9.501232 type: 'test' ... # Subtest: admin login does not auto-grant ownership to users without memberships -ok 41 - admin login does not auto-grant ownership to users without memberships +ok 43 - admin login does not auto-grant ownership to users without memberships --- - duration_ms: 752.96232 + duration_ms: 760.037709 type: 'test' ... # Subtest: changing an admin password revokes existing admin tokens -ok 42 - changing an admin password revokes existing admin tokens +ok 44 - changing an admin password revokes existing admin tokens --- - duration_ms: 1492.938349 + duration_ms: 1498.586562 type: 'test' ... # Subtest: admin can list and switch only enabled brand memberships -ok 43 - admin can list and switch only enabled brand memberships +ok 45 - admin can list and switch only enabled brand memberships --- - duration_ms: 383.746069 + duration_ms: 390.748942 type: 'test' ... # Subtest: brand switching isolates admin configuration, offerings, and public workspace -ok 44 - brand switching isolates admin configuration, offerings, and public workspace +ok 46 - brand switching isolates admin configuration, offerings, and public workspace --- - duration_ms: 426.48826 + duration_ms: 457.088173 type: 'test' ... # Subtest: disabled brand membership blocks existing admin token -ok 45 - disabled brand membership blocks existing admin token +ok 47 - disabled brand membership blocks existing admin token --- - duration_ms: 387.515778 + duration_ms: 391.760452 type: 'test' ... # Subtest: admin can read and update brand and service configuration -ok 46 - admin can read and update brand and service configuration +ok 48 - admin can read and update brand and service configuration --- - duration_ms: 435.09625 + duration_ms: 439.65045 type: 'test' ... # Subtest: admin can update user-facing brand presentation without replacing other config -ok 47 - admin can update user-facing brand presentation without replacing other config +ok 49 - admin can update user-facing brand presentation without replacing other config --- - duration_ms: 397.143116 + duration_ms: 402.709158 type: 'test' ... # Subtest: admin can manage trust content -ok 48 - admin can manage trust content +ok 50 - admin can manage trust content --- - duration_ms: 455.485791 + duration_ms: 453.951196 type: 'test' ... # Subtest: customer booking endpoints require a valid customer session -ok 49 - customer booking endpoints require a valid customer session +ok 51 - customer booking endpoints require a valid customer session --- - duration_ms: 5.13005 + duration_ms: 5.865763 type: 'test' ... # Subtest: wechat login validates the request DTO before exchanging the code -ok 50 - wechat login validates the request DTO before exchanging the code +ok 52 - wechat login validates the request DTO before exchanging the code --- - duration_ms: 1.182937 + duration_ms: 1.428909 type: 'test' ... # Subtest: wechat login creates a customer session for the requested brand -ok 51 - wechat login creates a customer session for the requested brand +ok 53 - wechat login creates a customer session for the requested brand --- - duration_ms: 8.378596 + duration_ms: 9.78347 type: 'test' ... # Subtest: customer booking DTO rejects incomplete package requests -ok 52 - customer booking DTO rejects incomplete package requests +ok 54 - customer booking DTO rejects incomplete package requests --- - duration_ms: 10.773165 + duration_ms: 10.963644 type: 'test' ... # Subtest: customer can create a generic inquiry without food-specific fields -ok 53 - customer can create a generic inquiry without food-specific fields +ok 55 - customer can create a generic inquiry without food-specific fields --- - duration_ms: 17.640486 + duration_ms: 18.301456 type: 'test' ... # Subtest: customer can create and cancel a package booking -ok 54 - customer can create and cancel a package booking +ok 56 - customer can create and cancel a package booking --- - duration_ms: 38.570966 + duration_ms: 41.560699 type: 'test' ... # Subtest: admin can advance booking status but cannot skip the state machine -ok 55 - admin can advance booking status but cannot skip the state machine +ok 57 - admin can advance booking status but cannot skip the state machine --- - duration_ms: 403.993946 + duration_ms: 414.422832 type: 'test' ... # Subtest: atelier template imports selected package and preserves draft publication isolation -ok 56 - atelier template imports selected package and preserves draft publication isolation +ok 58 - atelier template imports selected package and preserves draft publication isolation --- - duration_ms: 911.593165 + duration_ms: 939.504517 type: 'test' ... -1..56 -# tests 56 +1..58 +# tests 58 # suites 0 -# pass 56 +# pass 58 # fail 0 # cancelled 0 # skipped 0 # todo 0 -# duration_ms 29352.960642 +# duration_ms 30322.516537 TAP version 13 # Subtest: upload presign DTO rejects unsupported media type and oversized names ok 1 - upload presign DTO rejects unsupported media type and oversized names --- - duration_ms: 191.371671 + duration_ms: 188.336025 type: 'test' ... # Subtest: local upload presign targets the API route and requires brand access ok 2 - local upload presign targets the API route and requires brand access --- - duration_ms: 324.160635 + duration_ms: 321.529497 type: 'test' ... 1..2 @@ -1151,4 +1181,4 @@ ok 2 - local upload presign targets the API route and requires brand access # cancelled 0 # skipped 0 # todo 0 -# duration_ms 745.110428 +# duration_ms 732.822777 diff --git a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-doctor.log b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-doctor.log index e699108..097a036 100644 --- a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-doctor.log +++ b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-doctor.log @@ -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= 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= 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= 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= 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= 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= 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": [] diff --git a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log index 0021b39..ee90c10 100644 --- a/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log +++ b/.codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log @@ -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) diff --git a/.codex-tasks/template-audit-execution/raw/manual-review.json b/.codex-tasks/template-audit-execution/raw/manual-review.json index 8e27a79..4d35f3e 100644 --- a/.codex-tasks/template-audit-execution/raw/manual-review.json +++ b/.codex-tasks/template-audit-execution/raw/manual-review.json @@ -1746,11 +1746,11 @@ "expression": "c.config[key + \"Title\"]", "message": "动态索引必须验证实际分支。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "key 只来自 pickup/delivery 固定 allow-list,分别读取 pickupTitle 与 deliveryTitle;两个字段均由 manifest 的 coverage 配置声明,不接受任意索引。", "evidence": [ + "packages/template-acheng-campus-food/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1762,11 +1762,11 @@ "line": 30, "message": "条件显示需验证全部分支与空数据入口。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "头像存在时渲染图片,缺失时渲染首字母 monogram;完整预览与清空品牌字段预览均覆盖。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1780,11 +1780,11 @@ "line": 33, "message": "需要核对循环项或间接映射,不能视为已覆盖。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "founder 缺失时显式回退为 “·”,再取首字符;空身份预览不会崩溃并保留可编辑入口。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1798,11 +1798,11 @@ "line": 38, "message": "需要核对循环项或间接映射,不能视为已覆盖。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "title 与 experience 为空时由 filter(Boolean) 移除,join 只保留存在值;完整与空身份分支均已核对。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1816,11 +1816,11 @@ "line": 38, "message": "需要核对循环项或间接映射,不能视为已覆盖。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "同一条表达式先过滤空值再拼接,空值不会产生多余分隔符;对应字段在 manifest 身份区域声明。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1832,11 +1832,11 @@ "line": 41, "message": "条件显示需验证全部分支与空数据入口。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "founderStatus 存在才渲染状态标签;缺失时仅渲染 identity.tags 列表,不影响区域选择。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1847,11 +1847,11 @@ "line": 91, "message": "条件显示需验证全部分支与空数据入口。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "offerings 非空渲染案例卡片,空数组渲染可操作空态;完整与空业务记录截图均已保留。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1865,11 +1865,11 @@ "line": 340, "message": "需要核对循环项或间接映射,不能视为已覆盖。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "category、area、series 均来自 offering 投影;空值被 filter(Boolean) 移除,存在值渲染为标签。", "evidence": [ + "packages/template-atelier-solopreneur/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] }, { @@ -1881,11 +1881,11 @@ "line": 104, "message": "条件显示需验证全部分支与空数据入口。", "reviewStatus": "source-reviewed", - "decision": "新增空态/条件分支已用真实模板包预览矩阵验证:清空 offerings、trustItems 和 inquiryForms 后显示可操作空态;预览请求失败与重试分支同测试覆盖。", + "decision": "首页作品列表非空渲染 work-card,空数组渲染“作品与服务正在整理中”空态;完整与空态截图均已保留。", "evidence": [ + "packages/template-linjing-editorial/taro/index.tsx", "apps/taro/test/browser/template-preview-media.spec.ts", - ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log", - ".codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18" + ".codex-tasks/template-audit-execution/raw/evidence-2026-10-18/template-preview-media.log" ] } ] diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-320.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-320.png new file mode 100644 index 0000000..4a56b8c Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-320.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-375.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-375.png new file mode 100644 index 0000000..7259d4e Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-375.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-390.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-390.png new file mode 100644 index 0000000..067f385 Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food-390.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food.png deleted file mode 100644 index 603c661..0000000 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/01-acheng-campus-food-food.png and /dev/null differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-320.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-320.png new file mode 100644 index 0000000..7661d6b Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-320.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-375.png similarity index 68% rename from .codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal.png rename to .codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-375.png index 5e352ca..6f9187e 100644 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal.png and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-375.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-390.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-390.png new file mode 100644 index 0000000..9dd6976 Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/02-atelier-solopreneur-personal-390.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-320.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-320.png new file mode 100644 index 0000000..b1347cf Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-320.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-375.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-375.png new file mode 100644 index 0000000..fdbc9dd Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-375.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-390.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-390.png new file mode 100644 index 0000000..91b3112 Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal-390.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal.png deleted file mode 100644 index caed730..0000000 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/03-linjing-editorial-personal.png and /dev/null differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-320.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-320.png new file mode 100644 index 0000000..a661d31 Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-320.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-375.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-375.png new file mode 100644 index 0000000..d46c714 Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-375.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-390.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-390.png new file mode 100644 index 0000000..ab91c6b Binary files /dev/null and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors-390.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors.png deleted file mode 100644 index 973f610..0000000 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/04-linjing-editorial-doors.png and /dev/null differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png index 92d96f4..bdee3f8 100644 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-01-acheng-campus-food-food.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png index 9b51e16..e581b98 100644 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-02-atelier-solopreneur-personal.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png index 62a800c..2287fc1 100644 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-03-linjing-editorial-personal.png differ diff --git a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png index 6c70036..bb37cff 100644 Binary files a/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png and b/.codex-tasks/template-audit-execution/raw/visual-matrix-2026-10-18/empty-04-linjing-editorial-doors.png differ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 363f90d..fdaa63d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm check + - run: pnpm audit --prod --registry=https://registry.npmjs.org - run: pnpm validate:templates - run: pnpm template:compatibility - run: pnpm --filter @personal-brand/api exec tsx --test test/template-preview-matrix.test.ts @@ -44,7 +45,9 @@ jobs: node-version: 24 cache: pnpm - run: pnpm install --frozen-lockfile + - run: pnpm build - run: pnpm build:admin:preview + - run: pnpm validate:template-release - uses: actions/upload-artifact@v4 with: name: admin-dist @@ -83,10 +86,34 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm --filter @personal-brand/api test:integration + taro: + name: Taro builds + runs-on: ubuntu-latest + needs: [static] + strategy: + matrix: + template: [acheng-campus-food, atelier-solopreneur, linjing-editorial] + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9.15.0 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: pnpm + - run: pnpm install --frozen-lockfile + - run: pnpm --filter @personal-brand/taro build:h5 + env: + TEMPLATE_KEY: ${{ matrix.template }} + - run: pnpm --filter @personal-brand/taro build:weapp + env: + TEMPLATE_KEY: ${{ matrix.template }} + browser: name: Browser regression runs-on: ubuntu-latest - needs: [build] + needs: [build, taro] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -105,6 +132,8 @@ jobs: run: pnpm --filter @personal-brand/api start > /tmp/api.log 2>&1 & env: DATABASE_URL: postgresql://postgres:postgres@localhost:5432/personal_brand + DEFAULT_BRAND_ID: 00000000-0000-0000-0000-000000000001 + SESSION_SECRET: browser-ci-session-secret-0123456789abcdef NODE_ENV: development - name: Start mini program preview run: pnpm --filter @personal-brand/taro dev:h5 > /tmp/taro.log 2>&1 & diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index 47ceb26..872d9a9 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -16,8 +16,9 @@ - `atelier-solopreneur@1.3.2` - `linjing-editorial@1.0.6` - Taro Runtime、Admin 组件预览、真实 manifest 驱动编辑、草稿/发布隔离。 +- 依赖 override 的运行时兼容性通过 `miniprogram-ci` / Jimp / image-size / uuid smoke test 守卫。 - 小程序构建、上传任务状态机、attempt lease 和失败记录。 -- Admin token version:修改密码后旧 token 立即失效;无 membership 的账号不会自动获得 owner 权限。 +- Admin/Customer token version:修改 admin 密码或调用 logout 后旧 token 立即失效;无 membership 的账号不会自动获得 owner 权限。 - `visualPresentation` 已进入唯一 `template.json` 契约,旧手写 visual manifest 优先路径已删除。 ## 完成证据 @@ -43,6 +44,7 @@ unresolvedIssues=0 - `pnpm validate:template-release` - `pnpm --filter @personal-brand/api test` - `pnpm --filter @personal-brand/api test:integration` +- `miniprogram-ci` override 兼容 smoke test - `pnpm test:api-client` - `pnpm build` - `pnpm template:doctor` @@ -71,4 +73,5 @@ unresolvedIssues=0 ## 未决事项 - 生产发布仍需按 `docs/deployment.md` 配置真实环境变量并执行部署后健康检查。 -- `miniprogram-ci` 上游发布修复版本后,需要移除对应的 audit ignore 与安全风险登记。 +- `miniprogram-ci` 上游发布修复版本后,需要移除对应的 audit ignore、风险登记和本地 patch。 +- CI 已加入 audit 和三套模板矩阵构建;后续可继续拆分更细粒度的 smoke/visual matrix。 diff --git a/apps/admin/src/app/Dashboard.tsx b/apps/admin/src/app/Dashboard.tsx index 4b3d9a1..7470fee 100644 --- a/apps/admin/src/app/Dashboard.tsx +++ b/apps/admin/src/app/Dashboard.tsx @@ -12,6 +12,7 @@ import { } from "@ant-design/icons"; import { useLocation, useNavigate } from "react-router-dom"; import { createApiClient } from "../lib/api.js"; +import { saveAdminSession } from "../lib/auth-storage.js"; import { BrandMark } from "../components/BrandMark.js"; import { StatusTag } from "../components/StatusTag.js"; import { @@ -43,7 +44,7 @@ export function Dashboard({ }: { onLogout: () => void; role: string; - platformTemplateRole: string; + platformTemplateRole: "none" | "template_admin"; }) { const navigate = useNavigate(); const location = useLocation(); @@ -58,7 +59,12 @@ export function Dashboard({ const switchBrand = async (brandId: string) => { try { const result = await createApiClient().switchAdminBrand(brandId); - localStorage.setItem("adminToken", result.token); + saveAdminSession({ + token: result.token, + role: result.role, + platformTemplateRole, + mustChangePassword: false, + }); window.location.reload(); } catch (error) { message.error(error instanceof Error ? error.message : "品牌切换失败"); diff --git a/apps/admin/src/app/Root.tsx b/apps/admin/src/app/Root.tsx index 9a8a511..41963da 100644 --- a/apps/admin/src/app/Root.tsx +++ b/apps/admin/src/app/Root.tsx @@ -3,16 +3,17 @@ import { ChangePassword, Login } from "../features/auth/AuthPages.js"; import { Dashboard } from "./Dashboard.js"; import { AdminRouter } from "./AdminRouter.js"; import { adminMessage as message } from "../components/AdminMessage.js"; +import { createApiClient } from "../lib/api.js"; +import { clearAdminSession, readAdminSession } from "../lib/auth-storage.js"; export function Root() { - const [loggedIn, setLoggedIn] = useState(Boolean(localStorage.getItem("adminToken"))); - const [role, setRole] = useState(localStorage.getItem("adminRole") || "owner"); + const initialSession = readAdminSession(); + const [loggedIn, setLoggedIn] = useState(initialSession.loggedIn); + const [role, setRole] = useState(initialSession.role); const [platformTemplateRole, setPlatformTemplateRole] = useState( - localStorage.getItem("adminPlatformTemplateRole") || "none", - ); - const [mustChangePassword, setMustChangePassword] = useState( - localStorage.getItem("adminMustChangePassword") === "true", + initialSession.platformTemplateRole, ); + const [mustChangePassword, setMustChangePassword] = useState(initialSession.mustChangePassword); React.useEffect(() => { const expire = () => { message.warning("登录状态已失效,请重新登录"); @@ -21,12 +22,13 @@ export function Root() { window.addEventListener("admin-auth-expired", expire); return () => window.removeEventListener("admin-auth-expired", expire); }, []); - const logout = () => { - localStorage.removeItem("adminToken"); - localStorage.removeItem("adminRole"); - localStorage.removeItem("adminPlatformTemplateRole"); - localStorage.removeItem("adminMustChangePassword"); - setLoggedIn(false); + const logout = async () => { + try { + await createApiClient().logoutAdmin(); + } finally { + clearAdminSession(); + setLoggedIn(false); + } }; if (!loggedIn) return ( diff --git a/apps/admin/src/components/ImageUrlField.tsx b/apps/admin/src/components/ImageUrlField.tsx index 1728afd..053a2c3 100644 --- a/apps/admin/src/components/ImageUrlField.tsx +++ b/apps/admin/src/components/ImageUrlField.tsx @@ -1,7 +1,8 @@ import { CloudUploadOutlined, DeleteOutlined, PictureOutlined } from "@ant-design/icons"; import { Alert, Button, Image, Popconfirm, Spin, Upload, message } from "antd"; import { useEffect, useMemo, useState } from "react"; -import { apiBaseUrl, createApiClient } from "../lib/api.js"; +import { apiBaseUrl, authenticatedFetch, createApiClient } from "../lib/api.js"; +import { readAdminToken } from "../lib/auth-storage.js"; interface ImageUrlFieldProps { id?: string; @@ -54,13 +55,11 @@ export function ImageUrlField({ id, value, onChange, placeholder, scope }: Image const uploadUrl = isLocalUpload ? `${apiBaseUrl.replace(/\/$/, "")}${presign.uploadUrl}` : presign.uploadUrl; - const response = await fetch(uploadUrl, { + const response = await authenticatedFetch(uploadUrl, { method: "PUT", headers: { "content-type": file.type, - ...(isLocalUpload - ? { authorization: `Bearer ${localStorage.getItem("adminToken") ?? ""}` } - : {}), + ...(isLocalUpload ? { authorization: `Bearer ${readAdminToken() ?? ""}` } : {}), }, body: file, }); diff --git a/apps/admin/src/features/auth/AuthPages.tsx b/apps/admin/src/features/auth/AuthPages.tsx index 2814dc4..e5fdde1 100644 --- a/apps/admin/src/features/auth/AuthPages.tsx +++ b/apps/admin/src/features/auth/AuthPages.tsx @@ -1,5 +1,6 @@ import { useState } from "react"; import { createApiClient } from "../../lib/api.js"; +import { markAdminPasswordChanged, saveAdminSession } from "../../lib/auth-storage.js"; import { BrandMark } from "../../components/BrandMark.js"; import { adminMessage as message } from "../../components/AdminMessage.js"; import { AdminButton } from "../../components/AdminButton.js"; @@ -21,10 +22,7 @@ export function Login({ setLoading(true); try { const result = await createApiClient().loginAdmin(values.username, values.password); - localStorage.setItem("adminToken", result.token); - localStorage.setItem("adminRole", result.role); - localStorage.setItem("adminPlatformTemplateRole", result.platformTemplateRole); - localStorage.setItem("adminMustChangePassword", String(result.mustChangePassword)); + saveAdminSession(result); onLogin(result); } catch (error) { message.error(error instanceof Error ? error.message : "登录失败"); @@ -81,7 +79,7 @@ export function ChangePassword({ onComplete }: { onComplete: () => void }) { setLoading(true); try { await createApiClient().changeAdminPassword(values.currentPassword, values.newPassword); - localStorage.setItem("adminMustChangePassword", "false"); + markAdminPasswordChanged(); message.success("密码已更新"); onComplete(); } catch (error) { diff --git a/apps/admin/src/lib/api.ts b/apps/admin/src/lib/api.ts index 8d04539..891e69d 100644 --- a/apps/admin/src/lib/api.ts +++ b/apps/admin/src/lib/api.ts @@ -1,4 +1,5 @@ import { ApiClient } from "@personal-brand/api-client"; +import { clearAdminSession, readAdminToken } from "./auth-storage.js"; export const apiBaseUrl = import.meta.env.VITE_API_BASE_URL ?? "/api"; export async function authenticatedFetch( @@ -7,13 +8,13 @@ export async function authenticatedFetch( ): Promise { const response = await fetch(input, init); if (response.status === 401) { - localStorage.removeItem("adminToken"); + clearAdminSession(); window.dispatchEvent(new Event("admin-auth-expired")); } return response; } export function createApiClient(): ApiClient { - const token = localStorage.getItem("adminToken"); + const token = readAdminToken(); return new ApiClient({ baseUrl: apiBaseUrl, ...(token ? { token } : {}), diff --git a/apps/admin/src/lib/auth-storage.ts b/apps/admin/src/lib/auth-storage.ts new file mode 100644 index 0000000..1d22437 --- /dev/null +++ b/apps/admin/src/lib/auth-storage.ts @@ -0,0 +1,48 @@ +export type StoredAdminSession = { + token: string; + role: string; + platformTemplateRole: "none" | "template_admin"; + mustChangePassword: boolean; +}; + +const tokenKey = "adminToken"; +const roleKey = "adminRole"; +const platformRoleKey = "adminPlatformTemplateRole"; +const mustChangePasswordKey = "adminMustChangePassword"; + +export function saveAdminSession(session: StoredAdminSession): void { + localStorage.setItem(tokenKey, session.token); + localStorage.setItem(roleKey, session.role); + localStorage.setItem(platformRoleKey, session.platformTemplateRole); + localStorage.setItem(mustChangePasswordKey, String(session.mustChangePassword)); +} + +export function readAdminToken(): string | null { + return localStorage.getItem(tokenKey); +} + +export function readAdminSession(): { + loggedIn: boolean; + role: string; + platformTemplateRole: "none" | "template_admin"; + mustChangePassword: boolean; +} { + return { + loggedIn: Boolean(localStorage.getItem(tokenKey)), + role: localStorage.getItem(roleKey) || "owner", + platformTemplateRole: + localStorage.getItem(platformRoleKey) === "template_admin" ? "template_admin" : "none", + mustChangePassword: localStorage.getItem(mustChangePasswordKey) === "true", + }; +} + +export function markAdminPasswordChanged(): void { + localStorage.setItem(mustChangePasswordKey, "false"); +} + +export function clearAdminSession(): void { + localStorage.removeItem(tokenKey); + localStorage.removeItem(roleKey); + localStorage.removeItem(platformRoleKey); + localStorage.removeItem(mustChangePasswordKey); +} diff --git a/apps/api/prisma/migrations/20261018180000_add_customer_token_version/migration.sql b/apps/api/prisma/migrations/20261018180000_add_customer_token_version/migration.sql new file mode 100644 index 0000000..ef9bca8 --- /dev/null +++ b/apps/api/prisma/migrations/20261018180000_add_customer_token_version/migration.sql @@ -0,0 +1,2 @@ +-- 客户 token 版本用于登出后撤销既有登录态。 +ALTER TABLE "CustomerUser" ADD COLUMN "tokenVersion" INTEGER NOT NULL DEFAULT 0; diff --git a/apps/api/prisma/schema.prisma b/apps/api/prisma/schema.prisma index 253abce..5539bf2 100644 --- a/apps/api/prisma/schema.prisma +++ b/apps/api/prisma/schema.prisma @@ -365,6 +365,7 @@ model CustomerUser { brandId String brand BrandProfile @relation(fields: [brandId], references: [id]) openid String + tokenVersion Int @default(0) lastLoginAt DateTime @default(now()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt diff --git a/apps/api/src/admin-auth.service.ts b/apps/api/src/admin-auth.service.ts index 0231474..81231d4 100644 --- a/apps/api/src/admin-auth.service.ts +++ b/apps/api/src/admin-auth.service.ts @@ -44,6 +44,15 @@ export class AdminAuthService { }; } + async logout(userId: string): Promise { + const user = await this.prisma.adminUser.findUnique({ where: { id: userId } }); + if (!user?.isEnabled) throw new UnauthorizedException("管理员登录态无效或已过期"); + await this.prisma.adminUser.update({ + where: { id: userId }, + data: { tokenVersion: { increment: 1 } }, + }); + } + async changePassword( userId: string, currentPassword: string, diff --git a/apps/api/src/admin-membership.guard.ts b/apps/api/src/admin-membership.guard.ts index cbc36a5..21aae61 100644 --- a/apps/api/src/admin-membership.guard.ts +++ b/apps/api/src/admin-membership.guard.ts @@ -22,7 +22,12 @@ export class AdminMembershipGuard implements CanActivate { if (routePath === "admin/session/login") return Promise.resolve(true); if (routePath === "admin/session/change-password") return Promise.resolve(true); if (!routePath.startsWith("admin/")) return Promise.resolve(true); - if (routePath === "admin/templates" || routePath.startsWith("admin/templates/")) { + if ( + routePath === "admin/templates" || + routePath.startsWith("admin/templates/") || + routePath === "admin/template-operations" || + routePath.startsWith("admin/template-operations/") + ) { return this.access.requireTemplateAdmin(request).then(() => true); } if ( diff --git a/apps/api/src/booking.service.ts b/apps/api/src/booking.service.ts index 17676b9..2e3b01c 100644 --- a/apps/api/src/booking.service.ts +++ b/apps/api/src/booking.service.ts @@ -22,8 +22,6 @@ export interface CreateBookingInput { items?: Array<{ offeringId: string; quantity: number }>; } -export type CustomerIdentity = { brandId: string; openid: string }; - @Injectable() export class BookingService { constructor( @@ -31,15 +29,6 @@ export class BookingService { private readonly releases: BrandReleaseService, ) {} - async requireCustomer(identity: CustomerIdentity): Promise { - const customer = await this.prisma.customerUser.findUnique({ - where: { brandId_openid: identity }, - select: { id: true }, - }); - if (!customer) throw new BadRequestException("请先完成微信登录"); - return customer.id; - } - async create(brandId: string, customerUserId: string, input: CreateBookingInput) { const snapshot = await this.releases.getPublishedSnapshot(brandId); if (!snapshot) throw new BadRequestException("品牌尚未发布"); diff --git a/apps/api/src/modules/customer/customer-access.service.ts b/apps/api/src/modules/customer/customer-access.service.ts new file mode 100644 index 0000000..bee2df1 --- /dev/null +++ b/apps/api/src/modules/customer/customer-access.service.ts @@ -0,0 +1,46 @@ +import { ForbiddenException, Injectable, UnauthorizedException } from "@nestjs/common"; +import type { FastifyRequest } from "fastify"; +import { PrismaService } from "../../prisma.service.js"; +import { readIdentity } from "../../auth.js"; + +export type CustomerIdentity = { + brandId: string; + openid: string; + customerUserId: string; +}; + +@Injectable() +export class CustomerAccessService { + constructor(private readonly prisma: PrismaService) {} + + async require(request: FastifyRequest): Promise { + const token = request.headers.authorization?.replace(/^Bearer\s+/i, ""); + if (!token) throw new UnauthorizedException("缺少客户登录态"); + let identity; + try { + identity = readIdentity(token); + } catch { + throw new UnauthorizedException("客户登录态无效或已过期"); + } + if (identity.role !== "customer") throw new ForbiddenException("客户登录态无效或已过期"); + const customer = await this.prisma.customerUser.findUnique({ + where: { brandId_openid: { brandId: identity.brandId, openid: identity.subject } }, + select: { id: true, tokenVersion: true }, + }); + if (!customer || identity.tokenVersion !== customer.tokenVersion) + throw new UnauthorizedException("客户登录态无效或已过期"); + return { + brandId: identity.brandId, + openid: identity.subject, + customerUserId: customer.id, + }; + } + + async logout(request: FastifyRequest): Promise { + const identity = await this.require(request); + await this.prisma.customerUser.update({ + where: { id: identity.customerUserId }, + data: { tokenVersion: { increment: 1 } }, + }); + } +} diff --git a/apps/api/src/modules/customer/customer-booking.controller.ts b/apps/api/src/modules/customer/customer-booking.controller.ts index d591aad..4e2e80a 100644 --- a/apps/api/src/modules/customer/customer-booking.controller.ts +++ b/apps/api/src/modules/customer/customer-booking.controller.ts @@ -1,18 +1,21 @@ -import { BadRequestException, Body, Controller, Get, Param, Post, Req } from "@nestjs/common"; +import { Body, Controller, Get, Param, Post, Req } from "@nestjs/common"; import type { FastifyRequest } from "fastify"; import { Prisma } from "@prisma/client"; import { BookingService } from "../../booking.service.js"; import { CreateBookingDto } from "../../booking.dto.js"; -import { readIdentity } from "../../auth.js"; +import { CustomerAccessService } from "./customer-access.service.js"; @Controller("customer/bookings") export class CustomerBookingController { - constructor(private readonly bookings: BookingService) {} + constructor( + private readonly bookings: BookingService, + private readonly access: CustomerAccessService, + ) {} @Post() async create(@Req() request: FastifyRequest, @Body() body: CreateBookingDto): Promise { - const identity = this.identity(request); - const customerId = await this.bookings.requireCustomer(identity); + const identity = await this.identity(request); + const customerId = identity.customerUserId; return this.bookings.create(identity.brandId, customerId, { ...body, extraData: body.extraData as Prisma.InputJsonObject, @@ -21,28 +24,19 @@ export class CustomerBookingController { @Get() async list(@Req() request: FastifyRequest): Promise { - const identity = this.identity(request); - const customerId = await this.bookings.requireCustomer(identity); + const identity = await this.identity(request); + const customerId = identity.customerUserId; return this.bookings.listForCustomer(identity.brandId, customerId); } @Post(":id/cancel") async cancel(@Req() request: FastifyRequest, @Param("id") id: string): Promise { - const identity = this.identity(request); - const customerId = await this.bookings.requireCustomer(identity); + const identity = await this.identity(request); + const customerId = identity.customerUserId; return this.bookings.cancelForCustomer(identity.brandId, customerId, id); } - private identity(request: FastifyRequest): { brandId: string; openid: string } { - const token = request.headers.authorization?.replace(/^Bearer\s+/i, ""); - if (!token) throw new BadRequestException("缺少客户登录态"); - try { - const identity = readIdentity(token); - if (identity.role !== "customer") throw new BadRequestException("客户登录态无效"); - return { brandId: identity.brandId, openid: identity.subject }; - } catch (error) { - if (error instanceof BadRequestException) throw error; - throw new BadRequestException("客户登录态无效"); - } + private identity(request: FastifyRequest) { + return this.access.require(request); } } diff --git a/apps/api/src/modules/customer/customer-inquiry-submission.controller.ts b/apps/api/src/modules/customer/customer-inquiry-submission.controller.ts index 2fd7cb8..e09b2b3 100644 --- a/apps/api/src/modules/customer/customer-inquiry-submission.controller.ts +++ b/apps/api/src/modules/customer/customer-inquiry-submission.controller.ts @@ -1,21 +1,15 @@ -import { - Body, - Controller, - ForbiddenException, - Get, - Param, - Post, - Req, - UnauthorizedException, -} from "@nestjs/common"; +import { Body, Controller, Get, Param, Post, Req } from "@nestjs/common"; import type { FastifyRequest } from "fastify"; -import { readIdentity } from "../../auth.js"; +import { CustomerAccessService } from "./customer-access.service.js"; import { CreateInquirySubmissionDto } from "../../booking.dto.js"; import { CustomerInquirySubmissionService } from "./customer-inquiry-submission.service.js"; @Controller("customer/inquiry-submissions") export class CustomerInquirySubmissionController { - constructor(private readonly submissions: CustomerInquirySubmissionService) {} + constructor( + private readonly submissions: CustomerInquirySubmissionService, + private readonly access: CustomerAccessService, + ) {} private present(submission: T) { const { customerSubject: _customerSubject, @@ -26,34 +20,21 @@ export class CustomerInquirySubmissionController { void _adminNote; return publicSubmission; } - private identity(request: FastifyRequest): ReturnType { - const token = request.headers.authorization?.replace(/^Bearer\s+/i, ""); - if (!token) throw new UnauthorizedException("缺少客户登录态"); - try { - const identity = readIdentity(token); - if (identity.role !== "customer") throw new ForbiddenException("无客户权限"); - return identity; - } catch (error) { - if (error instanceof ForbiddenException) throw error; - throw new UnauthorizedException("客户登录态无效或已过期"); - } + private identity(request: FastifyRequest) { + return this.access.require(request); } @Get() async list(@Req() request: FastifyRequest): Promise { - const identity = this.identity(request); - const submissions = await this.submissions.listForCustomer(identity.brandId, identity.subject); + const identity = await this.identity(request); + const submissions = await this.submissions.listForCustomer(identity.brandId, identity.openid); return submissions.map((submission) => this.present(submission)); } @Get(":id") async get(@Req() request: FastifyRequest, @Param("id") id: string): Promise { - const identity = this.identity(request); - const submission = await this.submissions.getForCustomer( - identity.brandId, - identity.subject, - id, - ); + const identity = await this.identity(request); + const submission = await this.submissions.getForCustomer(identity.brandId, identity.openid, id); return this.present(submission); } @@ -62,8 +43,8 @@ export class CustomerInquirySubmissionController { @Req() request: FastifyRequest, @Body() body: CreateInquirySubmissionDto, ): Promise { - const identity = this.identity(request); - const submission = await this.submissions.create(identity.brandId, identity.subject, body); + const identity = await this.identity(request); + const submission = await this.submissions.create(identity.brandId, identity.openid, body); return this.present(submission); } } diff --git a/apps/api/src/modules/customer/customer-session.controller.ts b/apps/api/src/modules/customer/customer-session.controller.ts new file mode 100644 index 0000000..78947a3 --- /dev/null +++ b/apps/api/src/modules/customer/customer-session.controller.ts @@ -0,0 +1,14 @@ +import { Controller, Post, Req } from "@nestjs/common"; +import type { FastifyRequest } from "fastify"; +import { CustomerAccessService } from "./customer-access.service.js"; + +@Controller("customer/session") +export class CustomerSessionController { + constructor(private readonly access: CustomerAccessService) {} + + @Post("logout") + async logout(@Req() request: FastifyRequest): Promise<{ loggedOut: true }> { + await this.access.logout(request); + return { loggedOut: true }; + } +} diff --git a/apps/api/src/modules/customer/customer.module.ts b/apps/api/src/modules/customer/customer.module.ts index 430c404..42a6d3f 100644 --- a/apps/api/src/modules/customer/customer.module.ts +++ b/apps/api/src/modules/customer/customer.module.ts @@ -5,10 +5,16 @@ import { PublicModule } from "../public/public.module.js"; import { CustomerBookingController } from "./customer-booking.controller.js"; import { CustomerInquirySubmissionController } from "./customer-inquiry-submission.controller.js"; import { CustomerInquirySubmissionService } from "./customer-inquiry-submission.service.js"; +import { CustomerAccessService } from "./customer-access.service.js"; +import { CustomerSessionController } from "./customer-session.controller.js"; @Module({ imports: [InfrastructureModule, PublicModule, BookingModule], - controllers: [CustomerInquirySubmissionController, CustomerBookingController], - providers: [CustomerInquirySubmissionService], + controllers: [ + CustomerInquirySubmissionController, + CustomerBookingController, + CustomerSessionController, + ], + providers: [CustomerInquirySubmissionService, CustomerAccessService], }) export class CustomerModule {} diff --git a/apps/api/src/modules/session/customer-session.service.ts b/apps/api/src/modules/session/customer-session.service.ts index 426c1e7..751679b 100644 --- a/apps/api/src/modules/session/customer-session.service.ts +++ b/apps/api/src/modules/session/customer-session.service.ts @@ -18,13 +18,18 @@ export class CustomerSessionService { select: { id: true }, }); if (!brand) throw new BadRequestException("品牌尚未初始化"); - await this.prisma.customerUser.upsert({ + const customer = await this.prisma.customerUser.upsert({ where: { brandId_openid: { brandId: brand.id, openid: session.openid } }, update: { lastLoginAt: new Date() }, create: { brandId: brand.id, openid: session.openid }, }); return { - token: signIdentity({ subject: session.openid, brandId: brand.id, role: "customer" }), + token: signIdentity({ + subject: session.openid, + brandId: brand.id, + role: "customer", + tokenVersion: customer.tokenVersion, + }), }; } } diff --git a/apps/api/src/modules/session/session.controller.ts b/apps/api/src/modules/session/session.controller.ts index 241e1e1..82d8d73 100644 --- a/apps/api/src/modules/session/session.controller.ts +++ b/apps/api/src/modules/session/session.controller.ts @@ -39,6 +39,16 @@ export class AdminSessionController { return this.auth.login(body.username, body.password); } + @Post("logout") + async logout(@Req() request: FastifyRequest): Promise<{ loggedOut: true }> { + const token = request.headers.authorization?.replace(/^Bearer\s+/i, ""); + if (!token) throw new UnauthorizedException("缺少管理员登录态"); + const identity = readIdentity(token); + if (identity.role !== "admin") throw new UnauthorizedException("管理员登录态无效"); + await this.auth.logout(identity.subject); + return { loggedOut: true }; + } + @Post("change-password") async changePassword( @Req() request: FastifyRequest, diff --git a/apps/api/src/modules/tenant/tenant.controller.ts b/apps/api/src/modules/tenant/tenant.controller.ts index b0aef02..11635a8 100644 --- a/apps/api/src/modules/tenant/tenant.controller.ts +++ b/apps/api/src/modules/tenant/tenant.controller.ts @@ -60,7 +60,7 @@ export class TenantController { async switchBrand( @Req() request: FastifyRequest, @Param("brandId") brandId: string, - ): Promise<{ token: string; brand: unknown }> { + ): Promise<{ token: string; role: string; brand: unknown }> { const identity = this.adminIdentity(request); return this.tenants.switchBrand(identity, brandId); } diff --git a/apps/api/src/modules/tenant/tenant.service.ts b/apps/api/src/modules/tenant/tenant.service.ts index 20ec77e..c2dc656 100644 --- a/apps/api/src/modules/tenant/tenant.service.ts +++ b/apps/api/src/modules/tenant/tenant.service.ts @@ -113,6 +113,7 @@ export class TenantService { role: "admin", tokenVersion: identity.tokenVersion ?? 0, }), + role: membership.role, brand: membership.brand, }; } diff --git a/apps/api/test/http.integration.test.js b/apps/api/test/http.integration.test.js index ac8c9bb..936c30d 100644 --- a/apps/api/test/http.integration.test.js +++ b/apps/api/test/http.integration.test.js @@ -247,6 +247,30 @@ test("模板失败指标仅平台模板管理员可查,按窗口聚合且不 await prisma.adminUser.delete({ where: { id: ordinaryUser.id } }); } + const templateAdminWithoutMembership = await prisma.adminUser.create({ + data: { + username: `metrics-platform-${randomUUID()}`, + passwordHash: "unused", + displayName: "平台模板管理员", + platformTemplateRole: "template_admin", + mustChangePassword: false, + }, + }); + try { + const response = await request("/admin/template-operations/failures", { + headers: { + authorization: `Bearer ${signIdentity({ + subject: templateAdminWithoutMembership.id, + brandId: "00000000-0000-0000-0000-000000000000", + role: "admin", + })}`, + }, + }); + assert.equal(response.statusCode, 200, response.body); + } finally { + await prisma.adminUser.delete({ where: { id: templateAdminWithoutMembership.id } }); + } + const login = await request("/admin/session/login", { method: "POST", payload: { username: "admin", password: process.env.SEED_ADMIN_PASSWORD }, @@ -516,7 +540,10 @@ test("平台模板管理员可以按行业预览版本,且预览不写入品 /所属行业|must match its key/, ], [{ ...stored.manifestSnapshot, requiredCapabilities: ["unknown"] }, /未注册的 capability/], - [{ ...stored.manifestSnapshot, visualTemplateKey: "unknown" }, /元数据/], + [ + { ...stored.manifestSnapshot, visualTemplateKey: "unknown" }, + /visualTemplateKey must match packageKey|元数据/, + ], [{ ...stored.manifestSnapshot, runtimeContract: "9.0" }, /契约/], [{ ...stored.manifestSnapshot, dataSlots: [null] }, /契约/], [{ ...stored.manifestSnapshot, navigation: [null] }, /契约/], @@ -3868,6 +3895,54 @@ test("admin login validates credentials", async () => { assert.equal(response.statusCode, 401); }); +test("admin logout revokes the current token", async () => { + const username = `logout-admin-${randomUUID()}`; + const password = "logout-password-123"; + const user = await prisma.adminUser.create({ + data: { + username, + passwordHash: await bcrypt.hash(password, 12), + displayName: "登出测试管理员", + mustChangePassword: false, + }, + }); + await prisma.brandMembership.create({ + data: { brandId, adminUserId: user.id, role: "owner", isEnabled: true }, + }); + try { + const login = await request("/admin/session/login", { + method: "POST", + payload: { username, password }, + }); + assert.equal(login.statusCode, 201, login.body); + const token = JSON.parse(login.body).token; + const headers = { authorization: `Bearer ${token}` }; + const before = await request("/admin/bookings/unread-count", { headers }); + assert.equal(before.statusCode, 200); + + const logout = await request("/admin/session/logout", { method: "POST", headers }); + assert.equal(logout.statusCode, 201); + const after = await request("/admin/bookings/unread-count", { headers }); + assert.equal(after.statusCode, 401); + } finally { + await prisma.adminUser.delete({ where: { id: user.id } }); + } +}); + +test("customer logout revokes the current token", async () => { + const openid = `logout-${randomUUID()}`; + await prisma.customerUser.create({ data: { brandId, openid } }); + const token = signIdentity({ subject: openid, brandId, role: "customer" }); + const headers = { authorization: `Bearer ${token}` }; + const before = await request("/customer/inquiry-submissions", { headers }); + assert.equal(before.statusCode, 200); + + const logout = await request("/customer/session/logout", { method: "POST", headers }); + assert.equal(logout.statusCode, 201); + const after = await request("/customer/inquiry-submissions", { headers }); + assert.equal(after.statusCode, 401); +}); + test("admin login does not auto-grant ownership to users without memberships", async () => { const username = `no-membership-${Date.now()}`; const user = await prisma.adminUser.create({ @@ -4287,7 +4362,7 @@ test("admin can manage trust content", async () => { test("customer booking endpoints require a valid customer session", async () => { const missing = await request("/customer/bookings"); - assert.equal(missing.statusCode, 400); + assert.equal(missing.statusCode, 401); const list = await request("/customer/bookings", { headers: { authorization: `Bearer ${customerToken}` }, @@ -4774,6 +4849,9 @@ test("atelier template imports selected package and preserves draft publication (await json("/public/workspace?brandSlug=" + slug)).brand.visualPresentation.home.title, "仅草稿可见的新标题", ); + const atelierCustomer = await prisma.customerUser.create({ + data: { brandId: brand.id, openid: "atelier-test-customer" }, + }); const customerHeaders = { authorization: `Bearer ${signIdentity({ subject: "atelier-test-customer", brandId: brand.id, role: "customer" })}`, }; @@ -4819,6 +4897,7 @@ test("atelier template imports selected package and preserves draft publication ); } } finally { + await prisma.customerUser.deleteMany({ where: { brandId: brand.id } }); await prisma.brandProfile.delete({ where: { id: brand.id } }); } }); diff --git a/apps/api/test/miniprogram-ci-compatibility.test.ts b/apps/api/test/miniprogram-ci-compatibility.test.ts new file mode 100644 index 0000000..87b0294 --- /dev/null +++ b/apps/api/test/miniprogram-ci-compatibility.test.ts @@ -0,0 +1,31 @@ +import assert from "node:assert/strict"; +import { createRequire } from "node:module"; +import test from "node:test"; + +const require = createRequire(import.meta.url); +const png = Buffer.from( + "89504e470d0a1a0a0000000d4948445200000001000000010802000000907753de0000000c49444154789c63f8cfc0000003010100c9fe92ef0000000049454e44ae426082", + "hex", +); + +test("miniprogram-ci compatibility patches keep overridden runtime APIs usable", async () => { + const buildCloud = require( + require.resolve("miniprogram-ci/dist/modules/nativecompiler/ios/buildCloud.js"), + ); + assert.equal(typeof buildCloud.default, "object"); + + const uuid = require("uuid") as { v4: () => string }; + assert.match(uuid.v4(), /^[0-9a-f-]{36}$/); + + const imageSize = require("image-size") as { + imageSize: (input: Buffer) => { width: number; height: number; type: string }; + }; + assert.deepEqual(imageSize.imageSize(png), { width: 1, height: 1, type: "png" }); + + const Jimp = require("jimp") as { + read: (input: Buffer) => Promise<{ bitmap: { width: number; height: number } }>; + }; + const image = await Jimp.read(png); + assert.equal(image.bitmap.width, 1); + assert.equal(image.bitmap.height, 1); +}); diff --git a/apps/api/test/template-contract-migration.integration.mjs b/apps/api/test/template-contract-migration.integration.mjs index 150df11..85c1eed 100644 --- a/apps/api/test/template-contract-migration.integration.mjs +++ b/apps/api/test/template-contract-migration.integration.mjs @@ -45,7 +45,7 @@ async function main() { .filter((entry) => entry.isDirectory() && entry.name !== targetMigration) .map((entry) => entry.name) .sort(); - assert.equal(migrationDirs.at(-1), "20261018170000_add_admin_token_version"); + assert.equal(migrationDirs.at(-1), "20261018180000_add_customer_token_version"); await admin.$executeRawUnsafe(`CREATE SCHEMA "${schema}"`); createdSchema = true; diff --git a/apps/taro/test/browser/template-preview-media.spec.ts b/apps/taro/test/browser/template-preview-media.spec.ts index 418d9a6..78bae94 100644 --- a/apps/taro/test/browser/template-preview-media.spec.ts +++ b/apps/taro/test/browser/template-preview-media.spec.ts @@ -232,12 +232,17 @@ test("导入包预览矩阵展示身份、资源和完整媒体槽位", async ({ if (evidenceDirectory) { mkdirSync(evidenceDirectory, { recursive: true }); - await page.screenshot({ - path: path.join( - evidenceDirectory, - `${String(sequence).padStart(2, "0")}-${mediaCase.packageKey}-${mediaCase.industry}.png`, - ), - }); + // 多屏宽证据:320/375/390 均验证实际渲染,而不是只检查 DOM 存在。 + for (const viewportWidth of [320, 375, 390]) { + await page.setViewportSize({ width: viewportWidth, height: 812 }); + await expect(modal.locator(".component-template-preview")).toBeVisible(); + await page.screenshot({ + path: path.join( + evidenceDirectory, + `${String(sequence).padStart(2, "0")}-${mediaCase.packageKey}-${mediaCase.industry}-${viewportWidth}.png`, + ), + }); + } } // 清空业务记录后重新打开真实包预览,验证空态不是仅在源码中存在。 @@ -249,6 +254,7 @@ test("导入包预览矩阵展示身份、资源和完整媒体槽位", async ({ /正在整理中/, ); if (evidenceDirectory) { + await page.setViewportSize({ width: 375, height: 812 }); await page.screenshot({ path: path.join( evidenceDirectory, diff --git a/docs/security-audit.md b/docs/security-audit.md index e4d13a3..7d2bfb6 100644 --- a/docs/security-audit.md +++ b/docs/security-audit.md @@ -6,6 +6,14 @@ `pnpm audit --prod --registry=https://registry.npmjs.org` 已从 84 条 advisory 降到 0 条未登记 advisory。可直接修复的传递依赖通过根 `pnpm.overrides` 升级到修复版本;`request` 已替换为维护 fork `@cypress/request@4.0.1`。 +对与 override 存在运行时 API 差异的依赖,使用 `patches/miniprogram-ci@2.1.31.patch` 和 `patches/@jimp/core@0.16.13.patch` 做兼容适配: + +- `uuid/v4` 改为读取 `uuid.v4`; +- `miniprogram-ci` 的 `image-size` 读取新的 `imageSize` 命名导出; +- `@jimp/core` 改用 `file-type` 的新 `fileTypeFromBuffer` API。 + +`apps/api/test/miniprogram-ci-compatibility.test.ts` 会用真实 PNG 覆盖 `miniprogram-ci` 模块加载、`uuid`、`image-size` 和 `Jimp.read`。 + ## 已执行的兼容性验证 - `pnpm --filter @personal-brand/api test` diff --git a/docs/template-completion-rules.md b/docs/template-completion-rules.md index 66565c8..f7079f3 100644 --- a/docs/template-completion-rules.md +++ b/docs/template-completion-rules.md @@ -30,7 +30,7 @@ staticStatus 只代表支持范围内的静态检查。completionStatus 保持 u 已逐条完成源码审阅的 review 可登记在 `.codex-tasks/template-audit-execution/raw/manual-review.json`。登记必须使用和诊断报告一致的 `file/page/target/binding/line/message`,并保留结论与证据;doctor 只把精确匹配的 review 标记为 `source-reviewed`,不改变 `completionStatus`。未匹配的新 review 和全部 blocker 仍会让命令失败。 -完成证据登记在 `.codex-tasks/template-audit-execution/raw/completion-evidence.json`。每套模板必须提供 `real-manifest-interaction`、`save-reload-publish-isolation`、`visual-reference`、`empty-error-branches` 四类 `passed` 证据;每类证据必须包含实际命令、日志或截图产物及其 SHA-256。doctor 会校验证据覆盖全部模板、产物存在且哈希一致。全部通过时 `completionStatus=complete`;证据文件缺失时保持 `unverified`;登记不完整或哈希不匹配时对应模板为 `incomplete` 并让命令失败。 +完成证据登记在 `.codex-tasks/template-audit-execution/raw/completion-evidence.json`。每套模板必须提供 `real-manifest-interaction`、`save-reload-publish-isolation`、`visual-reference`、`empty-error-branches` 四类 `passed` 证据;每类证据必须包含实际命令、`exitCode=0`、日志或截图产物及其 SHA-256。registry 还必须记录 source tree hash;doctor 会计算当前仓库源码树(排除 `.codex-tasks/` 证据目录)的 hash,并在不匹配时拒绝完成态。doctor 会校验证据覆盖全部模板、产物存在且哈希一致。全部通过时 `completionStatus=complete`;证据文件缺失时保持 `unverified`;登记不完整或哈希不匹配时对应模板为 `incomplete` 并让命令失败。 AST 解析可追踪 workspace.brand、presentation、object 和局部别名。动态路径、跨组件和间接映射等未知情况标为 review,不能猜测为通过。诊断器包含正反故障注入测试。 diff --git a/package.json b/package.json index 0e200ee..9dbc012 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "node": ">=20.18.0" }, "scripts": { - "build": "turbo run build", + "build": "turbo run build && pnpm build:taro:all", "dev": "turbo run dev --parallel", "lint": "turbo run lint", "typecheck": "turbo run typecheck", @@ -45,7 +45,9 @@ "template:migration:audit": "pnpm --filter @personal-brand/api template:migration:audit", "test:template-migration-audit": "node --test apps/api/test/template-contract-migration-audit.test.mjs", "check:local-media": "node scripts/check-local-media.mjs", - "test:template-doctor": "node --test scripts/test/template-doctor.test.mjs" + "test:template-doctor": "node --test scripts/test/template-doctor.test.mjs", + "build:taro:atelier": "TEMPLATE_KEY=atelier-solopreneur pnpm --filter @personal-brand/taro build:h5 && TEMPLATE_KEY=atelier-solopreneur pnpm --filter @personal-brand/taro build:weapp", + "build:taro:all": "pnpm build:taro:food && pnpm build:taro:linjing && pnpm build:taro:atelier" }, "devDependencies": { "@eslint/js": "^9.17.0", @@ -105,6 +107,10 @@ "GHSA-hrh2-vp3x-79xf", "GHSA-vfj7-8cjw-p6xm" ] + }, + "patchedDependencies": { + "miniprogram-ci@2.1.31": "patches/miniprogram-ci@2.1.31.patch", + "@jimp/core@0.16.13": "patches/@jimp__core@0.16.13.patch" } } } diff --git a/packages/api-client/src/index.ts b/packages/api-client/src/index.ts index 2e66094..c266a1a 100644 --- a/packages/api-client/src/index.ts +++ b/packages/api-client/src/index.ts @@ -160,6 +160,10 @@ export class ApiClient this.resources.session.loginAdmin(...arguments_); changeAdminPassword = (...arguments_: Parameters) => this.resources.session.changeAdminPassword(...arguments_); + logoutAdmin = (...arguments_: Parameters) => + this.resources.session.logoutAdmin(...arguments_); + logoutCustomer = (...arguments_: Parameters) => + this.resources.session.logoutCustomer(...arguments_); listCustomerBookings = (...arguments_: Parameters) => this.resources.booking.listCustomerBookings(...arguments_); createCustomerBooking = (...arguments_: Parameters) => diff --git a/packages/api-client/src/resources/brand.ts b/packages/api-client/src/resources/brand.ts index 5392fba..b882d93 100644 --- a/packages/api-client/src/resources/brand.ts +++ b/packages/api-client/src/resources/brand.ts @@ -15,7 +15,7 @@ export interface BrandMethods { listAdminBrands(): Promise; switchAdminBrand( brandId: string, - ): Promise<{ token: string; brand: AdminBrandMembership["brand"] }>; + ): Promise<{ token: string; role: string; brand: AdminBrandMembership["brand"] }>; listAdminMembers(): Promise; createAdminMember(body: { username: string; diff --git a/packages/api-client/src/resources/session.ts b/packages/api-client/src/resources/session.ts index 98a91f7..cf14f37 100644 --- a/packages/api-client/src/resources/session.ts +++ b/packages/api-client/src/resources/session.ts @@ -12,6 +12,8 @@ export interface SessionMethods { platformTemplateRole: "none" | "template_admin"; }>; changeAdminPassword(currentPassword: string, newPassword: string): Promise<{ changed: true }>; + logoutAdmin(): Promise<{ loggedOut: true }>; + logoutCustomer(): Promise<{ loggedOut: true }>; } export function sessionMethods({ request }: { request: RequestFn }): SessionMethods { @@ -23,5 +25,7 @@ export function sessionMethods({ request }: { request: RequestFn }): SessionMeth method: "POST", body: { currentPassword, newPassword }, }), + logoutAdmin: () => request("/admin/session/logout", { method: "POST", body: {} }), + logoutCustomer: () => request("/customer/session/logout", { method: "POST", body: {} }), }; } diff --git a/packages/api-client/test/client.test.ts b/packages/api-client/test/client.test.ts index 15aa7a9..068f88f 100644 --- a/packages/api-client/test/client.test.ts +++ b/packages/api-client/test/client.test.ts @@ -27,6 +27,24 @@ test("客户端发送认证头、查询参数和 JSON 请求体", async () => { assert.equal(calls[1]?.init?.body, JSON.stringify({ name: "重点" })); }); +test("客户端登出会调用当前会话接口", async () => { + const calls: Array<{ url: string; method?: string; body?: string }> = []; + const client = new ApiClient({ + baseUrl: "http://api.test", + token: "admin-token", + fetcher: async (url, init) => { + calls.push({ url, method: init?.method, body: init?.body }); + return response({ loggedOut: true }); + }, + }); + await client.logoutAdmin(); + await client.logoutCustomer(); + assert.deepEqual(calls, [ + { url: "http://api.test/admin/session/logout", method: "POST", body: "{}" }, + { url: "http://api.test/customer/session/logout", method: "POST", body: "{}" }, + ]); +}); + test("客户端将统一错误响应转换为 ApiClientError", async () => { const client = new ApiClient({ baseUrl: "http://api.test", diff --git a/packages/template-contract/src/index.ts b/packages/template-contract/src/index.ts index 30dda4a..98cfd84 100644 --- a/packages/template-contract/src/index.ts +++ b/packages/template-contract/src/index.ts @@ -189,37 +189,58 @@ export function validateTemplatePackageManifest(value: unknown): string[] { if (!manifest.packageKey?.trim()) errors.push("packageKey is required"); if (!manifest.version?.trim()) errors.push("version is required"); if (!manifest.visualTemplateKey?.trim()) errors.push("visualTemplateKey is required"); + if (manifest.packageKey !== manifest.visualTemplateKey) + errors.push("visualTemplateKey must match packageKey"); if (manifest.runtimeContract !== TEMPLATE_RUNTIME_CONTRACT) errors.push(`runtimeContract must be ${TEMPLATE_RUNTIME_CONTRACT}`); if (!manifest.displayName?.trim()) errors.push("displayName is required"); const presentation = manifest.visualPresentation; - if ( - !presentation || - typeof presentation !== "object" || - !presentation.description?.trim() || - !presentation.variants || - typeof presentation.variants !== "object" || - Array.isArray(presentation.variants) || - !Object.values(presentation.variants).every( - (variant) => typeof variant === "string" && variant.trim(), - ) || - !presentation.theme || - typeof presentation.theme !== "object" || - !presentation.theme.colors || - typeof presentation.theme.colors !== "object" || - !presentation.theme.radius || - typeof presentation.theme.radius !== "object" - ) { + const validPresentation = + presentation && + typeof presentation === "object" && + presentation.description?.trim() && + presentation.variants && + typeof presentation.variants === "object" && + !Array.isArray(presentation.variants) && + presentation.theme && + typeof presentation.theme === "object" && + presentation.theme.colors && + typeof presentation.theme.colors === "object" && + presentation.theme.radius && + typeof presentation.theme.radius === "object"; + if (!validPresentation) { errors.push("visualPresentation requires description, variants, theme.colors and theme.radius"); - } else if (presentation.layout) { - const layout = presentation.layout; + } else { + const requiredVariant = (key: string) => + typeof presentation.variants[key] === "string" && presentation.variants[key].trim(); + if (!(["hero", "offeringList", "detail"] as const).every(requiredVariant)) + errors.push("visualPresentation.variants requires hero, offeringList and detail"); + + const requiredColor = (key: string) => + typeof presentation.theme.colors[key] === "string" && presentation.theme.colors[key].trim(); + if (!(["background", "foreground", "accent", "dark"] as const).every(requiredColor)) + errors.push( + "visualPresentation.theme.colors requires background, foreground, accent and dark", + ); + if ( - !(["home", "offerings", "detail", "profile"] as const).every( - (page) => - Array.isArray(layout[page]) && layout[page].every((item) => typeof item === "string"), - ) - ) { - errors.push("visualPresentation.layout must contain page module arrays"); + typeof presentation.theme.radius.card !== "string" || + !presentation.theme.radius.card.trim() + ) + errors.push("visualPresentation.theme.radius requires card"); + + if (presentation.layout) { + const layout = presentation.layout; + if ( + !(["home", "offerings", "detail", "profile"] as const).every( + (page) => + Array.isArray(layout[page]) && + layout[page].length > 0 && + layout[page].every((item) => typeof item === "string" && item.trim()), + ) + ) { + errors.push("visualPresentation.layout must contain non-empty page module arrays"); + } } } if ( diff --git a/packages/template-contract/test/manifest.test.mjs b/packages/template-contract/test/manifest.test.mjs index c9d4ac3..b9018ad 100644 --- a/packages/template-contract/test/manifest.test.mjs +++ b/packages/template-contract/test/manifest.test.mjs @@ -74,6 +74,29 @@ test("template contract rejects technical or incomplete admin declarations", () ]); }); +test("template package manifests reject mismatched visual keys and empty visual presentation", () => { + const manifestPath = path.join(packageRoot, "template-acheng-campus-food/template.json"); + const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8")); + manifest.visualTemplateKey = "different-visual"; + assert.ok( + validateTemplatePackageManifest(manifest).includes("visualTemplateKey must match packageKey"), + ); + + manifest.visualTemplateKey = manifest.packageKey; + manifest.visualPresentation = { + description: "无效视觉", + variants: {}, + theme: { colors: {}, radius: {} }, + layout: { home: [], offerings: [], detail: [], profile: [] }, + }; + assert.deepEqual(validateTemplatePackageManifest(manifest), [ + "visualPresentation.variants requires hero, offeringList and detail", + "visualPresentation.theme.colors requires background, foreground, accent and dark", + "visualPresentation.theme.radius requires card", + "visualPresentation.layout must contain non-empty page module arrays", + ]); +}); + test("template package manifests must declare package-owned visual presentation", () => { const manifestPath = path.join(packageRoot, "template-acheng-campus-food/template.json"); const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8")); @@ -83,10 +106,18 @@ test("template package manifests must declare package-owned visual presentation" ]); manifest.visualPresentation = { - description: "无效视觉", - variants: { hero: "hero" }, - theme: { colors: { background: "#fff" }, radius: { card: "16rpx" } }, - layout: { home: ["hero"], offerings: [], detail: [], profile: [] }, + description: "有效视觉", + variants: { hero: "hero", offeringList: "service-list", detail: "case" }, + theme: { + colors: { background: "#fff", foreground: "#111", accent: "#333", dark: "#000" }, + radius: { card: "16rpx" }, + }, + layout: { + home: ["hero"], + offerings: ["service-list"], + detail: ["case"], + profile: ["contact"], + }, }; assert.deepEqual(validateTemplatePackageManifest(manifest), []); }); diff --git a/patches/@jimp__core@0.16.13.patch b/patches/@jimp__core@0.16.13.patch new file mode 100644 index 0000000..9fd27f2 --- /dev/null +++ b/patches/@jimp__core@0.16.13.patch @@ -0,0 +1,13 @@ +diff --git a/dist/utils/image-bitmap.js b/dist/utils/image-bitmap.js +index e7c3dc99aa7ddb8ce89be7e527b164cbd933d22f..256caab070fd97110fc2646adbf0d940a29216e2 100644 +--- a/dist/utils/image-bitmap.js ++++ b/dist/utils/image-bitmap.js +@@ -34,7 +34,7 @@ function getMIMEFromBuffer(buffer, path) { + switch (_context.prev = _context.next) { + case 0: + _context.next = 2; +- return _regenerator["default"].awrap(_fileType["default"].fromBuffer(buffer)); ++ return _regenerator["default"].awrap(_fileType.fileTypeFromBuffer(buffer)); + + case 2: + fileTypeFromBuffer = _context.sent; diff --git a/patches/miniprogram-ci@2.1.31.patch b/patches/miniprogram-ci@2.1.31.patch new file mode 100644 index 0000000..b2233c4 --- /dev/null +++ b/patches/miniprogram-ci@2.1.31.patch @@ -0,0 +1,8 @@ +diff --git a/dist/modules/nativecompiler/ios/buildCloud.js b/dist/modules/nativecompiler/ios/buildCloud.js +index 4c7917d12a2323c2c7975d751398744e022ecaaf..9c3886787f21aabb98fa64950077b4982afd07ca 100644 +--- a/dist/modules/nativecompiler/ios/buildCloud.js ++++ b/dist/modules/nativecompiler/ios/buildCloud.js +@@ -1 +1 @@ +-"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.remoteBuildProjectMaterialAbsoluteCacheDir=void 0;const tslib_1=require("tslib"),child_process=tslib_1.__importStar(require("child_process")),path_1=tslib_1.__importDefault(require("path")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),glob_1=tslib_1.__importDefault(require("glob")),env_1=require("../../../utils/env"),miniapp_builder_1=require("../../../utils/miniapp-builder"),codesign_1=require("../../../utils/codesign"),miniappJson_1=require("../../../utils/miniappJson"),lodash_1=require("lodash"),tools_1=require("../../../utils/tools"),uuidv4=require("uuid/v4"),sizeOf=require("image-size"),plist=require("simple-plist"),errorIOSSdkVersions=["1.0.19"],APPEX_PROFILES_MAPS_FILE="__appexProfilesCacheDir__/profilesMap.json",APPEX_PROFILES_MAPS_FOR_SHELL_FILE="__appexProfilesCacheDir__/profilesMapForShell.txt",defaultIconDirPath=path_1.default.join(__dirname,"../../../static/images/"),getDepReg=e=>new RegExp(`s.subspec '${e}'.*\n(?:.*\n)*?(?:.*sp.vendored_frameworks = \\[\n)((?:.*'.*?'.*\n)*?)(?:.*\\]\n)`,"m"),allowTheme=["Light","LightSpecial","Dark","DarkSpecial","Default"];exports.remoteBuildProjectMaterialAbsoluteCacheDir="__absoluteFile";const iconInfoMap={appStore1024:{size:[1024,1024],scale:1,idiom:"ios-marketing",required:!0},appStore1024Other:{size:[1024,1024],scale:1,idiom:"ios-marketing-other"},mainIcon120:{size:[60,60],scale:2,idiom:"iphone",required:!0},mainIcon180:{size:[60,60],scale:3,idiom:"iphone"},spotlightIcon80:{size:[40,40],scale:2,idiom:"iphone"},spotlightIcon120:{size:[40,40],scale:3,idiom:"iphone"},settingsIcon58:{size:[29,29],scale:2,idiom:"iphone"},settingsIcon87:{size:[29,29],scale:3,idiom:"iphone"},notificationIcon40:{size:[20,20],scale:2,idiom:"iphone"},notificationIcon60:{size:[20,20],scale:3,idiom:"iphone"},ipadMainIcon152:{size:[76,76],scale:2,idiom:"ipad"},ipadMainIcon167:{size:[83.5,83.5],scale:2,idiom:"ipad"},ipadSpotlightIcon40:{size:[40,40],scale:1,idiom:"ipad"},ipadSpotlightIcon80:{size:[40,40],scale:2,idiom:"ipad"},ipadSettingsIcon29:{size:[29,29],scale:1,idiom:"ipad"},ipadSpotlightIcon58:{size:[29,29],scale:2,idiom:"ipad"},ipadNotificationIcon20:{size:[20,20],scale:1,idiom:"ipad"},ipadNotificationIcon40:{size:[20,20],scale:2,idiom:"ipad"}};class buildCloudManager{generateTempDemoIpaPath(e){const i=path_1.default.join(e,"../.."),t=path_1.default.basename(i),n=path_1.default.dirname(i),a=path_1.default.join(n,t+"-operateDir");fs_extra_1.default.existsSync(a)&&fs_extra_1.default.removeSync(a),fs_extra_1.default.ensureDirSync(a);const s=path_1.default.join(a,"Payload/demo.app");return fs_extra_1.default.copySync(e,s),s}generateInfoPlistCFBundleURLTypesItem(e){const i={};return e.CFBundleURLName&&(i.CFBundleURLName=e.CFBundleURLName),e.CFBundleURLSchemes&&(Array.isArray(e.CFBundleURLSchemes)?i.CFBundleURLSchemes=e.CFBundleURLSchemes:i.CFBundleURLSchemes=[e.CFBundleURLSchemes]),e.CFBundleTypeRole&&(i.CFBundleTypeRole=e.CFBundleTypeRole),i}updatePrivacyBackgroundImage(e,i,t,n,a){t.message("doing","updatePrivacyBackgroundImage "+n);if(fs_extra_1.default.readdirSync(i).forEach(e=>{"privacy_"+n===path_1.default.basename(e,path_1.default.extname(e))&&fs_extra_1.default.removeSync(path_1.default.join(i,e))}),!a)return;path_1.default.isAbsolute(a)||(a=path_1.default.join(e,a)),a=this.getMaterialFilePath(e,a);const s=path_1.default.extname(a),o=path_1.default.join(i,`privacy_${n}${s}`);try{fs_extra_1.default.copyFileSync(a,o)}catch(e){throw t.message("error",`copy privacy image failed: ${n}, ${a} to ${o}`),e}}async updateIOSInfoPlistInfo(e,i,t,n,a,s){var o,r,l,p,d,c,u,f,_,h,y,g;a.progress("update app base info...");const{mobileapp_info:m={}}=i,S=m.mobileapp_id,I=path_1.default.join(t,"Info.plist"),v={},x=(e,i)=>{var t,n;if((null==i?void 0:i.startsWith("%"))&&(null==i?void 0:i.endsWith("%"))){const o=i.slice(1,-1);v[e]=o;const r=(null===(n=null===(t=null==s?void 0:s.base)||void 0===t?void 0:t.ios)||void 0===n?void 0:n[o])||"";return r||a.message("error",`未在国际化配置 base.json 中找到字段 ${o},请检查`),r}return i};x("UISplashScreenImageName",null===(o=null==n?void 0:n.splashscreen)||void 0===o?void 0:o.customImage),x("UISplashScreenVideoName",null===(r=null==n?void 0:n.splashscreen)||void 0===r?void 0:r.customVideo),x("UILaunchStoryboardName",null===(l=null==n?void 0:n.splashscreen)||void 0===l?void 0:l.customImage);const b=plist.readFileSync(I);if(b.UIBackgroundModes=[],!0===(null===(p=null==n?void 0:n.infoPlist)||void 0===p?void 0:p.AudioInBackgroundMode)&&b.UIBackgroundModes.push("audio"),!0===(null===(d=null==n?void 0:n.infoPlist)||void 0===d?void 0:d.LocationInBackgroundMode)&&b.UIBackgroundModes.push("location"),"object"==typeof n.customInfoPlist&&!Array.isArray(n.customInfoPlist)){a.progress("initiating user custom info.plist config");const e=n.customInfoPlist;for(const i in e)b[i]=e[i]}if(b.CFBundleName=x("CFBundleName",n.name),b.CFBundleDisplayName=x("CFBundleDisplayName",n.name),b.CFBundleShortVersionString=n.version,"number"==typeof n.versionCode?b.CFBundleVersion=parseInt(n.versionCode.toString(),10).toString():b.CFBundleVersion=(parseInt(b.CFBundleVersion,10)+1).toString(),b.CFBundleIdentifier=this.getBundleIdentifier(m),Array.isArray(null==n?void 0:n.openMimeTypes)&&this.validateCFBundleDocumentTypes(n.openMimeTypes,a)&&(b.CFBundleDocumentTypes=n.openMimeTypes,a.message("doing","openMimeTypes 应用成功")),Array.isArray(b.CFBundleURLTypes)||(b.CFBundleURLTypes=[]),(null===(u=null===(c=b.CFBundleURLTypes)||void 0===c?void 0:c[0])||void 0===u?void 0:u.CFBundleURLSchemes)&&(b.CFBundleURLTypes[0].CFBundleURLSchemes=[S]),b.CFBundleURLTypes[0]&&(b.CFBundleURLTypes=[b.CFBundleURLTypes[0]]),Object.keys(miniappJson_1.iosPrivacyDescObj).forEach(e=>{var i,t;(null===(i=null==n?void 0:n.privateDescriptions)||void 0===i?void 0:i[e])?b[e]=x(e,null===(t=n.privateDescriptions)||void 0===t?void 0:t[e]):delete b[e]}),!0===(null===(f=null==n?void 0:n.infoPlist)||void 0===f?void 0:f.DisableAppUsesNonExemptEncryption)?b.ITSAppUsesNonExemptEncryption=!1:delete b.ITSAppUsesNonExemptEncryption,!0===(null===(_=null==n?void 0:n.infoPlist)||void 0===_?void 0:_.requiresFullScreen)?b.UIRequiresFullScreen=!0:delete b.UIRequiresFullScreen,"object"==typeof(null===(h=null==n?void 0:n.infoPlist)||void 0===h?void 0:h.CFBundleURLTypes)){const e=this.generateInfoPlistCFBundleURLTypesItem(n.infoPlist.CFBundleURLTypes);b.CFBundleURLTypes.push(e);const{additionalCFBundleURLTypes:i}=n.infoPlist.CFBundleURLTypes;Array.isArray(i)&&i.forEach(e=>{if("object"==typeof e){const i=this.generateInfoPlistCFBundleURLTypesItem(e);b.CFBundleURLTypes.push(i)}})}if(null===(y=null==n?void 0:n.useExtendedSdk)||void 0===y?void 0:y.WeAppGoogleLogin){if(!(null==n?void 0:n.googleLoginClientID)||!(null==n?void 0:n.googleLoginBundleUrlType))throw new Error("勾选了 Google Login 拓展模块但未填写 googleLoginClientID 或 googleLoginBundleUrlType 将导致拓展模块无法使用");b.GIDClientID=n.googleLoginClientID,Array.isArray(b.CFBundleURLTypes)?b.CFBundleURLTypes.push({CFBundleURLSchemes:[n.googleLoginBundleUrlType]}):b.CFBundleURLTypes=[{CFBundleURLSchemes:[n.googleLoginBundleUrlType]}]}if(!0===n.enableIpad)if(Array.isArray(n.iPadUISupportedInterfaceOrientations)){const e={Portrait:"UIInterfaceOrientationPortrait",PortraitUpsideDown:"UIInterfaceOrientationPortraitUpsideDown",LandscapeLeft:"UIInterfaceOrientationLandscapeLeft",LandscapeRight:"UIInterfaceOrientationLandscapeRight"},i=n.iPadUISupportedInterfaceOrientations.map(i=>e[i]).filter(e=>!!e);b["UISupportedInterfaceOrientations~ipad"]=i}else(0,miniappJson_1.iOSAppJsonIsUsingIPadResizable)(e)?(b["UISupportedInterfaceOrientations~ipad"]=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"],a.progress("ipad is support Landscape")):(b["UISupportedInterfaceOrientations~ipad"]=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown"],a.progress("ipad is not support Landscape"));if(null===(g=n.infoPlist)||void 0===g?void 0:g.LSApplicationQueriesSchemes){const e=n.infoPlist.LSApplicationQueriesSchemes.split(",");e.length&&b.LSApplicationQueriesSchemes.push(...e.filter(e=>e))}try{plist.writeFileSync(I,b)}catch(e){throw new Error("write info.plist failed!!"+e.messenge)}return await this.writeI18NInfoFile(t,s,v),b.CFBundleVersion}getBundleIdentifier(e){return e.ios_flag&&e.bundle_id||e.debug_ios_bundle_id}validateCFBundleDocumentTypes(e,i){const t=["Owner","Default"," Alternate","None"],n=["Editor","Viewer"," Shell","None"],a=new Set;for(const s of e){if(a.has(s.CFBundleTypeName))return i.message("error","openMimeTypes 应用失败,存在重复定义的 CFBundleTypeName: "+s.CFBundleTypeName),!1;if(a.add(s.CFBundleTypeName),!t.includes(s.LSHandlerRank))return i.message("error","openMimeTypes 应用失败,存在不合法的 LSHandlerRank: "+s.LSHandlerRank),!1;if(!n.includes(s.CFBundleTypeRole))return i.message("error","openMimeTypes 应用失败,存在不合法的 CFBundleTypeRole: "+s.CFBundleTypeRole),!1;if(!Array.isArray(s.LSItemContentTypes))return i.message("error","openMimeTypes 应用失败,LSItemContentTypes 类型不合法"),!1}return!0}useGDT(e){return(0,miniappJson_1.iOSMiniAppJsonIsUsingGDT)(e)}async updateIOSAppConfigPlistInfo(e,i,t,n,a,s,o,r="Dark",l){var p,d,c,u,f,_,h;o.progress("update app module info...");const{module_info:y={},cpa_info:g={},cpa_package_info:m={enable_remove_watermark:!1}}=i;if(!g.sdk_key||!g.sdk_key_secret)throw new Error("sdkKey and sdkSecret not found");const S=path_1.default.join(t,"MiniApp.bundle"),I=path_1.default.join(S,"AppConfig.plist"),v=plist.readFileSync(I);m.enable_remove_watermark?v.enableRemoveWatermark=!0:v.splashscreenTheme=r,v.miniModuleId=y.module_id,v.sdkKey=g.sdk_key,v.sdkSecret=g.sdk_key_secret;const{privacy:x={}}=n;v.privacy||(v.privacy={}),v.privacy.enable=!!x.enable,v.privacy.enableViewOnly=!!x.enableViewOnly;const b=path_1.default.posix.join(S,"configs/privacy.json"),{contentViewImage:F,cancelButtonImage:P,confirmButtonImage:j,template:B}=x;if(x.enable){let i=B||"";if(fs_extra_1.default.ensureDirSync(path_1.default.posix.join(S,"configs")),i.startsWith("%")&&i.endsWith("%")){const t=B.slice(1,-1);i=(null===(d=null===(p=null==l?void 0:l.base)||void 0===p?void 0:p.ios)||void 0===d?void 0:d[t])||"",i||o.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查`),Object.keys(l).forEach(i=>{var n,a;if("base"===i)return;let s=null===(a=null===(n=l[i])||void 0===n?void 0:n.ios)||void 0===a?void 0:a[t];if(s){s=this.getMaterialFilePath(e,s);const t=`configs/privacy-${i}.json`,n=path_1.default.posix.join(S,t);fs_extra_1.default.existsSync(s)?fs_extra_1.default.copyFileSync(s,n):o.message("error",`未找到隐私协议在国际化配置 ${i}.json 中配置的文件 ${s},请检查`)}})}i?(i=this.getMaterialFilePath(e,i),fs_extra_1.default.existsSync(i)?(fs_extra_1.default.copyFileSync(i,b),v.privacy.template="configs/privacy.json"):(o.message("error",`未找到隐私协议中配置的文件 ${i},请检查`),v.privacy.template="configs/defaultPrivacy.json")):v.privacy.template="configs/defaultPrivacy.json",!0===x.enableNativePlugin&&"string"==typeof x.nativePluginId&&x.nativePluginId.length>2&&(v.privacy.plugin={pluginId:x.nativePluginId,enable:!0})}else v.privacy.template="",fs_extra_1.default.removeSync(b);this.updatePrivacyBackgroundImage(e,t,o,"contentViewImage",F),this.updatePrivacyBackgroundImage(e,t,o,"confirmButtonImage",j),this.updatePrivacyBackgroundImage(e,t,o,"cancelButtonImage",P);const{appMenuEnable:L=!0}=n;v.appMenuEnable=L;const{enableVConsole:C="undefined"}=n;if(v.enableVConsole=C,null===(c=n.useExtendedSdk)||void 0===c?void 0:c.WeAppLive){const{weAppLiveLicenseUrl:e,weAppLiveLicenseKey:i}=n.liveInfo||{};e&&i&&(v.weAppLiveLicenseUrl=e,v.weAppLiveLicenseKey=i)}const{tpush:w}=n;let A=!1;if("object"==typeof w){const e=path_1.default.posix.join(t,"PlugIns/TPNSService.appex"),i=path_1.default.posix.join(e,"AppConfig.plist");if(this.useTpush(n)){v.TPNSAccessID=w.accessID,v.TPNSAccessKey=w.accessKey,w.clusterDomainName?v.clusterDomainName=w.clusterDomainName:delete v.clusterDomainName;const t=s?"x86_64":"arm64",n=path_1.default.join(a,`appex/${t}/TPNSService.appex`);if(!fs_extra_1.default.existsSync(n))throw new Error("can not found extendsdk: "+n);try{fs_extra_1.default.copySync(n,e),plist.writeFileSync(i,v),A=!0}catch(e){throw new Error("copy TPNSService.appex to app failed: "+e)}}}if(!A)try{const e=path_1.default.posix.join(t,"PlugIns");fs_extra_1.default.existsSync(e)?(fs_extra_1.default.removeSync(e),o.progress("removed PlugIns folder...")):o.progress("no PlugIns folder...")}catch(e){throw new Error("remove TPNSService.appex from app failed: "+e)}if(null===(u=n.useExtendedSdk)||void 0===u?void 0:u.WeAppLBS){if(!n.qmapAPIKey)throw new Error("You need to provide the Tencent Location Service API Key when using LBS SDK.");v.qmapAPIKey=n.qmapAPIKey}const{gdt:U}=n,D=this.useGDT(n);if(v.GDTAd=D?{appid:U.appid,enable:!0,SplashAd:{placementId:U.splashAd_placementId,fetchDelay:U.splashAd_fetchDelay||3,defaultEnable:null===(f=U.splashAd_defaultEnable)||void 0===f||f}}:{appid:"",enable:!1,SplashAd:{placementId:"",fetchDelay:3}},n["mini-plugin"]&&Array.isArray(n["mini-plugin"].ios)){const e=n["mini-plugin"].ios,i=e.filter(e=>!!(e.open&&e.pluginId&&e.loadWhenStart)).map(e=>e.pluginId),t=e.map(e=>e.open?{pluginId:e.pluginId,version:e.isFromLocal?"dev":e.pluginVersion}:void 0).filter(e=>e);v.plugins={loadWhenStart:i,pluginInfoList:t}}const{enableDebugLog:$=!1}=n;v.enableDebugLog=$;const{debugLogSizeLimit:E=10}=n;isNaN(Number(E))?o.message("error",`ios debugLogSizeLimit ${E} is NaN`):v.debugLogSizeLimit=Number(E);const{enableOpenUrlNavigate:O=!1}=n;v.enableOpenUrlNavigate=O;const k=path_1.default.posix.join(S,"configs/locales");if(fs_extra_1.default.ensureDirSync(k),null===(h=null===(_=null==l?void 0:l.base)||void 0===_?void 0:_.ios)||void 0===h?void 0:h.LOCALES){const i=this.getMaterialFilePath(e,l.base.ios.LOCALES);fs_extra_1.default.existsSync(i)?(fs_extra_1.default.copyFileSync(i,path_1.default.posix.join(k,"common-base.json")),o.progress("复制基础语言 locales 配置成功")):o.message("error","未找到基础语言 locales 配置文件: "+i)}Object.keys(l).forEach(i=>{var t,n;if("base"===i)return;const a=null===(n=null===(t=l[i])||void 0===t?void 0:t.ios)||void 0===n?void 0:n.LOCALES;if(a){const t=this.getMaterialFilePath(e,a);fs_extra_1.default.existsSync(t)?(fs_extra_1.default.copyFileSync(t,path_1.default.posix.join(k,`common-${i}.json`)),o.progress(`复制 ${i} 语言 locales 配置成功`)):o.message("error",`未找到 ${i} 语言 locales 配置文件: ${t}`)}}),plist.writeFileSync(I,v)}async updateIOSAppexInfoPlistInfo(e,i,t,n,a){if(this.useTpush(t)){a.progress("update appex for notification base info...");const{mobileapp_info:s={}}=e,o=path_1.default.join(i,"PlugIns/TPNSService.appex"),r=path_1.default.join(o,"Info.plist"),l=plist.readFileSync(r);l.CFBundleShortVersionString=t.version,a.progress("update appex for CFBundleVersion: "+n),l.CFBundleVersion=n;const p=s.ios_flag&&s.bundle_id||s.debug_ios_bundle_id;l.CFBundleIdentifier=t.tpush.serviceBundleId||p+".service",a.progress("update appex bundle identifier for infoPlist : "+l.CFBundleIdentifier),plist.writeFileSync(r,l)}else a.progress("not using tpush...")}updateBundleIcons(e,i,t,n,a){const s=[],o=[],r=[];for(const l in t){if(!t[l])continue;const p=this.getMaterialFilePath(e,t[l]);if(!p)return void a.message("error","getMatrialFailed: "+t[l]);const d=iconInfoMap[l];try{const e=sizeOf(p),i=d.size[0]*d.scale,n=d.size[1]*d.scale;if(e.width!==i||e.height!==n){a.progress(`check ${l} size failed, require [${i}, ${n}] but [${e.width}, ${e.height}] ingore ${t[l]} `);continue}}catch(e){a.progress(`get ${l} info failed, ingore ${t[l]}(e: ${e.message})`);continue}const c=path_1.default.extname(p),u=1===d.scale?"":`@${d.scale}x`,f=`${d.size[0]}x${d.size[1]}`,_=l.startsWith("ipad"),h="appStore1024"===l||"appStore1024Other"===l,y="appStore1024Other"===l?n+"Other":n,g=path_1.default.join(i,`${y}${f}${u}${_?"~ipad":""}${c}`),m={from:p,to:g,filename:path_1.default.basename(g),size:f,scale:d.scale+"x",idiom:d.idiom,key:l};s.push(m),h||(_?r.includes(`${y}${f}`)||r.push(`${y}${f}${u}`):o.includes(`${y}${f}`)||o.push(`${y}${f}${u}`))}return{iphoneBundleIconFiles:o,ipadBundleIconFiles:r,addFiles:s}}async updateIOSIcons(e,i,t,n,a,s,o=!1,r=""){s.progress("update app icons...");const{icons:l={}}=n,p=(o||a)&&!!t;s.progress("genAssetCar: "+p);const d=glob_1.default.sync("AppIcon*.+(png|jpg|jpeg|webp)",{nodir:!0,cwd:i}).map(e=>path_1.default.join(i,e)),c="AppIcon-"+uuidv4().slice(0,8),u=this.updateBundleIcons(e,i,l,c,s);if(!u)throw new Error("updateBundleIcons failed");const{iphoneBundleIconFiles:f=[],ipadBundleIconFiles:_=[],addFiles:h=[]}=u,y={};for(const e in iconInfoMap){if(!iconInfoMap[e].required||l[e])continue;const i=iconInfoMap[e].size[0]*iconInfoMap[e].scale,t=iconInfoMap[e].size[1]*iconInfoMap[e].scale;if(y[e]=path_1.default.join(defaultIconDirPath,`donut-icon${i}x${t}.png`),s.progress(`using default app icons when ${e} is not config...`),!fs_extra_1.default.existsSync(y[e]))throw new Error(`required ${e} but not default or set`)}const g=this.updateBundleIcons(e,i,y,c,s);if(!g)throw new Error("updateBundleIcons WithDefaultIcon failed");const{iphoneBundleIconFiles:m,ipadBundleIconFiles:S,addFiles:I}=g;if(f.push(...m),_.push(...S),h.push(...I),!f.length&&!_.length)return;d.forEach(e=>{fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e)});const v=path_1.default.join(t,"__assetCarOperateDir/assetsCar/"),x=path_1.default.join(v,`Assets.xcassets/${c}.appiconset/`);p&&(fs_extra_1.default.ensureDirSync(x),fs_extra_1.default.emptyDirSync(x));const b=[];let F=!1;if(h.forEach(e=>{fs_extra_1.default.existsSync(e.to)&&fs_extra_1.default.removeSync(e.to),fs_extra_1.default.copyFileSync(e.from,e.to),p&&(fs_extra_1.default.copySync(e.from,path_1.default.join(x,e.filename)),"ios-marketing-other"===e.idiom&&(F=!0),b.push({filename:e.filename,size:e.size,scale:e.scale,idiom:e.idiom}))}),p&&fs_extra_1.default.writeJsonSync(path_1.default.join(x,"Contents.json"),{images:b,info:{author:"xcode",version:1}},{spaces:"\t"}),p){const e=path_1.default.join(__dirname,"../../../static/scripts/assetsCar/"),t=path_1.default.join(v,"createAssetsCar");fs_extra_1.default.copySync(e,v);try{await(0,codesign_1.checkXcodeEnv)(s),child_process.execSync(`"${t}" ${c}`,{env:(0,env_1.getProcessEnv)()})}catch(e){throw new Error("createAssetsCar failed "+(e.message||""))}const n=path_1.default.join(v,"build/Assets.car"),a=path_1.default.join(i,"Assets.car");fs_extra_1.default.copyFileSync(n,a)}else if(r&&fs_extra_1.default.existsSync(r))s.message("success","命中缓存,正在使用缓存的 AssetCar"),fs_extra_1.default.copyFileSync(r,path_1.default.join(i,"Assets.car"));else{const e=path_1.default.join(i,"Assets.car");fs_extra_1.default.removeSync(e),s.message("warn","更新 App 图标可能不生效,可使用远程构建验证图标设置;工具将会缓存图标构建结果")}const P=path_1.default.join(i,"Info.plist"),j=plist.readFileSync(P);if(!j.CFBundleIcons){const e={CFBundlePrimaryIcon:{}};j.CFBundleIcons=e}F&&(j.CFBundleIcons.CFBundleAlternateIcons={OtherAppStoreIcon:{CFBundleIconFiles:[c+"Other"],CFBundleIconName:"OtherAppStoreIcon"}}),j.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconName=c,j.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles=f,j["CFBundleIcons~ipad"]||(j["CFBundleIcons~ipad"]={CFBundlePrimaryIcon:{}}),j["CFBundleIcons~ipad"].CFBundlePrimaryIcon.CFBundleIconName=c,j["CFBundleIcons~ipad"].CFBundlePrimaryIcon.CFBundleIconFiles=_,j.NSAppTransportSecurity={NSAllowsArbitraryLoads:!0},plist.writeFileSync(P,j)}replaceLaunchScreenImage(e,i,t,n,a,s){const o=path_1.default.join(e,"01J-lp-oVM-view-Ze5-6b-2t3.nib");let r=fs_extra_1.default.readFileSync(o).toString("hex");if(!i.endsWith(".png"))return void n.message("error","IOS 启动页图片配置格式错误,必须为 PNG 格式, 错误配置:"+i);const l=this.getMaterialFilePath(a,i),p=t+".png",d="LaunchScreen-"+uuidv4().slice(0,12),c=d+".png",u=path_1.default.join(s,c);fs_extra_1.default.copyFileSync(l,u);const f=Buffer.from(p,"utf-8").toString("hex"),_=Buffer.from(c,"utf-8").toString("hex");return-1!==r.indexOf(f)?(r=r.replace(f,_),console.log("replace storyboard customImage success")):console.log("replace storyboard customImage fail"),fs_extra_1.default.writeFileSync(o,Buffer.from(r,"hex")),d}replaceLaunchScreenVideo(e,i,t,n){const a=path_1.default.extname(e);if([".mp4",".mov"].indexOf(a)<0)return void i.message("error","IOS 启动页视频配置格式错误,必须为 mp4 mov 格式, 错误配置:"+e);const s=this.getMaterialFilePath(t,e),o=`${"LaunchScreen-"+uuidv4().slice(0,12)}${a}`,r=path_1.default.join(n,o);return fs_extra_1.default.copyFileSync(s,r),o}async updateSplashScreen(e,i,t,n,a="Dark",s){var o,r,l;let p;n.progress("update splashscreen image..."),allowTheme.includes(a)&&(p=path_1.default.join(i,`/Base.lproj/LaunchScreen${a}.storyboardc`)),p&&fs_extra_1.default.existsSync(p)&&fs_extra_1.default.copySync(p,path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc")),allowTheme.forEach(e=>{const t=path_1.default.join(i,`/Base.lproj/LaunchScreen${e}.storyboardc`);fs_extra_1.default.existsSync(t)&&fs_extra_1.default.removeSync(t)});let d=null===(o=null==t?void 0:t.splashscreen)||void 0===o?void 0:o.customImage;if(!d)return;const c=path_1.default.join(i,"Info.plist"),u=plist.readFileSync(c),f=u.UISplashScreenImageName;if(glob_1.default.sync("LaunchScreen-*.+(png|jpg|jpeg|webp)",{nodir:!0,cwd:i}).forEach(e=>{const t=path_1.default.join(i,e);fs_extra_1.default.removeSync(t)}),d.startsWith("%")&&(null==d?void 0:d.endsWith("%"))){const t=d.slice(1,-1),a=(null===(l=null===(r=null==s?void 0:s.base)||void 0===r?void 0:r.ios)||void 0===l?void 0:l[t])||"";if(!a)return void n.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查,启动页国际化配置失败`);d=a,Object.keys(s).forEach(a=>{var o,r;if("base"===a)return;const l=null===(r=null===(o=s[a])||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t];if(l){const t=path_1.default.join(i,`/${a}.lproj/LaunchScreen_${a}.storyboardc`);fs_extra_1.default.ensureDirSync(path_1.default.join(t,"..")),fs_extra_1.default.copySync(path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc"),t);const s=this.replaceLaunchScreenImage(t,this.getMaterialFilePath(e,l),f,n,e,i);n.progress(`update ${a} splashscreen image...`);const o=fs_extra_1.default.readFileSync(path_1.default.join(i,a+".lproj/InfoPlist.strings"),"utf8");let r="";r=s?o.replace("__UISplashScreenImageName__",`UISplashScreenImageName = "${s}";\n`).replace("__UILaunchStoryboardName__",`UILaunchStoryboardName = "LaunchScreen_${a}";\n`):o.replace("__UISplashScreenImageName__","").replace("__UILaunchStoryboardName__",""),fs_extra_1.default.writeFileSync(path_1.default.join(i,a+".lproj/InfoPlist.strings"),r),n.progress(`update ${a} splashscreen image success`)}})}n.progress("update base splashscreen image...");const _=this.replaceLaunchScreenImage(path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc"),this.getMaterialFilePath(e,d),f,n,e,i);n.progress("update base splashscreen image success"),_&&(u.UISplashScreenImageName=_,u.UILaunchStoryboardName="LaunchScreen",plist.writeFileSync(c,u))}async updateSplashScreenVideo(e,i,t,n,a){var s,o,r;n.progress("update splashscreen video...");let l=null===(s=null==t?void 0:t.splashscreen)||void 0===s?void 0:s.customVideo;if(!l)return;const p=path_1.default.join(i,"Info.plist"),d=plist.readFileSync(p);if(l.startsWith("%")&&(null==l?void 0:l.endsWith("%"))){const t=l.slice(1,-1),s=(null===(r=null===(o=null==a?void 0:a.base)||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t])||"";if(!s)return void n.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查,启动页视频国际化配置失败`);l=s,Object.keys(a).forEach(s=>{var o,r;if("base"===s)return;const l=null===(r=null===(o=a[s])||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t];if(l){const t=this.replaceLaunchScreenVideo(this.getMaterialFilePath(e,l),n,e,i);n.progress(`update ${s} splashscreen video...`);const a=fs_extra_1.default.readFileSync(path_1.default.join(i,s+".lproj/InfoPlist.strings"),"utf8");let o="";o=t?a.replace("__UISplashScreenVideoName__",`UISplashScreenVideoName = "${t}";\n`):a.replace("__UISplashScreenVideoName__",""),fs_extra_1.default.writeFileSync(path_1.default.join(i,s+".lproj/InfoPlist.strings"),o),n.progress(`update ${s} splashscreen video success`)}})}n.progress("update base splashscreen video...");const c=this.replaceLaunchScreenVideo(this.getMaterialFilePath(e,l),n,e,i);n.progress("update base splashscreen video success"),c&&(d.UISplashScreenVideoName=c,plist.writeFileSync(p,d))}genUseExtendedSdk(e,i){const t=Object.assign({},e.useExtendedSdk||{});for(const i in e)if("object"==typeof e[i])for(const n in e[i])if(n.startsWith("useExtendedLib_WeApp")&&!0===e[i][n]){t[n.slice("useExtendedLib_".length)]=!0}return!t.WeAppLBS||t.WeAppOpenFuns||t.WeAppOpenFuns_HasPay||(t.WeAppOpenFuns=!0),"RemoteDebug"===(null==i?void 0:i.debugType)&&(t.WeAppUSB=!0),t}async updateExtendedSdk(e,i,t,n,a,s,o){const r=path_1.default.join(i,"Frameworks");fs_extra_1.default.ensureDirSync(r),o.progress("update extendsdk...");const l=path_1.default.join(t,"WeAppSDK.podspec"),p=fs_extra_1.default.readFileSync(l,"utf-8"),d=this.genUseExtendedSdk(a,s);o.progress("useExtendedSdks: "+JSON.stringify(d));const{mobileapp_info:c={}}=e,u=this.getBundleIdentifier(c);if(d.WeAppOpenFuns&&d.WeAppOpenFuns_HasPay)throw new Error("OpenFuncs SDK 只可勾选使用一个,请按需勾选使用");const f={},_=["WeAppUSB"];for(const e in d){if(!d[e])continue;const i=getDepReg(e),a=p.match(i);if(!(null==a?void 0:a[1])){if(_.includes(e))continue;throw new Error(`拓展模块 ${e} 不存在或已被移除,请检查 project.miniapp.json -> 对应平台 -> useExtendedSdk 删除配置 ${e},版本配置差异请参考更新日志或 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/changelog/difflog.html`)}const s=[];if(a[1].split("\n").forEach(e=>{const i=e.match(/.*'(.*?)',/);if(null==i?void 0:i[1]){const e=i[1].split("/").pop(),a=path_1.default.join(t,"Libs",n,e);if(!fs_extra_1.default.existsSync(a)){if(_.includes(e+".framework"))return;throw new Error(`拓展模块 ${e} 不存在或已被移除,请检查 project.miniapp.json -> 对应平台 -> useExtendedSdk 删除配置 ${e},版本配置差异请参考更新日志或 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/changelog/difflog.html`)}const o=path_1.default.join(r,e);fs_extra_1.default.copySync(a,o),s.push(path_1.default.basename(e));const l=path_1.default.join(o,"info.plist");if(!fs_extra_1.default.existsSync(l))throw new Error("can not found extendsdk info.plist: "+e);this.changeExtendSDKInfoplistBundleId(l,u,e)}}),s.length){f[s.shift()]=s}}const h=path_1.default.join(i,"DyFrameworks.plist");fs_extra_1.default.existsSync(h)&&fs_extra_1.default.removeSync(h),plist.writeFileSync(h,f)}async updatePrivacyInfo(e,i,t){var n;const a=null===(n=null==i?void 0:i.privacy)||void 0===n?void 0:n.privacyInfo;a&&(a.endsWith("PrivacyInfo.xcprivacy")?fs_extra_1.default.existsSync(a)?(fs_extra_1.default.copySync(a,path_1.default.join(e,"/PrivacyInfo.xcprivacy")),t.progress("隐私清单文件替换成功")):t.message("error","隐私清单文件替换失败,文件不存在,将使用默认文件"):t.message("error","隐私清单文件替换失败,文件名必须为 PrivacyInfo.xcprivacy,将使用默认文件"))}async updatePlugin(e,i,t,n,a,s,o,r){const l={},p={},d=[];if(n["mini-plugin"]&&Array.isArray(n["mini-plugin"].ios)){n["mini-plugin"].ios.forEach(e=>{e.open&&e.pluginId?("string"==typeof e.resourcePath&&e.resourcePath.length>0&&(l[e.pluginId]=e.resourcePath),"object"==typeof e.resourceObjects&&Object.keys(e.resourceObjects).length>0&&(p[e.pluginId]=e.resourceObjects)):d.push(e.pluginId)})}if(d.length>0&&r.message("warn","下列插件未启用,请确认project.miniapp.json中的配置:"+d.join(", ")),!i.length)return;const c=path_1.default.join(e,"Frameworks"),u=path_1.default.join(e,"PlugIns");fs_extra_1.default.ensureDirSync(c),r.progress("update plugin...");const f=this.prepareAppexProfileConfig(i,n,t,a,s,o,n.version,r);if(!f)throw new Error("依赖的多端插件需要配置对应的profile");i.forEach(i=>{const{pluginId:n}=i,a=i.dir,s=n+".framework",o=path_1.default.join(c,s);if(-1!==a.indexOf("local-miniapp-plugin")){const e=fs_extra_1.default.statSync(a),{mtime:i}=e;r.progress(`${n}.framework 正在使用本地版本,修改时间为 ${i}`)}fs_extra_1.default.existsSync(o)&&fs_extra_1.default.removeSync(o);const d=path_1.default.join(a,s);if(fs_extra_1.default.existsSync(d)){fs_extra_1.default.copySync(d,o),this.copyResourcesToMainBundle(d,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(o,"MiniPlugin.bundle"),r);fs_extra_1.default.readdirSync(a).forEach(i=>{if(i.endsWith(".appex")){const s=path_1.default.parse(i).name,o=f[s],d=path_1.default.join(u,i);if(!o||!0!==o.enable)return;r.progress(`${n} 插件使用 appex 中 : ${i}`),fs_extra_1.default.existsSync(d)&&fs_extra_1.default.removeSync(d),fs_extra_1.default.ensureDirSync(d);const c=path_1.default.join(a,i);fs_extra_1.default.copySync(c,d),(null==o?void 0:o.profilePath)&&fs_extra_1.default.copySync(o.profilePath,path_1.default.join(d,"embedded.mobileprovision")),this.copyResourcesToMainBundle(c,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(d,"MiniPlugin.bundle"),r)}else if(i.endsWith("framework")&&i!==s){const e=path_1.default.join(c,i),t=path_1.default.join(a,i);fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e),fs_extra_1.default.copySync(t,e)}})}else fs_extra_1.default.copySync(a,o),this.copyResourcesToMainBundle(a,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(o,"MiniPlugin.bundle"),r)})}copyUserResourcePathIntoPlugins(e,i,t,n,a,s){const o=a;if(t){const n=path_1.default.basename(t),a=this.getMaterialFilePath(i,t);if(a){s.progress(`${e}.framework 正在拷贝配置的资源:${t}`);const i=fs_extra_1.default.lstatSync(a);fs_extra_1.default.ensureDirSync(o),i.isDirectory()?fs_extra_1.default.copySync(a,o):i.isFile()&&fs_extra_1.default.copyFileSync(a,path_1.default.join(o,n))}}if(n){s.progress(e+".framework 正在写入配置的资源"),fs_extra_1.default.ensureDirSync(o);for(const e in n){const i=n[e],t=path_1.default.join(o,e);fs_extra_1.default.ensureDirSync(o),fs_extra_1.default.ensureFileSync(t),fs_extra_1.default.writeFileSync(t,i)}}}copyResourcesToMainBundle(e,i){const t=path_1.default.join(e,"MiniPlugin.bundle"),n=path_1.default.join(t,"PluginConfig.plist");if(fs_extra_1.default.existsSync(n)){const e=plist.readFileSync(n).CopyResourcesToMainBundle;(null==e?void 0:e.length)&&e.forEach(e=>{const n=path_1.default.join(t,e);fs_extra_1.default.existsSync(n)&&fs_extra_1.default.copySync(n,path_1.default.join(i,e))})}}prepareAppexProfileConfig(e,i,t,n,a,s,o,r){if(!n)return void r.message("doing","miniappCacheDirPath is missing");let l=!1;const p={};if(i["mini-plugin"]&&Array.isArray(i["mini-plugin"].ios)){i["mini-plugin"].ios.forEach(e=>{if(e.open&&e.pluginId&&"object"==typeof e.appexProfiles)for(const i in e.appexProfiles){r.message("doing",`检查插件 ${e.pluginId} ${i} appex 配置中 ...`);const n=e.appexProfiles[i];if(!0===n.enable){const s=`${e.pluginId}_${i}`;p[s]={enable:!0};let o=n.profilePath;if(a&&(o=n.distributeProfilePath),n.bundleID&&o){const a=path_1.default.join(t,o);fs_extra_1.default.existsSync(a)?(p[s].bundleID=n.bundleID,p[s].profilePath=path_1.default.join(t,o)):(l=!0,r.message("error",`${e.pluginId} 中 ${i} 的 profilePath 无法找到对应的文件:${a}(需要在小程序项目路径下,填入相对于项目根目录的路径)`))}else l=!0,r.message("error",`${e.pluginId}中${i} 是 无效的appexProfiles配置。需要配置 bundleID,profilePath,distributeProfilePath。profile 文件需要放置在小程序项目内,然后配置相对于小程序项目根目录的相对路径。分发证书构建的情况下, 一定需要配置distributeProfilePath。查看文档了解详情。`)}}})}if(e.forEach(e=>{fs_extra_1.default.readdirSync(e.dir).forEach(i=>{if(i.endsWith(".appex")){const t=path_1.default.parse(i).name,n=p[t];if(n&&!0===n.enable)if(n.bundleID&&n.profilePath){if(n.bundleID&&n.profilePath){const t=path_1.default.join(e.dir,i,"info.plist"),a=n.bundleID;this.changeInfoplistBundleId(t,a),this.changeInfoplistBundleVersion(t,s,o),r.message("doing",`${e.pluginId} ${i} ${a} ${t} 处理 appex bundle ID 中`)}}else l=!0,r.message("error",`${e.pluginId} 的 多端插件包含了${t.slice(e.pluginId.length+1)} 的 appex。开发者需要在project.miniapp.json 中 mini-plugin 配置下对应合理的 profile 文件。查看文档了解详情。`)}})}),l)return!1;if(!(0,lodash_1.isEmpty)(p)){const e=path_1.default.join(n,APPEX_PROFILES_MAPS_FILE);fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e),fs_extra_1.default.ensureFileSync(e);const i={};for(const e in p)i[e]={bundleID:p[e].bundleID,profilePath:p[e].profilePath};fs_extra_1.default.writeFileSync(e,JSON.stringify(i));const t=path_1.default.join(n,APPEX_PROFILES_MAPS_FOR_SHELL_FILE);fs_extra_1.default.existsSync(t)&&fs_extra_1.default.removeSync(t),fs_extra_1.default.ensureFileSync(t);const a=Object.keys(p).map(e=>{const i=p[e];return`pluginAppexName:${e};_;_;bundleID:${i.bundleID};_;_;profile:${i.profilePath}\n\n`}).join("");fs_extra_1.default.writeFileSync(t,a)}return p}changeExtendSDKInfoplistBundleId(e,i,t){const n=`${i}.${path_1.default.parse(t).name.replace(/_/g,"")}`;return this.changeInfoplistBundleId(e,n)}changeInfoplistBundleId(e,i){const t=plist.readFileSync(e);return t.CFBundleIdentifier=i,plist.writeFileSync(e,t),t.CFBundleIdentifier}changeInfoplistBundleVersion(e,i,t){const n=plist.readFileSync(e);return n.CFBundleVersion=i,n.CFBundleShortVersionString=t,plist.writeFileSync(e,n),n.CFBundleIdentifier}async getEntitlements(e,i,t,n){const{mobileapp_info:a={}}=e;let s=a.ios_universal_link||a.debug_ios_universal_link;s=this.polyfillUniversalLink(s);let o=[];t.universalLink&&(o=t.universalLink.split(","),o=o.filter(e=>"string"==typeof e&&e.length>0).map(e=>this.polyfillUniversalLink(e)));let r=[];if(Array.isArray(t.__customAssociatedDomains)){r=(t.__customAssociatedDomains||[]).filter(e=>"string"==typeof e&&e.length>0).map(e=>this.polyfillUniversalLink(e))}return{"com.apple.developer.associated-domains":[s,...o,...r].join("_$_ULinK_$_")}}polyfillUniversalLink(e){let i=e;return(i.startsWith("https://")||i.startsWith("http://"))&&(i=i.replace(/^http(s)?:\/\//g,"applinks:")),i}useTpush(e){return(0,miniappJson_1.iOSMiniAppJsonIsUsingTpush)(e)}async buildCloud(e,i){const{projectPath:t,demoIpaPath:n,sdkPath:a,arch:s="arm64",bindingInfo:o,certificateInfo:r,output:l,miniappCacheDirPath:p,pluginDirList:d,inLandun:c,theme:u,i18nInfo:f,debugInfo:_,CILocalBuild:h,cacheAssetCarPath:y}=e,g=this.generateTempDemoIpaPath(n),{selfCertificate:m={}}=r,S=(null==m?void 0:m.isPublish)||!1,I=(0,miniappJson_1.tryGetIOSMiniappJson)(t),v=this.useTpush(I);if((0,lodash_1.isEmpty)(I))throw new Error("获取project.miniapp.json失败");if(errorIOSSdkVersions.includes(I.sdkVersion))throw new Error("当前 mini-ios.sdkVersion 存在缺陷,请参考更新日志进行修改");let x=o;if(r.signType===miniapp_builder_1.miniappSinTypes.appleId.type){const{mobileapp_info:e={}}=x;x=Object.assign(Object.assign({},x),{mobileapp_info:Object.assign(Object.assign({},e),{bundle_id:miniapp_builder_1.DEFAULT_BUNDLE_ID,debug_ios_bundle_id:miniapp_builder_1.DEFAULT_BUNDLE_ID})})}const b=await this.updateIOSInfoPlistInfo(t,x,g,I,i,f);await this.updateIOSAppConfigPlistInfo(t,x,g,I,a,!1,i,u,f),await this.updateIOSAppexInfoPlistInfo(x,g,I,b,i),await this.updateIOSIcons(t,g,p,I,S,i,!0===c,y),await this.updateSplashScreen(t,g,I,i,u,f),await this.updateSplashScreenVideo(t,g,I,i,f),await this.updateExtendedSdk(x,g,a,s,I,_,i),await this.updatePlugin(g,d,t,I,p,S,b,i),await this.updatePrivacyInfo(g,I,i),await this.updateIOSAppResource(t,g,I,i);const F=await this.getEntitlements(x,g,I,i),{mobileapp_info:P={}}=x;let j;j=r.signType===miniapp_builder_1.miniappSinTypes.appleId.type?miniapp_builder_1.DEFAULT_BUNDLE_ID:P.ios_flag&&P.bundle_id||P.debug_ios_bundle_id;const B={bundleId:j,output:l,entitlements:F,isPublish:m.isPublish};if(I.buildCloud&&(I.buildCloud.certificate&&"string"==typeof I.buildCloud.certificate&&(B.certificate=I.buildCloud.certificate),I.buildCloud.profile&&"string"==typeof I.buildCloud.profile&&(B.profile=path_1.default.join(t,I.buildCloud.profile)),v&&I.buildCloud.tpnsProfile&&"string"==typeof I.buildCloud.tpnsProfile&&(B.tpnsProfile=path_1.default.join(t,I.buildCloud.tpnsProfile))),h&&(B.profile=m.profilePath,B.certificate=m.certificateName),m.isPublish||h){const e=await(0,codesign_1.codesignAndExport)(t,g,p||"",B,i,v,!0===c);if(!0!==e.success)throw new Error("Build ipa failed:"+(e.errMsg||"codesignAndExport failed"))}return{projectPath:t,demoIpaPath:g,opts:B,iosMiniappJson:I,isPublish:S}}async writeI18NInfoFile(e,i,t){Object.keys(i).forEach(n=>{if("base"===n)return;let a="";Object.keys(t).forEach(e=>{var s,o,r,l;"UISplashScreenImageName"!==e?"UISplashScreenVideoName"!==e?"UILaunchStoryboardName"!==e?(null===(o=null===(s=i[n])||void 0===s?void 0:s.ios)||void 0===o?void 0:o[t[e]])&&(a+=`${e} = "${null===(l=null===(r=i[n])||void 0===r?void 0:r.ios)||void 0===l?void 0:l[t[e]]}";\n`):a+="__UILaunchStoryboardName__\n":a+="__UISplashScreenVideoName__\n":a+="__UISplashScreenImageName__\n"}),a&&(fs_extra_1.default.ensureDirSync(path_1.default.join(e,n+".lproj")),fs_extra_1.default.writeFileSync(path_1.default.join(e,n+".lproj/InfoPlist.strings"),a))})}getMaterialFilePath(e,i){if(!i)return"";let t=i;if(path_1.default.isAbsolute(i)||(t=path_1.default.join(e,i)),fs_extra_1.default.existsSync(t))return t;const n=(0,tools_1.generateMD5)(i),a=path_1.default.basename(i),s=path_1.default.join(e,exports.remoteBuildProjectMaterialAbsoluteCacheDir,`${n}_${a}`);return fs_extra_1.default.existsSync(s)?s:""}updateIOSAppResource(e,i,t,n){const a=t.resourcePath;if(!a)return;const s=this.getMaterialFilePath(e,a);if(s){n.progress("正在拷贝资源至主包:"+s);const e=fs_extra_1.default.lstatSync(s);if(e.isDirectory())this.copyDirectory(s,i,!1);else if(e.isFile()){const e=path_1.default.basename(a),t=path_1.default.join(i,e);if(fs_extra_1.default.existsSync(t))throw new Error(`fail to copy ${s}, overwrite is not allowed`);fs_extra_1.default.copyFileSync(s,t)}}}copyDirectory(e,i,t=!0){if(fs_extra_1.default.ensureDirSync(i),t)fs_extra_1.default.copySync(e,i);else{fs_extra_1.default.readdirSync(e).forEach(n=>{const a=path_1.default.join(e,n),s=path_1.default.join(i,n);if(fs_extra_1.default.statSync(a).isDirectory())this.copyDirectory(a,s,t);else{if(fs_extra_1.default.existsSync(s))throw new Error(`fail to copy ${a}, overwrite is not allowed`);fs_extra_1.default.copyFileSync(a,s)}})}}}exports.default=new buildCloudManager; +\ No newline at end of file ++"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.remoteBuildProjectMaterialAbsoluteCacheDir=void 0;const tslib_1=require("tslib"),child_process=tslib_1.__importStar(require("child_process")),path_1=tslib_1.__importDefault(require("path")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),glob_1=tslib_1.__importDefault(require("glob")),env_1=require("../../../utils/env"),miniapp_builder_1=require("../../../utils/miniapp-builder"),codesign_1=require("../../../utils/codesign"),miniappJson_1=require("../../../utils/miniappJson"),lodash_1=require("lodash"),tools_1=require("../../../utils/tools"),uuidv4=require("uuid").v4,sizeOf=require("image-size").imageSize,plist=require("simple-plist"),errorIOSSdkVersions=["1.0.19"],APPEX_PROFILES_MAPS_FILE="__appexProfilesCacheDir__/profilesMap.json",APPEX_PROFILES_MAPS_FOR_SHELL_FILE="__appexProfilesCacheDir__/profilesMapForShell.txt",defaultIconDirPath=path_1.default.join(__dirname,"../../../static/images/"),getDepReg=e=>new RegExp(`s.subspec '${e}'.*\n(?:.*\n)*?(?:.*sp.vendored_frameworks = \\[\n)((?:.*'.*?'.*\n)*?)(?:.*\\]\n)`,"m"),allowTheme=["Light","LightSpecial","Dark","DarkSpecial","Default"];exports.remoteBuildProjectMaterialAbsoluteCacheDir="__absoluteFile";const iconInfoMap={appStore1024:{size:[1024,1024],scale:1,idiom:"ios-marketing",required:!0},appStore1024Other:{size:[1024,1024],scale:1,idiom:"ios-marketing-other"},mainIcon120:{size:[60,60],scale:2,idiom:"iphone",required:!0},mainIcon180:{size:[60,60],scale:3,idiom:"iphone"},spotlightIcon80:{size:[40,40],scale:2,idiom:"iphone"},spotlightIcon120:{size:[40,40],scale:3,idiom:"iphone"},settingsIcon58:{size:[29,29],scale:2,idiom:"iphone"},settingsIcon87:{size:[29,29],scale:3,idiom:"iphone"},notificationIcon40:{size:[20,20],scale:2,idiom:"iphone"},notificationIcon60:{size:[20,20],scale:3,idiom:"iphone"},ipadMainIcon152:{size:[76,76],scale:2,idiom:"ipad"},ipadMainIcon167:{size:[83.5,83.5],scale:2,idiom:"ipad"},ipadSpotlightIcon40:{size:[40,40],scale:1,idiom:"ipad"},ipadSpotlightIcon80:{size:[40,40],scale:2,idiom:"ipad"},ipadSettingsIcon29:{size:[29,29],scale:1,idiom:"ipad"},ipadSpotlightIcon58:{size:[29,29],scale:2,idiom:"ipad"},ipadNotificationIcon20:{size:[20,20],scale:1,idiom:"ipad"},ipadNotificationIcon40:{size:[20,20],scale:2,idiom:"ipad"}};class buildCloudManager{generateTempDemoIpaPath(e){const i=path_1.default.join(e,"../.."),t=path_1.default.basename(i),n=path_1.default.dirname(i),a=path_1.default.join(n,t+"-operateDir");fs_extra_1.default.existsSync(a)&&fs_extra_1.default.removeSync(a),fs_extra_1.default.ensureDirSync(a);const s=path_1.default.join(a,"Payload/demo.app");return fs_extra_1.default.copySync(e,s),s}generateInfoPlistCFBundleURLTypesItem(e){const i={};return e.CFBundleURLName&&(i.CFBundleURLName=e.CFBundleURLName),e.CFBundleURLSchemes&&(Array.isArray(e.CFBundleURLSchemes)?i.CFBundleURLSchemes=e.CFBundleURLSchemes:i.CFBundleURLSchemes=[e.CFBundleURLSchemes]),e.CFBundleTypeRole&&(i.CFBundleTypeRole=e.CFBundleTypeRole),i}updatePrivacyBackgroundImage(e,i,t,n,a){t.message("doing","updatePrivacyBackgroundImage "+n);if(fs_extra_1.default.readdirSync(i).forEach(e=>{"privacy_"+n===path_1.default.basename(e,path_1.default.extname(e))&&fs_extra_1.default.removeSync(path_1.default.join(i,e))}),!a)return;path_1.default.isAbsolute(a)||(a=path_1.default.join(e,a)),a=this.getMaterialFilePath(e,a);const s=path_1.default.extname(a),o=path_1.default.join(i,`privacy_${n}${s}`);try{fs_extra_1.default.copyFileSync(a,o)}catch(e){throw t.message("error",`copy privacy image failed: ${n}, ${a} to ${o}`),e}}async updateIOSInfoPlistInfo(e,i,t,n,a,s){var o,r,l,p,d,c,u,f,_,h,y,g;a.progress("update app base info...");const{mobileapp_info:m={}}=i,S=m.mobileapp_id,I=path_1.default.join(t,"Info.plist"),v={},x=(e,i)=>{var t,n;if((null==i?void 0:i.startsWith("%"))&&(null==i?void 0:i.endsWith("%"))){const o=i.slice(1,-1);v[e]=o;const r=(null===(n=null===(t=null==s?void 0:s.base)||void 0===t?void 0:t.ios)||void 0===n?void 0:n[o])||"";return r||a.message("error",`未在国际化配置 base.json 中找到字段 ${o},请检查`),r}return i};x("UISplashScreenImageName",null===(o=null==n?void 0:n.splashscreen)||void 0===o?void 0:o.customImage),x("UISplashScreenVideoName",null===(r=null==n?void 0:n.splashscreen)||void 0===r?void 0:r.customVideo),x("UILaunchStoryboardName",null===(l=null==n?void 0:n.splashscreen)||void 0===l?void 0:l.customImage);const b=plist.readFileSync(I);if(b.UIBackgroundModes=[],!0===(null===(p=null==n?void 0:n.infoPlist)||void 0===p?void 0:p.AudioInBackgroundMode)&&b.UIBackgroundModes.push("audio"),!0===(null===(d=null==n?void 0:n.infoPlist)||void 0===d?void 0:d.LocationInBackgroundMode)&&b.UIBackgroundModes.push("location"),"object"==typeof n.customInfoPlist&&!Array.isArray(n.customInfoPlist)){a.progress("initiating user custom info.plist config");const e=n.customInfoPlist;for(const i in e)b[i]=e[i]}if(b.CFBundleName=x("CFBundleName",n.name),b.CFBundleDisplayName=x("CFBundleDisplayName",n.name),b.CFBundleShortVersionString=n.version,"number"==typeof n.versionCode?b.CFBundleVersion=parseInt(n.versionCode.toString(),10).toString():b.CFBundleVersion=(parseInt(b.CFBundleVersion,10)+1).toString(),b.CFBundleIdentifier=this.getBundleIdentifier(m),Array.isArray(null==n?void 0:n.openMimeTypes)&&this.validateCFBundleDocumentTypes(n.openMimeTypes,a)&&(b.CFBundleDocumentTypes=n.openMimeTypes,a.message("doing","openMimeTypes 应用成功")),Array.isArray(b.CFBundleURLTypes)||(b.CFBundleURLTypes=[]),(null===(u=null===(c=b.CFBundleURLTypes)||void 0===c?void 0:c[0])||void 0===u?void 0:u.CFBundleURLSchemes)&&(b.CFBundleURLTypes[0].CFBundleURLSchemes=[S]),b.CFBundleURLTypes[0]&&(b.CFBundleURLTypes=[b.CFBundleURLTypes[0]]),Object.keys(miniappJson_1.iosPrivacyDescObj).forEach(e=>{var i,t;(null===(i=null==n?void 0:n.privateDescriptions)||void 0===i?void 0:i[e])?b[e]=x(e,null===(t=n.privateDescriptions)||void 0===t?void 0:t[e]):delete b[e]}),!0===(null===(f=null==n?void 0:n.infoPlist)||void 0===f?void 0:f.DisableAppUsesNonExemptEncryption)?b.ITSAppUsesNonExemptEncryption=!1:delete b.ITSAppUsesNonExemptEncryption,!0===(null===(_=null==n?void 0:n.infoPlist)||void 0===_?void 0:_.requiresFullScreen)?b.UIRequiresFullScreen=!0:delete b.UIRequiresFullScreen,"object"==typeof(null===(h=null==n?void 0:n.infoPlist)||void 0===h?void 0:h.CFBundleURLTypes)){const e=this.generateInfoPlistCFBundleURLTypesItem(n.infoPlist.CFBundleURLTypes);b.CFBundleURLTypes.push(e);const{additionalCFBundleURLTypes:i}=n.infoPlist.CFBundleURLTypes;Array.isArray(i)&&i.forEach(e=>{if("object"==typeof e){const i=this.generateInfoPlistCFBundleURLTypesItem(e);b.CFBundleURLTypes.push(i)}})}if(null===(y=null==n?void 0:n.useExtendedSdk)||void 0===y?void 0:y.WeAppGoogleLogin){if(!(null==n?void 0:n.googleLoginClientID)||!(null==n?void 0:n.googleLoginBundleUrlType))throw new Error("勾选了 Google Login 拓展模块但未填写 googleLoginClientID 或 googleLoginBundleUrlType 将导致拓展模块无法使用");b.GIDClientID=n.googleLoginClientID,Array.isArray(b.CFBundleURLTypes)?b.CFBundleURLTypes.push({CFBundleURLSchemes:[n.googleLoginBundleUrlType]}):b.CFBundleURLTypes=[{CFBundleURLSchemes:[n.googleLoginBundleUrlType]}]}if(!0===n.enableIpad)if(Array.isArray(n.iPadUISupportedInterfaceOrientations)){const e={Portrait:"UIInterfaceOrientationPortrait",PortraitUpsideDown:"UIInterfaceOrientationPortraitUpsideDown",LandscapeLeft:"UIInterfaceOrientationLandscapeLeft",LandscapeRight:"UIInterfaceOrientationLandscapeRight"},i=n.iPadUISupportedInterfaceOrientations.map(i=>e[i]).filter(e=>!!e);b["UISupportedInterfaceOrientations~ipad"]=i}else(0,miniappJson_1.iOSAppJsonIsUsingIPadResizable)(e)?(b["UISupportedInterfaceOrientations~ipad"]=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"],a.progress("ipad is support Landscape")):(b["UISupportedInterfaceOrientations~ipad"]=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown"],a.progress("ipad is not support Landscape"));if(null===(g=n.infoPlist)||void 0===g?void 0:g.LSApplicationQueriesSchemes){const e=n.infoPlist.LSApplicationQueriesSchemes.split(",");e.length&&b.LSApplicationQueriesSchemes.push(...e.filter(e=>e))}try{plist.writeFileSync(I,b)}catch(e){throw new Error("write info.plist failed!!"+e.messenge)}return await this.writeI18NInfoFile(t,s,v),b.CFBundleVersion}getBundleIdentifier(e){return e.ios_flag&&e.bundle_id||e.debug_ios_bundle_id}validateCFBundleDocumentTypes(e,i){const t=["Owner","Default"," Alternate","None"],n=["Editor","Viewer"," Shell","None"],a=new Set;for(const s of e){if(a.has(s.CFBundleTypeName))return i.message("error","openMimeTypes 应用失败,存在重复定义的 CFBundleTypeName: "+s.CFBundleTypeName),!1;if(a.add(s.CFBundleTypeName),!t.includes(s.LSHandlerRank))return i.message("error","openMimeTypes 应用失败,存在不合法的 LSHandlerRank: "+s.LSHandlerRank),!1;if(!n.includes(s.CFBundleTypeRole))return i.message("error","openMimeTypes 应用失败,存在不合法的 CFBundleTypeRole: "+s.CFBundleTypeRole),!1;if(!Array.isArray(s.LSItemContentTypes))return i.message("error","openMimeTypes 应用失败,LSItemContentTypes 类型不合法"),!1}return!0}useGDT(e){return(0,miniappJson_1.iOSMiniAppJsonIsUsingGDT)(e)}async updateIOSAppConfigPlistInfo(e,i,t,n,a,s,o,r="Dark",l){var p,d,c,u,f,_,h;o.progress("update app module info...");const{module_info:y={},cpa_info:g={},cpa_package_info:m={enable_remove_watermark:!1}}=i;if(!g.sdk_key||!g.sdk_key_secret)throw new Error("sdkKey and sdkSecret not found");const S=path_1.default.join(t,"MiniApp.bundle"),I=path_1.default.join(S,"AppConfig.plist"),v=plist.readFileSync(I);m.enable_remove_watermark?v.enableRemoveWatermark=!0:v.splashscreenTheme=r,v.miniModuleId=y.module_id,v.sdkKey=g.sdk_key,v.sdkSecret=g.sdk_key_secret;const{privacy:x={}}=n;v.privacy||(v.privacy={}),v.privacy.enable=!!x.enable,v.privacy.enableViewOnly=!!x.enableViewOnly;const b=path_1.default.posix.join(S,"configs/privacy.json"),{contentViewImage:F,cancelButtonImage:P,confirmButtonImage:j,template:B}=x;if(x.enable){let i=B||"";if(fs_extra_1.default.ensureDirSync(path_1.default.posix.join(S,"configs")),i.startsWith("%")&&i.endsWith("%")){const t=B.slice(1,-1);i=(null===(d=null===(p=null==l?void 0:l.base)||void 0===p?void 0:p.ios)||void 0===d?void 0:d[t])||"",i||o.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查`),Object.keys(l).forEach(i=>{var n,a;if("base"===i)return;let s=null===(a=null===(n=l[i])||void 0===n?void 0:n.ios)||void 0===a?void 0:a[t];if(s){s=this.getMaterialFilePath(e,s);const t=`configs/privacy-${i}.json`,n=path_1.default.posix.join(S,t);fs_extra_1.default.existsSync(s)?fs_extra_1.default.copyFileSync(s,n):o.message("error",`未找到隐私协议在国际化配置 ${i}.json 中配置的文件 ${s},请检查`)}})}i?(i=this.getMaterialFilePath(e,i),fs_extra_1.default.existsSync(i)?(fs_extra_1.default.copyFileSync(i,b),v.privacy.template="configs/privacy.json"):(o.message("error",`未找到隐私协议中配置的文件 ${i},请检查`),v.privacy.template="configs/defaultPrivacy.json")):v.privacy.template="configs/defaultPrivacy.json",!0===x.enableNativePlugin&&"string"==typeof x.nativePluginId&&x.nativePluginId.length>2&&(v.privacy.plugin={pluginId:x.nativePluginId,enable:!0})}else v.privacy.template="",fs_extra_1.default.removeSync(b);this.updatePrivacyBackgroundImage(e,t,o,"contentViewImage",F),this.updatePrivacyBackgroundImage(e,t,o,"confirmButtonImage",j),this.updatePrivacyBackgroundImage(e,t,o,"cancelButtonImage",P);const{appMenuEnable:L=!0}=n;v.appMenuEnable=L;const{enableVConsole:C="undefined"}=n;if(v.enableVConsole=C,null===(c=n.useExtendedSdk)||void 0===c?void 0:c.WeAppLive){const{weAppLiveLicenseUrl:e,weAppLiveLicenseKey:i}=n.liveInfo||{};e&&i&&(v.weAppLiveLicenseUrl=e,v.weAppLiveLicenseKey=i)}const{tpush:w}=n;let A=!1;if("object"==typeof w){const e=path_1.default.posix.join(t,"PlugIns/TPNSService.appex"),i=path_1.default.posix.join(e,"AppConfig.plist");if(this.useTpush(n)){v.TPNSAccessID=w.accessID,v.TPNSAccessKey=w.accessKey,w.clusterDomainName?v.clusterDomainName=w.clusterDomainName:delete v.clusterDomainName;const t=s?"x86_64":"arm64",n=path_1.default.join(a,`appex/${t}/TPNSService.appex`);if(!fs_extra_1.default.existsSync(n))throw new Error("can not found extendsdk: "+n);try{fs_extra_1.default.copySync(n,e),plist.writeFileSync(i,v),A=!0}catch(e){throw new Error("copy TPNSService.appex to app failed: "+e)}}}if(!A)try{const e=path_1.default.posix.join(t,"PlugIns");fs_extra_1.default.existsSync(e)?(fs_extra_1.default.removeSync(e),o.progress("removed PlugIns folder...")):o.progress("no PlugIns folder...")}catch(e){throw new Error("remove TPNSService.appex from app failed: "+e)}if(null===(u=n.useExtendedSdk)||void 0===u?void 0:u.WeAppLBS){if(!n.qmapAPIKey)throw new Error("You need to provide the Tencent Location Service API Key when using LBS SDK.");v.qmapAPIKey=n.qmapAPIKey}const{gdt:U}=n,D=this.useGDT(n);if(v.GDTAd=D?{appid:U.appid,enable:!0,SplashAd:{placementId:U.splashAd_placementId,fetchDelay:U.splashAd_fetchDelay||3,defaultEnable:null===(f=U.splashAd_defaultEnable)||void 0===f||f}}:{appid:"",enable:!1,SplashAd:{placementId:"",fetchDelay:3}},n["mini-plugin"]&&Array.isArray(n["mini-plugin"].ios)){const e=n["mini-plugin"].ios,i=e.filter(e=>!!(e.open&&e.pluginId&&e.loadWhenStart)).map(e=>e.pluginId),t=e.map(e=>e.open?{pluginId:e.pluginId,version:e.isFromLocal?"dev":e.pluginVersion}:void 0).filter(e=>e);v.plugins={loadWhenStart:i,pluginInfoList:t}}const{enableDebugLog:$=!1}=n;v.enableDebugLog=$;const{debugLogSizeLimit:E=10}=n;isNaN(Number(E))?o.message("error",`ios debugLogSizeLimit ${E} is NaN`):v.debugLogSizeLimit=Number(E);const{enableOpenUrlNavigate:O=!1}=n;v.enableOpenUrlNavigate=O;const k=path_1.default.posix.join(S,"configs/locales");if(fs_extra_1.default.ensureDirSync(k),null===(h=null===(_=null==l?void 0:l.base)||void 0===_?void 0:_.ios)||void 0===h?void 0:h.LOCALES){const i=this.getMaterialFilePath(e,l.base.ios.LOCALES);fs_extra_1.default.existsSync(i)?(fs_extra_1.default.copyFileSync(i,path_1.default.posix.join(k,"common-base.json")),o.progress("复制基础语言 locales 配置成功")):o.message("error","未找到基础语言 locales 配置文件: "+i)}Object.keys(l).forEach(i=>{var t,n;if("base"===i)return;const a=null===(n=null===(t=l[i])||void 0===t?void 0:t.ios)||void 0===n?void 0:n.LOCALES;if(a){const t=this.getMaterialFilePath(e,a);fs_extra_1.default.existsSync(t)?(fs_extra_1.default.copyFileSync(t,path_1.default.posix.join(k,`common-${i}.json`)),o.progress(`复制 ${i} 语言 locales 配置成功`)):o.message("error",`未找到 ${i} 语言 locales 配置文件: ${t}`)}}),plist.writeFileSync(I,v)}async updateIOSAppexInfoPlistInfo(e,i,t,n,a){if(this.useTpush(t)){a.progress("update appex for notification base info...");const{mobileapp_info:s={}}=e,o=path_1.default.join(i,"PlugIns/TPNSService.appex"),r=path_1.default.join(o,"Info.plist"),l=plist.readFileSync(r);l.CFBundleShortVersionString=t.version,a.progress("update appex for CFBundleVersion: "+n),l.CFBundleVersion=n;const p=s.ios_flag&&s.bundle_id||s.debug_ios_bundle_id;l.CFBundleIdentifier=t.tpush.serviceBundleId||p+".service",a.progress("update appex bundle identifier for infoPlist : "+l.CFBundleIdentifier),plist.writeFileSync(r,l)}else a.progress("not using tpush...")}updateBundleIcons(e,i,t,n,a){const s=[],o=[],r=[];for(const l in t){if(!t[l])continue;const p=this.getMaterialFilePath(e,t[l]);if(!p)return void a.message("error","getMatrialFailed: "+t[l]);const d=iconInfoMap[l];try{const e=sizeOf(p),i=d.size[0]*d.scale,n=d.size[1]*d.scale;if(e.width!==i||e.height!==n){a.progress(`check ${l} size failed, require [${i}, ${n}] but [${e.width}, ${e.height}] ingore ${t[l]} `);continue}}catch(e){a.progress(`get ${l} info failed, ingore ${t[l]}(e: ${e.message})`);continue}const c=path_1.default.extname(p),u=1===d.scale?"":`@${d.scale}x`,f=`${d.size[0]}x${d.size[1]}`,_=l.startsWith("ipad"),h="appStore1024"===l||"appStore1024Other"===l,y="appStore1024Other"===l?n+"Other":n,g=path_1.default.join(i,`${y}${f}${u}${_?"~ipad":""}${c}`),m={from:p,to:g,filename:path_1.default.basename(g),size:f,scale:d.scale+"x",idiom:d.idiom,key:l};s.push(m),h||(_?r.includes(`${y}${f}`)||r.push(`${y}${f}${u}`):o.includes(`${y}${f}`)||o.push(`${y}${f}${u}`))}return{iphoneBundleIconFiles:o,ipadBundleIconFiles:r,addFiles:s}}async updateIOSIcons(e,i,t,n,a,s,o=!1,r=""){s.progress("update app icons...");const{icons:l={}}=n,p=(o||a)&&!!t;s.progress("genAssetCar: "+p);const d=glob_1.default.sync("AppIcon*.+(png|jpg|jpeg|webp)",{nodir:!0,cwd:i}).map(e=>path_1.default.join(i,e)),c="AppIcon-"+uuidv4().slice(0,8),u=this.updateBundleIcons(e,i,l,c,s);if(!u)throw new Error("updateBundleIcons failed");const{iphoneBundleIconFiles:f=[],ipadBundleIconFiles:_=[],addFiles:h=[]}=u,y={};for(const e in iconInfoMap){if(!iconInfoMap[e].required||l[e])continue;const i=iconInfoMap[e].size[0]*iconInfoMap[e].scale,t=iconInfoMap[e].size[1]*iconInfoMap[e].scale;if(y[e]=path_1.default.join(defaultIconDirPath,`donut-icon${i}x${t}.png`),s.progress(`using default app icons when ${e} is not config...`),!fs_extra_1.default.existsSync(y[e]))throw new Error(`required ${e} but not default or set`)}const g=this.updateBundleIcons(e,i,y,c,s);if(!g)throw new Error("updateBundleIcons WithDefaultIcon failed");const{iphoneBundleIconFiles:m,ipadBundleIconFiles:S,addFiles:I}=g;if(f.push(...m),_.push(...S),h.push(...I),!f.length&&!_.length)return;d.forEach(e=>{fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e)});const v=path_1.default.join(t,"__assetCarOperateDir/assetsCar/"),x=path_1.default.join(v,`Assets.xcassets/${c}.appiconset/`);p&&(fs_extra_1.default.ensureDirSync(x),fs_extra_1.default.emptyDirSync(x));const b=[];let F=!1;if(h.forEach(e=>{fs_extra_1.default.existsSync(e.to)&&fs_extra_1.default.removeSync(e.to),fs_extra_1.default.copyFileSync(e.from,e.to),p&&(fs_extra_1.default.copySync(e.from,path_1.default.join(x,e.filename)),"ios-marketing-other"===e.idiom&&(F=!0),b.push({filename:e.filename,size:e.size,scale:e.scale,idiom:e.idiom}))}),p&&fs_extra_1.default.writeJsonSync(path_1.default.join(x,"Contents.json"),{images:b,info:{author:"xcode",version:1}},{spaces:"\t"}),p){const e=path_1.default.join(__dirname,"../../../static/scripts/assetsCar/"),t=path_1.default.join(v,"createAssetsCar");fs_extra_1.default.copySync(e,v);try{await(0,codesign_1.checkXcodeEnv)(s),child_process.execSync(`"${t}" ${c}`,{env:(0,env_1.getProcessEnv)()})}catch(e){throw new Error("createAssetsCar failed "+(e.message||""))}const n=path_1.default.join(v,"build/Assets.car"),a=path_1.default.join(i,"Assets.car");fs_extra_1.default.copyFileSync(n,a)}else if(r&&fs_extra_1.default.existsSync(r))s.message("success","命中缓存,正在使用缓存的 AssetCar"),fs_extra_1.default.copyFileSync(r,path_1.default.join(i,"Assets.car"));else{const e=path_1.default.join(i,"Assets.car");fs_extra_1.default.removeSync(e),s.message("warn","更新 App 图标可能不生效,可使用远程构建验证图标设置;工具将会缓存图标构建结果")}const P=path_1.default.join(i,"Info.plist"),j=plist.readFileSync(P);if(!j.CFBundleIcons){const e={CFBundlePrimaryIcon:{}};j.CFBundleIcons=e}F&&(j.CFBundleIcons.CFBundleAlternateIcons={OtherAppStoreIcon:{CFBundleIconFiles:[c+"Other"],CFBundleIconName:"OtherAppStoreIcon"}}),j.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconName=c,j.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles=f,j["CFBundleIcons~ipad"]||(j["CFBundleIcons~ipad"]={CFBundlePrimaryIcon:{}}),j["CFBundleIcons~ipad"].CFBundlePrimaryIcon.CFBundleIconName=c,j["CFBundleIcons~ipad"].CFBundlePrimaryIcon.CFBundleIconFiles=_,j.NSAppTransportSecurity={NSAllowsArbitraryLoads:!0},plist.writeFileSync(P,j)}replaceLaunchScreenImage(e,i,t,n,a,s){const o=path_1.default.join(e,"01J-lp-oVM-view-Ze5-6b-2t3.nib");let r=fs_extra_1.default.readFileSync(o).toString("hex");if(!i.endsWith(".png"))return void n.message("error","IOS 启动页图片配置格式错误,必须为 PNG 格式, 错误配置:"+i);const l=this.getMaterialFilePath(a,i),p=t+".png",d="LaunchScreen-"+uuidv4().slice(0,12),c=d+".png",u=path_1.default.join(s,c);fs_extra_1.default.copyFileSync(l,u);const f=Buffer.from(p,"utf-8").toString("hex"),_=Buffer.from(c,"utf-8").toString("hex");return-1!==r.indexOf(f)?(r=r.replace(f,_),console.log("replace storyboard customImage success")):console.log("replace storyboard customImage fail"),fs_extra_1.default.writeFileSync(o,Buffer.from(r,"hex")),d}replaceLaunchScreenVideo(e,i,t,n){const a=path_1.default.extname(e);if([".mp4",".mov"].indexOf(a)<0)return void i.message("error","IOS 启动页视频配置格式错误,必须为 mp4 mov 格式, 错误配置:"+e);const s=this.getMaterialFilePath(t,e),o=`${"LaunchScreen-"+uuidv4().slice(0,12)}${a}`,r=path_1.default.join(n,o);return fs_extra_1.default.copyFileSync(s,r),o}async updateSplashScreen(e,i,t,n,a="Dark",s){var o,r,l;let p;n.progress("update splashscreen image..."),allowTheme.includes(a)&&(p=path_1.default.join(i,`/Base.lproj/LaunchScreen${a}.storyboardc`)),p&&fs_extra_1.default.existsSync(p)&&fs_extra_1.default.copySync(p,path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc")),allowTheme.forEach(e=>{const t=path_1.default.join(i,`/Base.lproj/LaunchScreen${e}.storyboardc`);fs_extra_1.default.existsSync(t)&&fs_extra_1.default.removeSync(t)});let d=null===(o=null==t?void 0:t.splashscreen)||void 0===o?void 0:o.customImage;if(!d)return;const c=path_1.default.join(i,"Info.plist"),u=plist.readFileSync(c),f=u.UISplashScreenImageName;if(glob_1.default.sync("LaunchScreen-*.+(png|jpg|jpeg|webp)",{nodir:!0,cwd:i}).forEach(e=>{const t=path_1.default.join(i,e);fs_extra_1.default.removeSync(t)}),d.startsWith("%")&&(null==d?void 0:d.endsWith("%"))){const t=d.slice(1,-1),a=(null===(l=null===(r=null==s?void 0:s.base)||void 0===r?void 0:r.ios)||void 0===l?void 0:l[t])||"";if(!a)return void n.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查,启动页国际化配置失败`);d=a,Object.keys(s).forEach(a=>{var o,r;if("base"===a)return;const l=null===(r=null===(o=s[a])||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t];if(l){const t=path_1.default.join(i,`/${a}.lproj/LaunchScreen_${a}.storyboardc`);fs_extra_1.default.ensureDirSync(path_1.default.join(t,"..")),fs_extra_1.default.copySync(path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc"),t);const s=this.replaceLaunchScreenImage(t,this.getMaterialFilePath(e,l),f,n,e,i);n.progress(`update ${a} splashscreen image...`);const o=fs_extra_1.default.readFileSync(path_1.default.join(i,a+".lproj/InfoPlist.strings"),"utf8");let r="";r=s?o.replace("__UISplashScreenImageName__",`UISplashScreenImageName = "${s}";\n`).replace("__UILaunchStoryboardName__",`UILaunchStoryboardName = "LaunchScreen_${a}";\n`):o.replace("__UISplashScreenImageName__","").replace("__UILaunchStoryboardName__",""),fs_extra_1.default.writeFileSync(path_1.default.join(i,a+".lproj/InfoPlist.strings"),r),n.progress(`update ${a} splashscreen image success`)}})}n.progress("update base splashscreen image...");const _=this.replaceLaunchScreenImage(path_1.default.join(i,"/Base.lproj/LaunchScreen.storyboardc"),this.getMaterialFilePath(e,d),f,n,e,i);n.progress("update base splashscreen image success"),_&&(u.UISplashScreenImageName=_,u.UILaunchStoryboardName="LaunchScreen",plist.writeFileSync(c,u))}async updateSplashScreenVideo(e,i,t,n,a){var s,o,r;n.progress("update splashscreen video...");let l=null===(s=null==t?void 0:t.splashscreen)||void 0===s?void 0:s.customVideo;if(!l)return;const p=path_1.default.join(i,"Info.plist"),d=plist.readFileSync(p);if(l.startsWith("%")&&(null==l?void 0:l.endsWith("%"))){const t=l.slice(1,-1),s=(null===(r=null===(o=null==a?void 0:a.base)||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t])||"";if(!s)return void n.message("error",`未在国际化配置 base.json 中找到字段 ${t},请检查,启动页视频国际化配置失败`);l=s,Object.keys(a).forEach(s=>{var o,r;if("base"===s)return;const l=null===(r=null===(o=a[s])||void 0===o?void 0:o.ios)||void 0===r?void 0:r[t];if(l){const t=this.replaceLaunchScreenVideo(this.getMaterialFilePath(e,l),n,e,i);n.progress(`update ${s} splashscreen video...`);const a=fs_extra_1.default.readFileSync(path_1.default.join(i,s+".lproj/InfoPlist.strings"),"utf8");let o="";o=t?a.replace("__UISplashScreenVideoName__",`UISplashScreenVideoName = "${t}";\n`):a.replace("__UISplashScreenVideoName__",""),fs_extra_1.default.writeFileSync(path_1.default.join(i,s+".lproj/InfoPlist.strings"),o),n.progress(`update ${s} splashscreen video success`)}})}n.progress("update base splashscreen video...");const c=this.replaceLaunchScreenVideo(this.getMaterialFilePath(e,l),n,e,i);n.progress("update base splashscreen video success"),c&&(d.UISplashScreenVideoName=c,plist.writeFileSync(p,d))}genUseExtendedSdk(e,i){const t=Object.assign({},e.useExtendedSdk||{});for(const i in e)if("object"==typeof e[i])for(const n in e[i])if(n.startsWith("useExtendedLib_WeApp")&&!0===e[i][n]){t[n.slice("useExtendedLib_".length)]=!0}return!t.WeAppLBS||t.WeAppOpenFuns||t.WeAppOpenFuns_HasPay||(t.WeAppOpenFuns=!0),"RemoteDebug"===(null==i?void 0:i.debugType)&&(t.WeAppUSB=!0),t}async updateExtendedSdk(e,i,t,n,a,s,o){const r=path_1.default.join(i,"Frameworks");fs_extra_1.default.ensureDirSync(r),o.progress("update extendsdk...");const l=path_1.default.join(t,"WeAppSDK.podspec"),p=fs_extra_1.default.readFileSync(l,"utf-8"),d=this.genUseExtendedSdk(a,s);o.progress("useExtendedSdks: "+JSON.stringify(d));const{mobileapp_info:c={}}=e,u=this.getBundleIdentifier(c);if(d.WeAppOpenFuns&&d.WeAppOpenFuns_HasPay)throw new Error("OpenFuncs SDK 只可勾选使用一个,请按需勾选使用");const f={},_=["WeAppUSB"];for(const e in d){if(!d[e])continue;const i=getDepReg(e),a=p.match(i);if(!(null==a?void 0:a[1])){if(_.includes(e))continue;throw new Error(`拓展模块 ${e} 不存在或已被移除,请检查 project.miniapp.json -> 对应平台 -> useExtendedSdk 删除配置 ${e},版本配置差异请参考更新日志或 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/changelog/difflog.html`)}const s=[];if(a[1].split("\n").forEach(e=>{const i=e.match(/.*'(.*?)',/);if(null==i?void 0:i[1]){const e=i[1].split("/").pop(),a=path_1.default.join(t,"Libs",n,e);if(!fs_extra_1.default.existsSync(a)){if(_.includes(e+".framework"))return;throw new Error(`拓展模块 ${e} 不存在或已被移除,请检查 project.miniapp.json -> 对应平台 -> useExtendedSdk 删除配置 ${e},版本配置差异请参考更新日志或 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/changelog/difflog.html`)}const o=path_1.default.join(r,e);fs_extra_1.default.copySync(a,o),s.push(path_1.default.basename(e));const l=path_1.default.join(o,"info.plist");if(!fs_extra_1.default.existsSync(l))throw new Error("can not found extendsdk info.plist: "+e);this.changeExtendSDKInfoplistBundleId(l,u,e)}}),s.length){f[s.shift()]=s}}const h=path_1.default.join(i,"DyFrameworks.plist");fs_extra_1.default.existsSync(h)&&fs_extra_1.default.removeSync(h),plist.writeFileSync(h,f)}async updatePrivacyInfo(e,i,t){var n;const a=null===(n=null==i?void 0:i.privacy)||void 0===n?void 0:n.privacyInfo;a&&(a.endsWith("PrivacyInfo.xcprivacy")?fs_extra_1.default.existsSync(a)?(fs_extra_1.default.copySync(a,path_1.default.join(e,"/PrivacyInfo.xcprivacy")),t.progress("隐私清单文件替换成功")):t.message("error","隐私清单文件替换失败,文件不存在,将使用默认文件"):t.message("error","隐私清单文件替换失败,文件名必须为 PrivacyInfo.xcprivacy,将使用默认文件"))}async updatePlugin(e,i,t,n,a,s,o,r){const l={},p={},d=[];if(n["mini-plugin"]&&Array.isArray(n["mini-plugin"].ios)){n["mini-plugin"].ios.forEach(e=>{e.open&&e.pluginId?("string"==typeof e.resourcePath&&e.resourcePath.length>0&&(l[e.pluginId]=e.resourcePath),"object"==typeof e.resourceObjects&&Object.keys(e.resourceObjects).length>0&&(p[e.pluginId]=e.resourceObjects)):d.push(e.pluginId)})}if(d.length>0&&r.message("warn","下列插件未启用,请确认project.miniapp.json中的配置:"+d.join(", ")),!i.length)return;const c=path_1.default.join(e,"Frameworks"),u=path_1.default.join(e,"PlugIns");fs_extra_1.default.ensureDirSync(c),r.progress("update plugin...");const f=this.prepareAppexProfileConfig(i,n,t,a,s,o,n.version,r);if(!f)throw new Error("依赖的多端插件需要配置对应的profile");i.forEach(i=>{const{pluginId:n}=i,a=i.dir,s=n+".framework",o=path_1.default.join(c,s);if(-1!==a.indexOf("local-miniapp-plugin")){const e=fs_extra_1.default.statSync(a),{mtime:i}=e;r.progress(`${n}.framework 正在使用本地版本,修改时间为 ${i}`)}fs_extra_1.default.existsSync(o)&&fs_extra_1.default.removeSync(o);const d=path_1.default.join(a,s);if(fs_extra_1.default.existsSync(d)){fs_extra_1.default.copySync(d,o),this.copyResourcesToMainBundle(d,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(o,"MiniPlugin.bundle"),r);fs_extra_1.default.readdirSync(a).forEach(i=>{if(i.endsWith(".appex")){const s=path_1.default.parse(i).name,o=f[s],d=path_1.default.join(u,i);if(!o||!0!==o.enable)return;r.progress(`${n} 插件使用 appex 中 : ${i}`),fs_extra_1.default.existsSync(d)&&fs_extra_1.default.removeSync(d),fs_extra_1.default.ensureDirSync(d);const c=path_1.default.join(a,i);fs_extra_1.default.copySync(c,d),(null==o?void 0:o.profilePath)&&fs_extra_1.default.copySync(o.profilePath,path_1.default.join(d,"embedded.mobileprovision")),this.copyResourcesToMainBundle(c,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(d,"MiniPlugin.bundle"),r)}else if(i.endsWith("framework")&&i!==s){const e=path_1.default.join(c,i),t=path_1.default.join(a,i);fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e),fs_extra_1.default.copySync(t,e)}})}else fs_extra_1.default.copySync(a,o),this.copyResourcesToMainBundle(a,e),this.copyUserResourcePathIntoPlugins(n,t,l[n],p[n],path_1.default.join(o,"MiniPlugin.bundle"),r)})}copyUserResourcePathIntoPlugins(e,i,t,n,a,s){const o=a;if(t){const n=path_1.default.basename(t),a=this.getMaterialFilePath(i,t);if(a){s.progress(`${e}.framework 正在拷贝配置的资源:${t}`);const i=fs_extra_1.default.lstatSync(a);fs_extra_1.default.ensureDirSync(o),i.isDirectory()?fs_extra_1.default.copySync(a,o):i.isFile()&&fs_extra_1.default.copyFileSync(a,path_1.default.join(o,n))}}if(n){s.progress(e+".framework 正在写入配置的资源"),fs_extra_1.default.ensureDirSync(o);for(const e in n){const i=n[e],t=path_1.default.join(o,e);fs_extra_1.default.ensureDirSync(o),fs_extra_1.default.ensureFileSync(t),fs_extra_1.default.writeFileSync(t,i)}}}copyResourcesToMainBundle(e,i){const t=path_1.default.join(e,"MiniPlugin.bundle"),n=path_1.default.join(t,"PluginConfig.plist");if(fs_extra_1.default.existsSync(n)){const e=plist.readFileSync(n).CopyResourcesToMainBundle;(null==e?void 0:e.length)&&e.forEach(e=>{const n=path_1.default.join(t,e);fs_extra_1.default.existsSync(n)&&fs_extra_1.default.copySync(n,path_1.default.join(i,e))})}}prepareAppexProfileConfig(e,i,t,n,a,s,o,r){if(!n)return void r.message("doing","miniappCacheDirPath is missing");let l=!1;const p={};if(i["mini-plugin"]&&Array.isArray(i["mini-plugin"].ios)){i["mini-plugin"].ios.forEach(e=>{if(e.open&&e.pluginId&&"object"==typeof e.appexProfiles)for(const i in e.appexProfiles){r.message("doing",`检查插件 ${e.pluginId} ${i} appex 配置中 ...`);const n=e.appexProfiles[i];if(!0===n.enable){const s=`${e.pluginId}_${i}`;p[s]={enable:!0};let o=n.profilePath;if(a&&(o=n.distributeProfilePath),n.bundleID&&o){const a=path_1.default.join(t,o);fs_extra_1.default.existsSync(a)?(p[s].bundleID=n.bundleID,p[s].profilePath=path_1.default.join(t,o)):(l=!0,r.message("error",`${e.pluginId} 中 ${i} 的 profilePath 无法找到对应的文件:${a}(需要在小程序项目路径下,填入相对于项目根目录的路径)`))}else l=!0,r.message("error",`${e.pluginId}中${i} 是 无效的appexProfiles配置。需要配置 bundleID,profilePath,distributeProfilePath。profile 文件需要放置在小程序项目内,然后配置相对于小程序项目根目录的相对路径。分发证书构建的情况下, 一定需要配置distributeProfilePath。查看文档了解详情。`)}}})}if(e.forEach(e=>{fs_extra_1.default.readdirSync(e.dir).forEach(i=>{if(i.endsWith(".appex")){const t=path_1.default.parse(i).name,n=p[t];if(n&&!0===n.enable)if(n.bundleID&&n.profilePath){if(n.bundleID&&n.profilePath){const t=path_1.default.join(e.dir,i,"info.plist"),a=n.bundleID;this.changeInfoplistBundleId(t,a),this.changeInfoplistBundleVersion(t,s,o),r.message("doing",`${e.pluginId} ${i} ${a} ${t} 处理 appex bundle ID 中`)}}else l=!0,r.message("error",`${e.pluginId} 的 多端插件包含了${t.slice(e.pluginId.length+1)} 的 appex。开发者需要在project.miniapp.json 中 mini-plugin 配置下对应合理的 profile 文件。查看文档了解详情。`)}})}),l)return!1;if(!(0,lodash_1.isEmpty)(p)){const e=path_1.default.join(n,APPEX_PROFILES_MAPS_FILE);fs_extra_1.default.existsSync(e)&&fs_extra_1.default.removeSync(e),fs_extra_1.default.ensureFileSync(e);const i={};for(const e in p)i[e]={bundleID:p[e].bundleID,profilePath:p[e].profilePath};fs_extra_1.default.writeFileSync(e,JSON.stringify(i));const t=path_1.default.join(n,APPEX_PROFILES_MAPS_FOR_SHELL_FILE);fs_extra_1.default.existsSync(t)&&fs_extra_1.default.removeSync(t),fs_extra_1.default.ensureFileSync(t);const a=Object.keys(p).map(e=>{const i=p[e];return`pluginAppexName:${e};_;_;bundleID:${i.bundleID};_;_;profile:${i.profilePath}\n\n`}).join("");fs_extra_1.default.writeFileSync(t,a)}return p}changeExtendSDKInfoplistBundleId(e,i,t){const n=`${i}.${path_1.default.parse(t).name.replace(/_/g,"")}`;return this.changeInfoplistBundleId(e,n)}changeInfoplistBundleId(e,i){const t=plist.readFileSync(e);return t.CFBundleIdentifier=i,plist.writeFileSync(e,t),t.CFBundleIdentifier}changeInfoplistBundleVersion(e,i,t){const n=plist.readFileSync(e);return n.CFBundleVersion=i,n.CFBundleShortVersionString=t,plist.writeFileSync(e,n),n.CFBundleIdentifier}async getEntitlements(e,i,t,n){const{mobileapp_info:a={}}=e;let s=a.ios_universal_link||a.debug_ios_universal_link;s=this.polyfillUniversalLink(s);let o=[];t.universalLink&&(o=t.universalLink.split(","),o=o.filter(e=>"string"==typeof e&&e.length>0).map(e=>this.polyfillUniversalLink(e)));let r=[];if(Array.isArray(t.__customAssociatedDomains)){r=(t.__customAssociatedDomains||[]).filter(e=>"string"==typeof e&&e.length>0).map(e=>this.polyfillUniversalLink(e))}return{"com.apple.developer.associated-domains":[s,...o,...r].join("_$_ULinK_$_")}}polyfillUniversalLink(e){let i=e;return(i.startsWith("https://")||i.startsWith("http://"))&&(i=i.replace(/^http(s)?:\/\//g,"applinks:")),i}useTpush(e){return(0,miniappJson_1.iOSMiniAppJsonIsUsingTpush)(e)}async buildCloud(e,i){const{projectPath:t,demoIpaPath:n,sdkPath:a,arch:s="arm64",bindingInfo:o,certificateInfo:r,output:l,miniappCacheDirPath:p,pluginDirList:d,inLandun:c,theme:u,i18nInfo:f,debugInfo:_,CILocalBuild:h,cacheAssetCarPath:y}=e,g=this.generateTempDemoIpaPath(n),{selfCertificate:m={}}=r,S=(null==m?void 0:m.isPublish)||!1,I=(0,miniappJson_1.tryGetIOSMiniappJson)(t),v=this.useTpush(I);if((0,lodash_1.isEmpty)(I))throw new Error("获取project.miniapp.json失败");if(errorIOSSdkVersions.includes(I.sdkVersion))throw new Error("当前 mini-ios.sdkVersion 存在缺陷,请参考更新日志进行修改");let x=o;if(r.signType===miniapp_builder_1.miniappSinTypes.appleId.type){const{mobileapp_info:e={}}=x;x=Object.assign(Object.assign({},x),{mobileapp_info:Object.assign(Object.assign({},e),{bundle_id:miniapp_builder_1.DEFAULT_BUNDLE_ID,debug_ios_bundle_id:miniapp_builder_1.DEFAULT_BUNDLE_ID})})}const b=await this.updateIOSInfoPlistInfo(t,x,g,I,i,f);await this.updateIOSAppConfigPlistInfo(t,x,g,I,a,!1,i,u,f),await this.updateIOSAppexInfoPlistInfo(x,g,I,b,i),await this.updateIOSIcons(t,g,p,I,S,i,!0===c,y),await this.updateSplashScreen(t,g,I,i,u,f),await this.updateSplashScreenVideo(t,g,I,i,f),await this.updateExtendedSdk(x,g,a,s,I,_,i),await this.updatePlugin(g,d,t,I,p,S,b,i),await this.updatePrivacyInfo(g,I,i),await this.updateIOSAppResource(t,g,I,i);const F=await this.getEntitlements(x,g,I,i),{mobileapp_info:P={}}=x;let j;j=r.signType===miniapp_builder_1.miniappSinTypes.appleId.type?miniapp_builder_1.DEFAULT_BUNDLE_ID:P.ios_flag&&P.bundle_id||P.debug_ios_bundle_id;const B={bundleId:j,output:l,entitlements:F,isPublish:m.isPublish};if(I.buildCloud&&(I.buildCloud.certificate&&"string"==typeof I.buildCloud.certificate&&(B.certificate=I.buildCloud.certificate),I.buildCloud.profile&&"string"==typeof I.buildCloud.profile&&(B.profile=path_1.default.join(t,I.buildCloud.profile)),v&&I.buildCloud.tpnsProfile&&"string"==typeof I.buildCloud.tpnsProfile&&(B.tpnsProfile=path_1.default.join(t,I.buildCloud.tpnsProfile))),h&&(B.profile=m.profilePath,B.certificate=m.certificateName),m.isPublish||h){const e=await(0,codesign_1.codesignAndExport)(t,g,p||"",B,i,v,!0===c);if(!0!==e.success)throw new Error("Build ipa failed:"+(e.errMsg||"codesignAndExport failed"))}return{projectPath:t,demoIpaPath:g,opts:B,iosMiniappJson:I,isPublish:S}}async writeI18NInfoFile(e,i,t){Object.keys(i).forEach(n=>{if("base"===n)return;let a="";Object.keys(t).forEach(e=>{var s,o,r,l;"UISplashScreenImageName"!==e?"UISplashScreenVideoName"!==e?"UILaunchStoryboardName"!==e?(null===(o=null===(s=i[n])||void 0===s?void 0:s.ios)||void 0===o?void 0:o[t[e]])&&(a+=`${e} = "${null===(l=null===(r=i[n])||void 0===r?void 0:r.ios)||void 0===l?void 0:l[t[e]]}";\n`):a+="__UILaunchStoryboardName__\n":a+="__UISplashScreenVideoName__\n":a+="__UISplashScreenImageName__\n"}),a&&(fs_extra_1.default.ensureDirSync(path_1.default.join(e,n+".lproj")),fs_extra_1.default.writeFileSync(path_1.default.join(e,n+".lproj/InfoPlist.strings"),a))})}getMaterialFilePath(e,i){if(!i)return"";let t=i;if(path_1.default.isAbsolute(i)||(t=path_1.default.join(e,i)),fs_extra_1.default.existsSync(t))return t;const n=(0,tools_1.generateMD5)(i),a=path_1.default.basename(i),s=path_1.default.join(e,exports.remoteBuildProjectMaterialAbsoluteCacheDir,`${n}_${a}`);return fs_extra_1.default.existsSync(s)?s:""}updateIOSAppResource(e,i,t,n){const a=t.resourcePath;if(!a)return;const s=this.getMaterialFilePath(e,a);if(s){n.progress("正在拷贝资源至主包:"+s);const e=fs_extra_1.default.lstatSync(s);if(e.isDirectory())this.copyDirectory(s,i,!1);else if(e.isFile()){const e=path_1.default.basename(a),t=path_1.default.join(i,e);if(fs_extra_1.default.existsSync(t))throw new Error(`fail to copy ${s}, overwrite is not allowed`);fs_extra_1.default.copyFileSync(s,t)}}}copyDirectory(e,i,t=!0){if(fs_extra_1.default.ensureDirSync(i),t)fs_extra_1.default.copySync(e,i);else{fs_extra_1.default.readdirSync(e).forEach(n=>{const a=path_1.default.join(e,n),s=path_1.default.join(i,n);if(fs_extra_1.default.statSync(a).isDirectory())this.copyDirectory(a,s,t);else{if(fs_extra_1.default.existsSync(s))throw new Error(`fail to copy ${a}, overwrite is not allowed`);fs_extra_1.default.copyFileSync(a,s)}})}}}exports.default=new buildCloudManager; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49886ac..34dee7a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,14 @@ overrides: '@tarojs/components-react>swiper': 12.1.2 request: npm:@cypress/request@4.0.1 +patchedDependencies: + '@jimp/core@0.16.13': + hash: e3gfmimxpqa7zt2vmxpy4rkhaq + path: patches/@jimp__core@0.16.13.patch + miniprogram-ci@2.1.31: + hash: y4seosrw3qmysf77ad2tjzhu5e + path: patches/miniprogram-ci@2.1.31.patch + importers: .: @@ -153,7 +161,7 @@ importers: version: 5.12.7 miniprogram-ci: specifier: ^2.1.31 - version: 2.1.31(eslint@9.39.5(jiti@2.7.0)) + version: 2.1.31(patch_hash=y4seosrw3qmysf77ad2tjzhu5e)(eslint@9.39.5(jiti@2.7.0)) prisma: specifier: ^6.2.1 version: 6.19.3(typescript@5.9.3) @@ -10506,7 +10514,7 @@ snapshots: '@jimp/utils': 0.16.13 bmp-js: 0.1.0 - '@jimp/core@0.16.13': + '@jimp/core@0.16.13(patch_hash=e3gfmimxpqa7zt2vmxpy4rkhaq)': dependencies: '@babel/runtime': 7.26.10 '@jimp/utils': 0.16.13 @@ -10526,7 +10534,7 @@ snapshots: '@jimp/custom@0.16.13': dependencies: '@babel/runtime': 7.26.10 - '@jimp/core': 0.16.13 + '@jimp/core': 0.16.13(patch_hash=e3gfmimxpqa7zt2vmxpy4rkhaq) transitivePeerDependencies: - debug - supports-color @@ -15412,7 +15420,7 @@ snapshots: minipass@7.1.3: {} - miniprogram-ci@2.1.31(eslint@9.39.5(jiti@2.7.0)): + miniprogram-ci@2.1.31(patch_hash=y4seosrw3qmysf77ad2tjzhu5e)(eslint@9.39.5(jiti@2.7.0)): dependencies: '@babel/code-frame': 7.22.10 '@babel/compat-data': 7.22.9 diff --git a/scripts/lib/template-doctor.mjs b/scripts/lib/template-doctor.mjs index 5089b2a..e5211ac 100644 --- a/scripts/lib/template-doctor.mjs +++ b/scripts/lib/template-doctor.mjs @@ -1,4 +1,5 @@ import crypto from "node:crypto"; +import { execFileSync } from "node:child_process"; import path from "node:path"; import fs from "node:fs"; import ts from "typescript"; @@ -413,6 +414,53 @@ export function applyManualReview(reports, reviews, reviewScope) { return reports; } +function walkRepositoryFiles(root, directory = root) { + const files = []; + for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { + if ( + entry.name === ".git" || + entry.name === "node_modules" || + entry.name === "dist" || + entry.name === ".turbo" + ) + continue; + const full = path.join(directory, entry.name); + if (entry.isDirectory()) files.push(...walkRepositoryFiles(root, full)); + else if (entry.isFile()) files.push(full); + } + return files; +} + +export function sourceTreeHash(root) { + const rootPath = path.resolve(root); + let files; + if (fs.existsSync(path.join(rootPath, ".git"))) { + const output = execFileSync( + "git", + ["ls-files", "-z", "--cached", "--others", "--exclude-standard"], + { cwd: rootPath, maxBuffer: 64 * 1024 * 1024 }, + ); + files = output + .toString("utf8") + .split("\0") + .filter((file) => file && !file.startsWith(".codex-tasks/")) + .map((file) => path.join(rootPath, file)); + } else { + files = walkRepositoryFiles(rootPath).filter( + (file) => !path.relative(rootPath, file).startsWith(".codex-tasks/"), + ); + } + files.sort(); + const hash = crypto.createHash("sha256"); + for (const file of files) { + hash.update(path.relative(rootPath, file)); + hash.update("\0"); + hash.update(fs.readFileSync(file)); + hash.update("\0"); + } + return hash.digest("hex"); +} + export function applyCompletionEvidence(reports, registry, root) { if (registry === undefined) { for (const report of reports) report.completionStatus = "unverified"; @@ -424,7 +472,8 @@ export function applyCompletionEvidence(reports, registry, root) { registry.scope !== "模板完成证据登记,保留命令、日志与产物哈希" || !registry.templates || typeof registry.templates !== "object" || - Array.isArray(registry.templates) + Array.isArray(registry.templates) || + !/^[a-f0-9]{64}$/.test(registry.sourceTreeHash ?? "") ) { throw new Error("Completion evidence registry has an unsupported schema"); } @@ -439,16 +488,23 @@ export function applyCompletionEvidence(reports, registry, root) { }; const validEvidence = (evidence) => { if (!evidence || evidence.status !== "passed" || !Array.isArray(evidence.commands)) return null; - if (!evidence.commands.length || evidence.commands.some((command) => !command.trim())) + if ( + !evidence.commands.length || + evidence.commands.some((command) => !command.trim() || /<[^>]+>/.test(command)) + ) return null; + if (evidence.exitCode !== 0) return null; if (!Array.isArray(evidence.artifacts) || !evidence.artifacts.length) return null; return evidence; }; + const currentSourceTreeHash = sourceTreeHash(root); let complete = true; for (const report of reports) { const evidence = registry.templates[report.template] ?? {}; const completionIssues = []; + if (registry.sourceTreeHash !== currentSourceTreeHash) + completionIssues.push("source tree hash mismatch"); for (const key of report.requiredEvidence) { const item = validEvidence(evidence[key]); if (!item) { diff --git a/scripts/test/template-doctor.test.mjs b/scripts/test/template-doctor.test.mjs index f2f8b89..ceac9f6 100644 --- a/scripts/test/template-doctor.test.mjs +++ b/scripts/test/template-doctor.test.mjs @@ -9,6 +9,7 @@ import { applyCompletionEvidence, applyManualReview, diagnoseTemplate, + sourceTreeHash, } from "../lib/template-doctor.mjs"; test("真实模板自动发现并读取完整声明,生成可追溯区域报告", () => { @@ -91,6 +92,7 @@ test("完成证据登记必须覆盖全部要求并校验产物哈希", () => { const evidence = (items) => ({ schemaVersion: 1, scope: "模板完成证据登记,保留命令、日志与产物哈希", + sourceTreeHash: sourceTreeHash(root), templates: { fixture: Object.fromEntries( report.requiredEvidence.map((key) => [ @@ -98,6 +100,7 @@ test("完成证据登记必须覆盖全部要求并校验产物哈希", () => { items.includes(key) ? { status: "passed", + exitCode: 0, commands: ["pnpm test"], artifacts: [{ path: "integration.log", sha256 }], } @@ -129,6 +132,26 @@ test("完成证据登记必须覆盖全部要求并校验产物哈希", () => { const checksumMismatch = applyCompletionEvidence([structuredClone(report)], invalid, root); assert.equal(checksumMismatch.completionStatus, "incomplete"); assert.match(checksumMismatch.reports[0].completionIssues.join("\n"), /checksum mismatch/); + + const staleSource = evidence(report.requiredEvidence); + staleSource.sourceTreeHash = "0".repeat(64); + const sourceMismatch = applyCompletionEvidence([structuredClone(report)], staleSource, root); + assert.equal(sourceMismatch.completionStatus, "incomplete"); + assert.match(sourceMismatch.reports[0].completionIssues.join("\n"), /source tree hash/); + + const failedCommand = evidence(report.requiredEvidence); + failedCommand.templates.fixture["visual-reference"].exitCode = 1; + const failed = applyCompletionEvidence([structuredClone(report)], failedCommand, root); + assert.equal(failed.completionStatus, "incomplete"); + + const placeholderCommand = evidence(report.requiredEvidence); + placeholderCommand.templates.fixture["visual-reference"].commands = ["pnpm test --out "]; + const placeholder = applyCompletionEvidence( + [structuredClone(report)], + placeholderCommand, + root, + ); + assert.equal(placeholder.completionStatus, "incomplete"); } finally { fs.rmSync(root, { recursive: true, force: true }); }