feat(y-log/knowledge): 日志前缀改 CM助手-全量 + 入库 nodeName 按标题去时间戳保持一致

1. Y-Log 上报 optDetail 前缀 B1-CM助手 → CM助手-全量(全量替换 44 个前端文件 + 文档)
2. 知识库入库 nodeName 改为只取 md5(标题).md(去掉时间戳),同一篇 md 每次入库一致,避免重复记录

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
吉鑫升andClaude Opus 4.8 committed 2026-06-24 15:46:51 +08:00
1 parent 3e68260afa
commit 5ecf28e60c
46 files changed
+307 -301

No files matched your search

+17 -17
View File
@@ -24,7 +24,7 @@ export async function loadPromptPrefixSettings(): Promise<PromptPrefixSettings>
const data = (await response.json()) as PromptPrefixSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-提示词前缀查看",
optDetail: "CM助手-全量-系统设置-提示词前缀查看",
url: "/api/system-settings/prompt-prefix",
returnParam: data,
});
@@ -51,7 +51,7 @@ export async function updatePromptPrefixSettings(
const data = (await response.json()) as PromptPrefixSettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-提示词前缀编辑",
optDetail: "CM助手-全量-系统设置-提示词前缀编辑",
url: "/api/system-settings/prompt-prefix",
reqParam: body,
returnParam: data,
@@ -105,7 +105,7 @@ export async function loadPrivateSquareStatus(): Promise<PrivateSquareStatus> {
const data = (await response.json()) as PrivateSquareStatus;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-私密广场查看",
optDetail: "CM助手-全量-系统设置-私密广场查看",
url: "/api/system-settings/private-square",
returnParam: data,
});
@@ -138,7 +138,7 @@ export async function loadPublishSquares(): Promise<PublishSquaresSettings> {
const data = (await response.json()) as PublishSquaresSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-发布广场查看",
optDetail: "CM助手-全量-系统设置-发布广场查看",
url: "/api/system-settings/publish-squares",
returnParam: data,
});
@@ -165,7 +165,7 @@ export async function updatePublishSquares(
const data = (await response.json()) as PublishSquaresSettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-发布广场编辑",
optDetail: "CM助手-全量-系统设置-发布广场编辑",
url: "/api/system-settings/publish-squares",
reqParam: body,
returnParam: data,
@@ -203,7 +203,7 @@ export async function loadAppearanceSettings(): Promise<AppearanceSettings> {
const data = (await response.json()) as AppearanceSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-外观查看",
optDetail: "CM助手-全量-系统设置-外观查看",
url: "/api/system-settings/appearance",
returnParam: data,
});
@@ -230,7 +230,7 @@ export async function updateAppearanceSettings(
const data = (await response.json()) as AppearanceSettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-外观编辑",
optDetail: "CM助手-全量-系统设置-外观编辑",
url: "/api/system-settings/appearance",
reqParam: body,
returnParam: data,
@@ -250,7 +250,7 @@ export async function loadCitationDisplaySettings(): Promise<CitationDisplaySett
const data = (await response.json()) as CitationDisplaySettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-引用展示查看",
optDetail: "CM助手-全量-系统设置-引用展示查看",
url: "/api/system-settings/citation-display",
returnParam: data,
});
@@ -267,7 +267,7 @@ export async function loadLeaderboardSettings(): Promise<LeaderboardSettings> {
const data = (await response.json()) as LeaderboardSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-排行榜查看",
optDetail: "CM助手-全量-系统设置-排行榜查看",
url: "/api/system-settings/leaderboard",
returnParam: data,
});
@@ -294,7 +294,7 @@ export async function updateLeaderboardSettings(
const data = (await response.json()) as LeaderboardSettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-排行榜编辑",
optDetail: "CM助手-全量-系统设置-排行榜编辑",
url: "/api/system-settings/leaderboard",
reqParam: body,
returnParam: data,
@@ -322,7 +322,7 @@ export async function updateCitationDisplaySettings(
const data = (await response.json()) as CitationDisplaySettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-引用展示编辑",
optDetail: "CM助手-全量-系统设置-引用展示编辑",
url: "/api/system-settings/citation-display",
reqParam: body,
returnParam: data,
@@ -354,7 +354,7 @@ export async function loadSkillCompressionSettings(): Promise<SkillCompressionSe
const data = (await response.json()) as SkillCompressionSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-技能压缩查看",
optDetail: "CM助手-全量-系统设置-技能压缩查看",
url: "/api/system-settings/skill-compression",
returnParam: data,
});
@@ -381,7 +381,7 @@ export async function updateSkillCompressionSettings(
const data = (await response.json()) as SkillCompressionSettings;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-技能压缩编辑",
optDetail: "CM助手-全量-系统设置-技能压缩编辑",
url: "/api/system-settings/skill-compression",
reqParam: body,
returnParam: data,
@@ -407,7 +407,7 @@ export async function loadAgentModuleConfig(
const data = (await response.json()) as AgentModuleConfig;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-智能体模块查看",
optDetail: "CM助手-全量-系统设置-智能体模块查看",
url: `/api/system-settings/agent-modules/${key}`,
reqParam: { key },
returnParam: data,
@@ -436,7 +436,7 @@ export async function updateAgentModuleConfig(
const data = (await response.json()) as AgentModuleConfig;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-智能体模块编辑",
optDetail: "CM助手-全量-系统设置-智能体模块编辑",
url: `/api/system-settings/agent-modules/${key}`,
reqParam: { key, tag_ids: tagIds },
returnParam: data,
@@ -460,7 +460,7 @@ export async function loadLogSystemSettings(): Promise<LogSystemSettings> {
const data = (await response.json()) as LogSystemSettings;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-系统设置-日志系统查看",
optDetail: "CM助手-全量-系统设置-日志系统查看",
url: "/api/system-settings/log-system",
returnParam: data,
});
@@ -487,7 +487,7 @@ export async function updatePrivateSquareSettings(
const data = (await response.json()) as PrivateSquareStatus;
writeYLog({
optType: OptType.edit,
optDetail: "B1-CM助手-系统设置-私密广场编辑",
optDetail: "CM助手-全量-系统设置-私密广场编辑",
url: "/api/system-settings/private-square",
// omit `password` (secret) from the logged request params
reqParam: { enabled: body.enabled, password_set: body.password != null },