fix(admin): Fix Prompt management list not showing version info and add debug diagnostics

Summary:
- Fix Prompt list API response schema missing activeVersion and draftVersion fields
- Fastify was filtering out undefined schema fields, causing version columns to show empty
- Add detailed diagnostic logging for Prompt debug mode troubleshooting
- Verify debug mode works correctly (DRAFT version is used when debug enabled)

Changes:
- backend/src/common/prompt/prompt.routes.ts: Add activeVersion and draftVersion to response schema
- backend/src/common/prompt/prompt.service.ts: Add diagnostic logs for setDebugMode and get methods
- PKB module: Various authentication and document handling fixes from previous session

Tested: Debug mode verified working - v2 DRAFT version correctly loaded when debug enabled
This commit is contained in:
2026-01-13 22:22:10 +08:00
parent 4088275290
commit 4ed67a8846
272 changed files with 1382 additions and 161 deletions

View File

@@ -183,3 +183,5 @@ logger.info('[SessionMemory] 会话记忆管理器已启动', {

View File

@@ -117,3 +117,5 @@ checkTableStructure();

View File

@@ -104,3 +104,5 @@ checkProjectConfig().catch(console.error);

View File

@@ -86,3 +86,5 @@ main();

View File

@@ -543,3 +543,5 @@ URL: https://iit.xunzhengyixue.com/api/v1/iit/patient-wechat/callback

View File

@@ -178,3 +178,5 @@ console.log('');

View File

@@ -495,3 +495,5 @@ export const patientWechatService = new PatientWechatService();

View File

@@ -140,3 +140,5 @@ testDifyIntegration().catch(error => {

View File

@@ -167,5 +167,7 @@ testIitDatabase()

View File

@@ -155,3 +155,5 @@ if (hasError) {

View File

@@ -181,3 +181,5 @@ async function testUrlVerification() {

View File

@@ -262,3 +262,5 @@ main().catch((error) => {

View File

@@ -146,3 +146,5 @@ Write-Host ""

View File

@@ -237,5 +237,7 @@ export interface CachedProtocolRules {