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

+5 -5
View File
@@ -69,7 +69,7 @@ export async function createShare(
const result = (await response.json()) as ThreadShare;
writeYLog({
optType: OptType.create,
optDetail: "B1-CM助手-会话分享-创建分享",
optDetail: "CM助手-全量-会话分享-创建分享",
url: baseUrl(),
reqParam: { thread_id: threadId, mode },
returnParam: { share_code: result.share_code, mode: result.mode },
@@ -84,7 +84,7 @@ export async function listShares(): Promise<ThreadShare[]> {
const json = (await response.json()) as { shares: ThreadShare[] };
writeYLog({
optType: OptType.search,
optDetail: "B1-CM助手-会话分享-查询分享列表",
optDetail: "CM助手-全量-会话分享-查询分享列表",
url: baseUrl(),
returnParam: { count: json.shares.length },
});
@@ -98,7 +98,7 @@ export async function revokeShare(shareCode: string): Promise<void> {
if (!response.ok) throw await parseError(response, "撤销分享失败");
writeYLog({
optType: OptType.delete,
optDetail: "B1-CM助手-会话分享-撤销分享",
optDetail: "CM助手-全量-会话分享-撤销分享",
url,
reqParam: { shareCode },
});
@@ -112,7 +112,7 @@ export async function previewShare(shareCode: string): Promise<SharePreview> {
const result = (await response.json()) as SharePreview;
writeYLog({
optType: OptType.view,
optDetail: "B1-CM助手-会话分享-预览分享",
optDetail: "CM助手-全量-会话分享-预览分享",
url,
reqParam: { shareCode },
});
@@ -127,7 +127,7 @@ export async function importShare(shareCode: string): Promise<ImportResult> {
const result = (await response.json()) as ImportResult;
writeYLog({
optType: OptType.import,
optDetail: "B1-CM助手-会话分享-导入分享",
optDetail: "CM助手-全量-会话分享-导入分享",
url,
reqParam: { shareCode },
returnParam: result,