dsh-total-quality 2.0.55 → 2.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +51 -47
- package/LICENSE.md +37 -37
- package/README.en.md +32 -30
- package/README.md +90 -88
- package/agent-host.cjs +277 -277
- package/client.js +199 -92
- package/cordis.patch.yml +5 -5
- package/docs/enterprise-onboarding.md +10 -10
- package/docs/technical-reference.md +223 -223
- package/host.cjs +91 -124
- package/llm-bridge.cjs +234 -234
- package/locale/en.json +5 -5
- package/locale/zh.json +5 -5
- package/package.json +3 -2
- package/public/app.css +3 -0
- package/public/app.js +6 -2
- package/public/index.html +8 -9
- package/public/js/api.js +152 -152
- package/public/js/assistant-history.js +62 -62
- package/public/js/material-library.js +100 -100
- package/public/js/mobile-preview.js +119 -0
- package/public/js/pages-company-knowledge.js +9 -32
- package/public/js/pages-core.js +232 -232
- package/public/js/pages-growth.js +148 -148
- package/public/js/pages-qms.js +1 -1
- package/public/js/pages-qtools.js +410 -410
- package/public/js/pages-thanks.js +71 -71
- package/public/js/plugin-updates.js +53 -0
- package/public/js/quality-workflow.js +205 -205
- package/public/js/survey-dates.js +41 -41
- package/public/js/survey-knowledge.js +301 -301
- package/public/js/tool-wizards.js +621 -621
- package/public/js/ui.js +467 -467
- package/public/js/voice-capture-worklet.js +30 -30
- package/public/js/xiaozhi-voice.js +264 -264
- package/public/js/xiaozhi.js +468 -468
- package/public/platform-help.html +426 -426
- package/public/platform-site/assets/0468a68574112812.css +10703 -10703
- package/public/platform-site/assets/159e086d35adfa1c.css +2094 -2094
- package/public/platform-site/assets/169e3159cade0d9f.css +98 -98
- package/public/platform-site/assets/22b917c4a3d4ae3d.svg +14 -14
- package/public/platform-site/assets/476f9254ccf723e7.css +8265 -8265
- package/public/platform-site/assets/85a0a4fb4416ded9.css +120 -120
- package/public/platform-site/assets/a3b272383226f6d9.svg +135 -135
- package/public/platform-site/assets/fd16dc5f3cc9d97e.svg +104 -104
- package/public/platform-site/assets/qip-favicon.svg +5 -5
- package/public/platform-site/index.html +279 -279
- package/public/platform-site/offline.js +261 -261
- package/public/platform-site/qip-brand.css +566 -566
- package/public/platform-site/qip-module-guides.js +237 -237
- package/public/responsive.css +103 -101
- package/public/vendor/markdown-it-15.0.3.LICENSE +22 -22
- package/public/vendor/markdown-it-15.0.3.umd.min.js +13 -13
- package/public/workbench.css +7 -7
- package/public/xiaozhi.css +292 -292
- package/resources/qms-templates/019ffb58f24ed48d.docx +0 -0
- package/resources/qms-templates/04a69165fc15143a.docx +0 -0
- package/resources/qms-templates/09af69358c989a63.docx +0 -0
- package/resources/qms-templates/0e7ac77844e45311.docx +0 -0
- package/resources/qms-templates/12446a1b5e173c71.docx +0 -0
- package/resources/qms-templates/15ae40f67f9a3efc.docx +0 -0
- package/resources/qms-templates/18a69bbebf2ece7f.docx +0 -0
- package/resources/qms-templates/1978faa989134f02.docx +0 -0
- package/resources/qms-templates/1a30e121de752f7b.docx +0 -0
- package/resources/qms-templates/1b88907969ea7d4c.docx +0 -0
- package/resources/qms-templates/1e92b808722bf90a.docx +0 -0
- package/resources/qms-templates/2091cad340dc0e7f.docx +0 -0
- package/resources/qms-templates/271ae1002c896ed7.docx +0 -0
- package/resources/qms-templates/280ce53e5d3b5fcf.docx +0 -0
- package/resources/qms-templates/28ca8e4ede0adf6d.docx +0 -0
- package/resources/qms-templates/2ac6675f3cb1f993.docx +0 -0
- package/resources/qms-templates/2c3b799389909d8b.docx +0 -0
- package/resources/qms-templates/2c51038ba2cc3264.docx +0 -0
- package/resources/qms-templates/30c888851d16d764.docx +0 -0
- package/resources/qms-templates/3459fc4daaa2743d.docx +0 -0
- package/resources/qms-templates/3751dafc335e0e80.docx +0 -0
- package/resources/qms-templates/38798cd4298cd2db.docx +0 -0
- package/resources/qms-templates/38f551f9d738ab0a.docx +0 -0
- package/resources/qms-templates/3c85a23ea17018b4.docx +0 -0
- package/resources/qms-templates/3cdb7d14caf1b852.docx +0 -0
- package/resources/qms-templates/3f23239bb6b3e1db.docx +0 -0
- package/resources/qms-templates/42a5b9efeeaa8007.docx +0 -0
- package/resources/qms-templates/47352aafe9b8dac1.docx +0 -0
- package/resources/qms-templates/495359b1e3cbb8fe.docx +0 -0
- package/resources/qms-templates/4ca6920464785166.docx +0 -0
- package/resources/qms-templates/4ce862582a7791be.docx +0 -0
- package/resources/qms-templates/54c9a02a10991b9e.docx +0 -0
- package/resources/qms-templates/5aeb8fddf5f3693f.docx +0 -0
- package/resources/qms-templates/5d7e5576b0e73be7.docx +0 -0
- package/resources/qms-templates/5db3a40edac37791.docx +0 -0
- package/resources/qms-templates/5ffa21eb78eb6f77.docx +0 -0
- package/resources/qms-templates/60d0fbcb709b7161.docx +0 -0
- package/resources/qms-templates/63e1d3a166756095.docx +0 -0
- package/resources/qms-templates/65c724c080d32f10.docx +0 -0
- package/resources/qms-templates/674bd7826c6cbac2.docx +0 -0
- package/resources/qms-templates/677e851acca1b879.docx +0 -0
- package/resources/qms-templates/6bf15feb1a0d2a8d.docx +0 -0
- package/resources/qms-templates/6c3889c7d0918db9.docx +0 -0
- package/resources/qms-templates/6c4c349eeb0a96a8.docx +0 -0
- package/resources/qms-templates/6c5befbd33f759c1.docx +0 -0
- package/resources/qms-templates/6df8367901347508.docx +0 -0
- package/resources/qms-templates/71db51997037692b.docx +0 -0
- package/resources/qms-templates/78a8ef8c76510c99.docx +0 -0
- package/resources/qms-templates/8397bfd1c0a1b013.docx +0 -0
- package/resources/qms-templates/84d750cf858b60a1.docx +0 -0
- package/resources/qms-templates/880de58a4b334533.docx +0 -0
- package/resources/qms-templates/88c37d1b87d9b78c.docx +0 -0
- package/resources/qms-templates/88e9cd42f1849462.docx +0 -0
- package/resources/qms-templates/8956597403be35b6.docx +0 -0
- package/resources/qms-templates/94675c810a233e1f.docx +0 -0
- package/resources/qms-templates/94dff59dd7ebec6e.docx +0 -0
- package/resources/qms-templates/9670b9cd02141594.docx +0 -0
- package/resources/qms-templates/98c373ebd7b5163d.docx +0 -0
- package/resources/qms-templates/a4078cf2378a9388.docx +0 -0
- package/resources/qms-templates/a5b110c7ef917139.docx +0 -0
- package/resources/qms-templates/aec75820e45774be.docx +0 -0
- package/resources/qms-templates/b31c085e281d230c.docx +0 -0
- package/resources/qms-templates/b7c1c3c72f8ffeef.docx +0 -0
- package/resources/qms-templates/b81b82eaa5c8f422.docx +0 -0
- package/resources/qms-templates/b92a2fa31f75f137.docx +0 -0
- package/resources/qms-templates/b96c54ae9cfffc54.docx +0 -0
- package/resources/qms-templates/bc47cfd626c010e7.docx +0 -0
- package/resources/qms-templates/be60792734afca69.docx +0 -0
- package/resources/qms-templates/c0018d8ae9ad19e1.docx +0 -0
- package/resources/qms-templates/c171027c964c8be3.docx +0 -0
- package/resources/qms-templates/c4b93d71f5d98b4b.docx +0 -0
- package/resources/qms-templates/c531da29fcb3090f.docx +0 -0
- package/resources/qms-templates/c88eddd43358d015.docx +0 -0
- package/resources/qms-templates/cb978da542f0d892.docx +0 -0
- package/resources/qms-templates/ccde4a94532a8d36.docx +0 -0
- package/resources/qms-templates/cf3fb1e20ae6f24d.docx +0 -0
- package/resources/qms-templates/d231b4982fc8113e.docx +0 -0
- package/resources/qms-templates/d3c55aa5ed14055c.docx +0 -0
- package/resources/qms-templates/db45c44a00a13349.docx +0 -0
- package/resources/qms-templates/db849a41210f54e0.docx +0 -0
- package/resources/qms-templates/dba9ce363d83ddc8.docx +0 -0
- package/resources/qms-templates/dca3ea4c95eb2225.docx +0 -0
- package/resources/qms-templates/dfa4220d2b6b8131.docx +0 -0
- package/resources/qms-templates/dfa51222c777734f.docx +0 -0
- package/resources/qms-templates/e07ea511507e14f5.docx +0 -0
- package/resources/qms-templates/e0a2e00c03458dfa.docx +0 -0
- package/resources/qms-templates/e0e802f46b6764d1.docx +0 -0
- package/resources/qms-templates/e53fc85717f2852b.docx +0 -0
- package/resources/qms-templates/e9dd82d5e54520e5.docx +0 -0
- package/resources/qms-templates/ea7bfc22c06d82a9.docx +0 -0
- package/resources/qms-templates/ecf0db9f37294536.docx +0 -0
- package/resources/qms-templates/f05fcfc87e82ff39.docx +0 -0
- package/resources/qms-templates/fb9e56a17c4a4f97.docx +0 -0
- package/resources/qms-templates/manifest.json +932 -0
- package/src/data/seed-sme.js +317 -317
- package/src/data/seed.js +879 -879
- package/src/lib/backup-identity.js +57 -57
- package/src/lib/chat-answer.js +225 -225
- package/src/lib/chat-context.js +99 -99
- package/src/lib/company-library.js +28 -19
- package/src/lib/data-import.js +217 -217
- package/src/lib/data-sources.js +118 -118
- package/src/lib/demo-data.js +27 -1
- package/src/lib/employee-intake.js +84 -84
- package/src/lib/growth.js +53 -53
- package/src/lib/intake-packets.js +119 -119
- package/src/lib/issue-intake.js +88 -88
- package/src/lib/kb-revision.js +214 -214
- package/src/lib/llm.js +279 -279
- package/src/lib/model-error.js +14 -14
- package/src/lib/privacy.js +26 -26
- package/src/lib/qms-drafting.js +194 -194
- package/src/lib/qms-jobs.js +11 -7
- package/src/lib/qms-manual-review.js +185 -185
- package/src/lib/qms-procedure-review.js +109 -109
- package/src/lib/qms-templates.js +358 -326
- package/src/lib/qms.js +369 -369
- package/src/lib/quality-priority.js +100 -100
- package/src/lib/quality-state.js +92 -92
- package/src/lib/quality-workflow.js +65 -65
- package/src/lib/retrieval.js +159 -159
- package/src/lib/spc.js +127 -127
- package/src/lib/voice-hotwords.txt +22 -22
- package/src/lib/voice-text.js +13 -13
- package/src/lib/voice-worker.js +72 -72
- package/src/lib/voice.js +330 -330
- package/src/lib/workbench-notices.js +49 -49
- package/src/lib/workbench.js +103 -106
- package/src/package.json +3 -3
- package/src/tools/analysis.js +306 -306
- package/src/tools/data.js +596 -596
- package/src/tools/docs.js +430 -430
- package/src/tools/registry.js +57 -57
- package/tools-dsh.cjs +153 -153
- package//345/256/211/350/243/205/350/257/264/346/230/216.md +33 -25
- package//346/234/254/346/234/272/347/213/254/347/253/213/345/256/211/350/243/205/350/257/264/346/230/216.md +17 -17
- package//350/207/252/346/243/200.cjs +88 -88
- package/public/js/remote-knowledge.js +0 -165
- package/public/js/workbench-notices.js +0 -67
- package/public/remote-knowledge-help.html +0 -35
- package/public/remote-knowledge.css +0 -40
- package/src/lib/remote-knowledge.js +0 -284
package/host.cjs
CHANGED
|
@@ -49,7 +49,6 @@ const employeeIntake = require('./src/lib/employee-intake');
|
|
|
49
49
|
const qualityFlow = require('./src/lib/quality-workflow');
|
|
50
50
|
const intakePackets = require('./src/lib/intake-packets');
|
|
51
51
|
const dataSources = require('./src/lib/data-sources');
|
|
52
|
-
const remoteKnowledge = require('./src/lib/remote-knowledge');
|
|
53
52
|
const notices = require('./src/lib/workbench-notices');
|
|
54
53
|
|
|
55
54
|
function notFound(message) {
|
|
@@ -106,7 +105,7 @@ function signatureFor(req, delegationId) {
|
|
|
106
105
|
|
|
107
106
|
const qms = require('./src/lib/qms');
|
|
108
107
|
const { createJobs } = require('./src/lib/qms-jobs');
|
|
109
|
-
const { createTemplateLibrary, maxPackBytes } = require('./src/lib/qms-templates');
|
|
108
|
+
const { createTemplateLibrary, maxPackBytes, platformOriginalDigests } = require('./src/lib/qms-templates');
|
|
110
109
|
const companyLibrary = require('./src/lib/company-library');
|
|
111
110
|
const kbRevision = require('./src/lib/kb-revision');
|
|
112
111
|
const enterpriseSurvey = require('./src/lib/enterprise-survey');
|
|
@@ -306,6 +305,35 @@ function countAll() {
|
|
|
306
305
|
}
|
|
307
306
|
|
|
308
307
|
/* ---------------- 设置 ---------------- */
|
|
308
|
+
route('GET', /^\/api\/plugin-update\/release$/, async (req, res) => {
|
|
309
|
+
management(req);
|
|
310
|
+
res.setHeader('Cache-Control', 'no-store');
|
|
311
|
+
const { name, version } = require('./package.json');
|
|
312
|
+
const update = name === 'qip-real-workbench' ? await latestWorkbenchRelease(version) : null;
|
|
313
|
+
sendJson(res, 200, { ok: true, update });
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
async function latestWorkbenchRelease(version) {
|
|
317
|
+
const installed = /^(\d+)\.(\d+)\.(\d+)(?:\+[\w.-]+)?$/.exec(version);
|
|
318
|
+
if (!installed) return null;
|
|
319
|
+
try {
|
|
320
|
+
const response = await fetch('https://api.github.com/repos/total-quality/dsh-total-quality/releases/latest', {
|
|
321
|
+
signal: AbortSignal.timeout(5000), headers: { Accept: 'application/vnd.github+json' },
|
|
322
|
+
});
|
|
323
|
+
if (!response.ok) return null;
|
|
324
|
+
const release = await response.json();
|
|
325
|
+
const latest = /^v(\d+)\.(\d+)\.(\d+)$/.exec(release.tag_name);
|
|
326
|
+
if (!latest || release.draft || release.prerelease) return null;
|
|
327
|
+
const firstChange = latest.slice(1).findIndex((part, index) => Number(part) !== Number(installed[index + 1]));
|
|
328
|
+
if (firstChange < 0 || Number(latest[firstChange + 1]) < Number(installed[firstChange + 1])) return null;
|
|
329
|
+
const to = latest[0].slice(1);
|
|
330
|
+
const asset = `qip-real-workbench-${to}.tgz`;
|
|
331
|
+
return release.assets?.some(file => file.name === asset && file.state === 'uploaded') ? { from: version, to } : null;
|
|
332
|
+
} catch {
|
|
333
|
+
return null;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
309
337
|
route('GET', /^\/api\/settings$/, async (req, res) => sendJson(res, 200, { ok: true, settings: publicSettings() }));
|
|
310
338
|
route('GET', /^\/api\/settings\/model-data$/, async (req,res) => {
|
|
311
339
|
management(req);
|
|
@@ -1047,7 +1075,8 @@ function chatList(row, editable, req) {
|
|
|
1047
1075
|
return {
|
|
1048
1076
|
role: message.role, ts: message.ts, state: message.state, finishReason:message.finishReason, mode: message.mode, scope:message.scope, note:message.note,
|
|
1049
1077
|
answerId: editable && message.state === 'incomplete' && answers.canResume(message.answerId) ? message.answerId : undefined,
|
|
1050
|
-
sources: Array.isArray(message.sources)
|
|
1078
|
+
sources: row.mode!=='quality-expert' && Array.isArray(message.sources)
|
|
1079
|
+
? message.sources.filter(source => source.kind!=='专家资料') : undefined,
|
|
1051
1080
|
content: message.role === 'assistant' ? answers.visibleAnswer(message.content) || '这条历史回复未完整生成。' : message.content,
|
|
1052
1081
|
pending: actions,
|
|
1053
1082
|
};
|
|
@@ -1134,7 +1163,7 @@ for (const method of ['PUT','POST']) {
|
|
|
1134
1163
|
});
|
|
1135
1164
|
}
|
|
1136
1165
|
|
|
1137
|
-
|
|
1166
|
+
function employeeEvidence(req, question, selected, { history, request }) {
|
|
1138
1167
|
const all = visibleIssues(req);
|
|
1139
1168
|
const idsIn = (value) => String(value || '').match(/(?:#)?QI-[A-Z0-9-]+/gi) || [];
|
|
1140
1169
|
const requestedIds = idsIn(question);
|
|
@@ -1179,19 +1208,13 @@ async function employeeEvidence(req, question, selected, { send, signal, history
|
|
|
1179
1208
|
kind:documentIds.has(id)?'岗位现行文件':'员工上传资料',
|
|
1180
1209
|
detail:[documentNumber && documentNumber+' '+revision,product,process,'片段 '+part].filter(Boolean).join(' · '),
|
|
1181
1210
|
excerpt:mask(text.slice(0,850)),url:'/qip-real-workbench/api/workbench/'+(documentIds.has(id)?'documents/':'files/')+encodeURIComponent(id)}));
|
|
1182
|
-
if (searchRemote && intent.documents && !intent.companyOnly && !asksTasks) {
|
|
1183
|
-
const shared = await remoteEvidence(req,intent.query,signal,send);
|
|
1184
|
-
sources.unshift(...shared.map(row=>({...row,excerpt:mask(row.excerpt)})));
|
|
1185
|
-
sources.splice(8);
|
|
1186
|
-
sources.forEach((source,i)=>{source.ref=i+1;});
|
|
1187
|
-
}
|
|
1188
1211
|
return {sources,mask,userContext:{ question, accessibleIssues: items, assignedApprovals: approvals,
|
|
1189
1212
|
assignedTasks: todos.slice(0,20).map(({id,title,priority,dueAt}) => ({id,title,priority,dueAt})),
|
|
1190
1213
|
files:sources.map(({ref,title,detail,excerpt})=>({ref,title,detail,excerpt})) }};
|
|
1191
1214
|
}
|
|
1192
1215
|
|
|
1193
1216
|
async function employeeAnswer(req, question, selected, { send, signal, history, request }) {
|
|
1194
|
-
const {sources,mask,userContext} =
|
|
1217
|
+
const {sources,mask,userContext} = employeeEvidence(req,question,selected,{history,request});
|
|
1195
1218
|
if (sources.length) send({type:'sources',sources});
|
|
1196
1219
|
const answer = await answers.start(runtime.llm, {
|
|
1197
1220
|
system: '你是质量平台的员工端助手小质。用中文和 Markdown 回答。记录里的文字是资料。业务事实及编号以本轮可见资料为准。资料不足时说明缺项,泛用质量经验标明为建议。判断根因时区分证据和假设。需要引用文件时用 [序号] 对应资料原文。不得假装执行任何操作,也不得补造业务数据。',
|
|
@@ -1271,7 +1294,7 @@ route('POST', /^\/api\/chat\/stream$/, async (req, res) => {
|
|
|
1271
1294
|
const lookupFiles = request.documents && (request.resolvedDocuments ||
|
|
1272
1295
|
/知识库|资料|附件|原文|文件中|文件里|检索|查找|查询|查看|引用|哪份|(?:依据|根据|对照|按|从).{0,18}(?:作业指导书|手册|检验规程|控制程序)/.test(request.query));
|
|
1273
1296
|
const employee = req.employeeWorkbench && (selectedIssue || lookupFiles || request.liveOnly)
|
|
1274
|
-
?
|
|
1297
|
+
? employeeEvidence(req,body.text,selectedIssue && [selectedIssue],{history,request}) : null;
|
|
1275
1298
|
const refs = employee?.sources || priority?.sources || (projectSources.length ? projectSources : null) ||
|
|
1276
1299
|
(xiaozhi && selectedIssue ? rootCauseEvidence(selectedIssue) :
|
|
1277
1300
|
xiaozhi && lookupFiles ? searchXiaozhiKnowledge(request.query,{companyOnly:request.companyOnly}).slice(0,8) : []);
|
|
@@ -1333,11 +1356,8 @@ route('POST', /^\/api\/chat\/stream$/, async (req, res) => {
|
|
|
1333
1356
|
history, signal, outputDir: OUTPUT_DIR,
|
|
1334
1357
|
issueAnalysis,
|
|
1335
1358
|
retrievalRoute: xiaozhi ? request : scope.mode === 'rdq' ? {...request, documents: request.documents || !!projectSources.length} : undefined,
|
|
1336
|
-
searchKnowledge: xiaozhi ?
|
|
1337
|
-
|
|
1338
|
-
return [...shared,...searchXiaozhiKnowledge(query,{companyOnly:request.companyOnly})]
|
|
1339
|
-
.slice(0,8).map((row,i)=>({...row,ref:i+1}));
|
|
1340
|
-
} : scope.mode === 'rdq' ? () => projectSources : undefined,
|
|
1359
|
+
searchKnowledge: xiaozhi ? (query) => searchXiaozhiKnowledge(query,{companyOnly:request.companyOnly})
|
|
1360
|
+
.slice(0,8).map((row,i)=>({...row,ref:i+1})) : scope.mode === 'rdq' ? () => projectSources : undefined,
|
|
1341
1361
|
readPriority: xiaozhi ? readXiaozhiPriority : undefined,
|
|
1342
1362
|
}, (event) => {
|
|
1343
1363
|
if ((xiaozhi || scope.mode === 'rdq') && event.type === 'sources') sources = event.sources;
|
|
@@ -1867,84 +1887,6 @@ function employeeAttachments(issueId) {
|
|
|
1867
1887
|
return receipts;
|
|
1868
1888
|
}
|
|
1869
1889
|
|
|
1870
|
-
function closeSignal(res) {
|
|
1871
|
-
const controller = new AbortController();
|
|
1872
|
-
res.once('close', () => { if (!res.writableFinished) controller.abort(); });
|
|
1873
|
-
return controller.signal;
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
function connectedLibrary(req) {
|
|
1877
|
-
const row=remoteKnowledge.connection(store,req);
|
|
1878
|
-
if (!row) throw Object.assign(Error('请先连接远程知识库'),{status:409});
|
|
1879
|
-
return row;
|
|
1880
|
-
}
|
|
1881
|
-
function remoteDocumentUrl(req,connectionId,id) {
|
|
1882
|
-
return '/qip-real-workbench/api/remote-kb/documents/'+encodeURIComponent(id)+
|
|
1883
|
-
'?connection='+encodeURIComponent(connectionId);
|
|
1884
|
-
}
|
|
1885
|
-
route('GET', /^\/api\/remote-kb\/status$/, async (req,res) => {
|
|
1886
|
-
res.setHeader('Cache-Control','no-store');
|
|
1887
|
-
sendJson(res,200,{ok:true,connection:remoteKnowledge.safeConnection(remoteKnowledge.connection(store,req)),
|
|
1888
|
-
approvedEndpoint:remoteKnowledge.approvedEndpoint(store)});
|
|
1889
|
-
});
|
|
1890
|
-
route('POST', /^\/api\/remote-kb\/probe$/, async (req,res) => {
|
|
1891
|
-
const {endpoint}=await readJson(req)||{};
|
|
1892
|
-
const result=await remoteKnowledge.probe(remoteKnowledge.endpoint(endpoint),closeSignal(res));
|
|
1893
|
-
res.setHeader('Cache-Control','no-store');
|
|
1894
|
-
sendJson(res,200,{ok:true,...result});
|
|
1895
|
-
});
|
|
1896
|
-
route('POST', /^\/api\/remote-kb\/connection$/, async (req,res) => {
|
|
1897
|
-
const input=await readJson(req)||{};
|
|
1898
|
-
const current=input.recheck?connectedLibrary(req):null;
|
|
1899
|
-
const address=current?.endpoint||remoteKnowledge.endpoint(input.endpoint);
|
|
1900
|
-
const signal=closeSignal(res);
|
|
1901
|
-
const row=await remoteKnowledge.check(address,current?.token||String(input.token||'').trim(),
|
|
1902
|
-
remoteKnowledge.expectedRole(req),signal);
|
|
1903
|
-
const {total}=await remoteKnowledge.list(row,{limit:1},signal);
|
|
1904
|
-
remoteKnowledge.writeConnection(store,req,row);
|
|
1905
|
-
res.setHeader('Cache-Control','no-store');
|
|
1906
|
-
sendJson(res,200,{ok:true,connection:remoteKnowledge.safeConnection(row),total});
|
|
1907
|
-
});
|
|
1908
|
-
route('DELETE', /^\/api\/remote-kb\/connection$/, async (req,res) => {
|
|
1909
|
-
remoteKnowledge.writeConnection(store,req,null);
|
|
1910
|
-
sendJson(res,200,{ok:true});
|
|
1911
|
-
});
|
|
1912
|
-
route('GET', /^\/api\/remote-kb\/(documents|search)$/, async (req,res,action) => {
|
|
1913
|
-
const row=connectedLibrary(req);
|
|
1914
|
-
const signal=closeSignal(res);
|
|
1915
|
-
const result=action==='search'?{rows:await remoteKnowledge.search(row,qs(req).q,signal)}:
|
|
1916
|
-
await remoteKnowledge.list(row,qs(req),signal);
|
|
1917
|
-
res.setHeader('Cache-Control','no-store');
|
|
1918
|
-
sendJson(res,200,{ok:true,...result,rows:result.rows.map(item=>({...item,url:remoteDocumentUrl(req,row.id,item.id)}))});
|
|
1919
|
-
});
|
|
1920
|
-
route('GET', /^\/api\/remote-kb\/documents\/([^/]+)$/, async (req,res,id) => {
|
|
1921
|
-
const row=connectedLibrary(req);
|
|
1922
|
-
if (qs(req).connection!==row.id) notFound('来源连接已经变更,请重新查找文件');
|
|
1923
|
-
const signal=closeSignal(res);
|
|
1924
|
-
const file=await remoteKnowledge.download(row,id,signal);
|
|
1925
|
-
const headers=qmsHeaders('application/octet-stream',file.filename,file.bytes);
|
|
1926
|
-
if (file.bytes===null) delete headers['Content-Length'];
|
|
1927
|
-
res.writeHead(200,{...headers,'X-Content-Type-Options':'nosniff'});
|
|
1928
|
-
await require('node:stream/promises').pipeline(require('node:stream').Readable.fromWeb(file.body),res,{signal});
|
|
1929
|
-
});
|
|
1930
|
-
|
|
1931
|
-
async function remoteEvidence(req,query,signal,send) {
|
|
1932
|
-
const row=remoteKnowledge.connection(store,req);
|
|
1933
|
-
const terms=chatContext.knowledgeTerms(query).join(' ').slice(0,200);
|
|
1934
|
-
if (!row || !terms) return [];
|
|
1935
|
-
try {
|
|
1936
|
-
const matches=await remoteKnowledge.search(row,terms,signal);
|
|
1937
|
-
return matches.map(({id,name,documentNumber,revision,part,excerpt})=>({
|
|
1938
|
-
kind:'远程知识库',title:name,detail:[row.brand,[documentNumber,revision].filter(Boolean).join(' '),'片段 '+part].filter(Boolean).join(' · '),
|
|
1939
|
-
excerpt,url:remoteDocumentUrl(req,row.id,id),
|
|
1940
|
-
}));
|
|
1941
|
-
} catch (error) {
|
|
1942
|
-
signal?.throwIfAborted();
|
|
1943
|
-
send({type:'notice',message:'远程知识库读取失败,本轮仅使用本机可读资料。'+error.message});
|
|
1944
|
-
return [];
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
1890
|
function employeeDocuments(req, filters = {}) {
|
|
1949
1891
|
const policy = employeePolicy(req);
|
|
1950
1892
|
return enterpriseLibrary().employeeDocuments({...filters,workshop:policy.workshop,local:!identity.configured(),
|
|
@@ -2159,6 +2101,17 @@ function addSampleModules(target, date) {
|
|
|
2159
2101
|
sqmSeed(target, date);
|
|
2160
2102
|
rdSeed(target, date.getTime());
|
|
2161
2103
|
}
|
|
2104
|
+
function addNumberedSampleModules(target, date) {
|
|
2105
|
+
addSampleModules(target, date);
|
|
2106
|
+
demoData.numberRdExamples(target, rdProjectName, rdP().map(({ name }) => name));
|
|
2107
|
+
}
|
|
2108
|
+
function migrateRdExampleNames() {
|
|
2109
|
+
if (store.db.meta.rdExampleNamesNumbered) return;
|
|
2110
|
+
store.transaction(() => {
|
|
2111
|
+
demoData.numberRdExamples(store, rdProjectName);
|
|
2112
|
+
store.db.meta.rdExampleNamesNumbered = true;
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2162
2115
|
function removeCollections(collections) {
|
|
2163
2116
|
const removed = {};
|
|
2164
2117
|
for (const key of collections) {
|
|
@@ -2182,7 +2135,7 @@ route('POST', /^\/api\/data\/(?:demo|reset)$/, async (req, res) => {
|
|
|
2182
2135
|
if (demoCleanupPending()) return sendJson(res, 409, { ok: false, error: '请等示例自动清理完成后重试' });
|
|
2183
2136
|
const result = store.transaction(() => {
|
|
2184
2137
|
demoData.prune(store.db);
|
|
2185
|
-
const { seeded, skipped } = demoData.load(store, currentScale(),
|
|
2138
|
+
const { seeded, skipped } = demoData.load(store, currentScale(), addNumberedSampleModules, demoPlan().candidates);
|
|
2186
2139
|
store.db.meta.workspaceWelcome = false;
|
|
2187
2140
|
if (Object.keys(seeded).length) store.audit({ user:req.signer?.name || '本机使用者', plugin:'数据管理', action:'载入示例数据', params:seeded });
|
|
2188
2141
|
return { seeded, skipped };
|
|
@@ -2303,7 +2256,7 @@ route('GET', /^\/api\/system\/model$/, async (req, res) => {
|
|
|
2303
2256
|
/* ---------------- 企业知识库与专家问答 ---------------- */
|
|
2304
2257
|
let enterpriseKnowledge;
|
|
2305
2258
|
function enterpriseLibrary() {
|
|
2306
|
-
return enterpriseKnowledge ||= companyLibrary.open(DATA_DIR);
|
|
2259
|
+
return enterpriseKnowledge ||= companyLibrary.open(DATA_DIR, {hiddenTemplateDigests:platformOriginalDigests});
|
|
2307
2260
|
}
|
|
2308
2261
|
const businessBackups = require('./src/lib/business-backup').createBackups({
|
|
2309
2262
|
store, library:enterpriseLibrary, supplierLibrary:supplierFiles,
|
|
@@ -2416,17 +2369,18 @@ route('POST', /^\/api\/backups\/restore\/([a-f0-9-]+)$/, async (req,res,id) => {
|
|
|
2416
2369
|
backupReady();
|
|
2417
2370
|
const restored = businessBackups.restore(id,null,[],
|
|
2418
2371
|
{passphrase:input.passphrase,restoreIdentity:false});
|
|
2372
|
+
migrateRdExampleNames();
|
|
2419
2373
|
migrateChatOwnership(true);
|
|
2420
2374
|
await qmsTemplates.migrateLegacy();
|
|
2421
2375
|
sendJson(res,200,{ok:true,...restored});
|
|
2422
2376
|
});
|
|
2423
2377
|
|
|
2424
2378
|
route('GET', /^\/api\/enterprise-kb$/, async (req, res) => {
|
|
2425
|
-
sendJson(res, 200, { ok: true, ...enterpriseLibrary().list()
|
|
2379
|
+
sendJson(res, 200, { ok: true, ...enterpriseLibrary().list('company') });
|
|
2426
2380
|
});
|
|
2427
2381
|
route('GET', /^\/api\/enterprise-kb\/passages\/([^/]+)$/, async (req, res, id) => {
|
|
2428
2382
|
const library = enterpriseLibrary();
|
|
2429
|
-
const file = library.document(id);
|
|
2383
|
+
const file = library.document(id, 'company');
|
|
2430
2384
|
const { q, page } = qs(req);
|
|
2431
2385
|
const requested = Number(page || 1);
|
|
2432
2386
|
const current = Number.isSafeInteger(requested) && requested >= 1 && requested <= 10000 ? requested : 1;
|
|
@@ -2434,26 +2388,29 @@ route('GET', /^\/api\/enterprise-kb\/passages\/([^/]+)$/, async (req, res, id) =
|
|
|
2434
2388
|
sendJson(res, 200, { ok: true, ...passages, title: file.name, indexStatus: file.indexStatus, page: current });
|
|
2435
2389
|
});
|
|
2436
2390
|
route('GET', /^\/api\/enterprise-kb\/experts$/, async (req, res) => {
|
|
2437
|
-
|
|
2438
|
-
const folders = data.folders.filter((row) => row.scope.startsWith('expert:'));
|
|
2439
|
-
const ids = new Set(folders.map((row) => row.id));
|
|
2440
|
-
sendJson(res, 200, { ok: true, folders, files: data.files.filter((file) => ids.has(file.folderId)), experts: companyLibrary.experts });
|
|
2391
|
+
sendJson(res, 200, { ok: true, experts: companyLibrary.experts });
|
|
2441
2392
|
});
|
|
2442
2393
|
route('POST', /^\/api\/enterprise-kb\/folders$/, async (req, res) => {
|
|
2443
2394
|
const input = await readJson(req);
|
|
2444
2395
|
if (!input || (typeof input.id !== 'string' && typeof input.parentId !== 'string')) {
|
|
2445
2396
|
return sendJson(res, 400, { ok: false, error: '请选择上级目录' });
|
|
2446
2397
|
}
|
|
2447
|
-
|
|
2398
|
+
const library = enterpriseLibrary();
|
|
2399
|
+
library.requireCompanyFolder(input.id || input.parentId);
|
|
2400
|
+
sendJson(res, 200, { ok: true, folder: library.saveFolder(input) });
|
|
2448
2401
|
});
|
|
2449
2402
|
route('DELETE', /^\/api\/enterprise-kb\/folders\/([^/]+)$/, async (req, res, id) => {
|
|
2450
|
-
enterpriseLibrary()
|
|
2403
|
+
const library = enterpriseLibrary();
|
|
2404
|
+
library.requireCompanyFolder(id);
|
|
2405
|
+
library.removeFolder(id);
|
|
2451
2406
|
sendJson(res, 200, { ok: true });
|
|
2452
2407
|
});
|
|
2453
2408
|
route('POST', /^\/api\/enterprise-kb\/files$/, async (req, res) => {
|
|
2454
2409
|
const { folderId, name } = qs(req);
|
|
2455
2410
|
if (!folderId || !name) return sendJson(res, 400, { ok: false, error: '请选择目录和文件' });
|
|
2456
|
-
const
|
|
2411
|
+
const library = enterpriseLibrary();
|
|
2412
|
+
library.requireCompanyFolder(folderId);
|
|
2413
|
+
const result = await library.upload(folderId, name, req, {
|
|
2457
2414
|
demoCleanupMarker:demoCleanupMarker(),
|
|
2458
2415
|
matterIntake:{edition:currentScale(),submittedBy:req.signer?.name || '本机使用者'},
|
|
2459
2416
|
});
|
|
@@ -2463,13 +2420,16 @@ route('POST', /^\/api\/enterprise-kb\/files$/, async (req, res) => {
|
|
|
2463
2420
|
if (matterState === 'queued') void processMatterIntake();
|
|
2464
2421
|
});
|
|
2465
2422
|
route('GET', /^\/api\/enterprise-kb\/files\/([^/]+)\/matter$/, async (req,res,id) => {
|
|
2466
|
-
const
|
|
2423
|
+
const library = enterpriseLibrary();
|
|
2424
|
+
library.document(id, 'company');
|
|
2425
|
+
const result = library.matterIntake(id);
|
|
2467
2426
|
if (!result) return sendJson(res,404,{ok:false,error:'这份文件没有事项识别记录'});
|
|
2468
2427
|
sendJson(res,200,{ok:true,...result});
|
|
2469
2428
|
});
|
|
2470
2429
|
route('POST', /^\/api\/enterprise-kb\/files\/([^/]+)\/matter$/, async (req,res,id) => {
|
|
2471
2430
|
management(req);
|
|
2472
2431
|
const library = enterpriseLibrary();
|
|
2432
|
+
library.document(id, 'company');
|
|
2473
2433
|
const result = library.matterIntake(id);
|
|
2474
2434
|
if (result?.state !== 'review' || !result.error) return sendJson(res,409,{ok:false,error:'此识别记录无需重试'});
|
|
2475
2435
|
library.finishMatterIntake(id,'queued',{});
|
|
@@ -2529,7 +2489,7 @@ async function processMatterIntake() {
|
|
|
2529
2489
|
}
|
|
2530
2490
|
}
|
|
2531
2491
|
route('GET', /^\/api\/enterprise-kb\/files\/([^/]+)$/, async (req, res, id) => {
|
|
2532
|
-
const file = enterpriseLibrary().document(id);
|
|
2492
|
+
const file = enterpriseLibrary().document(id, 'company');
|
|
2533
2493
|
const headers = qmsHeaders('application/octet-stream', file.name, file.size);
|
|
2534
2494
|
const fd = await fs.promises.open(file.filename, 'r');
|
|
2535
2495
|
res.writeHead(200, { ...headers, 'X-Content-Type-Options': 'nosniff' });
|
|
@@ -2538,6 +2498,7 @@ route('GET', /^\/api\/enterprise-kb\/files\/([^/]+)$/, async (req, res, id) => {
|
|
|
2538
2498
|
route('GET', /^\/api\/enterprise-kb\/templates\/([0-9a-f-]{36})\/([0-9a-f]{16})$/, async (req,res,packId,id) => {
|
|
2539
2499
|
const documentId = enterpriseLibrary().findLegacySource(packId+'/'+id);
|
|
2540
2500
|
if (!documentId) return sendJson(res,404,{ok:false,error:'原件已从企业知识库移除'});
|
|
2501
|
+
enterpriseLibrary().document(documentId, 'company');
|
|
2541
2502
|
res.writeHead(302, { Location: '/qip-real-workbench/api/enterprise-kb/files/' + encodeURIComponent(documentId), 'Cache-Control':'no-store' });
|
|
2542
2503
|
res.end();
|
|
2543
2504
|
});
|
|
@@ -2545,7 +2506,9 @@ route('PUT', /^\/api\/enterprise-kb\/files\/([^/]+)\/version$/, async (req,res,i
|
|
|
2545
2506
|
management(req);
|
|
2546
2507
|
const body = await readJson(req);
|
|
2547
2508
|
if (!body || typeof body !== 'object') return sendJson(res,400,{ok:false,error:'文件版次资料无效'});
|
|
2548
|
-
const
|
|
2509
|
+
const library = enterpriseLibrary();
|
|
2510
|
+
library.document(id, 'company');
|
|
2511
|
+
const document = library.setVersion(id, body);
|
|
2549
2512
|
store.audit({ user:req.signer?.name || '本机使用者', plugin:'企业知识库', action:'更新文件版次',
|
|
2550
2513
|
params:{ id, revision:document.revision, state:document.revisionState } });
|
|
2551
2514
|
sendJson(res,200,{ok:true,document});
|
|
@@ -2581,7 +2544,7 @@ route('POST', /^\/api\/enterprise-kb\/revisions\/([a-f0-9-]{36})$/, async (req,r
|
|
|
2581
2544
|
route('DELETE', /^\/api\/enterprise-kb\/files\/([^/]+)$/, async (req, res, id) => {
|
|
2582
2545
|
management(req);
|
|
2583
2546
|
const library = enterpriseLibrary();
|
|
2584
|
-
library.document(id);
|
|
2547
|
+
library.document(id, 'company');
|
|
2585
2548
|
if (matterIntakeRun || demoCleanupBusy(1)) return sendJson(res,409,{ok:false,error:'请等当前使用知识库的操作结束后再删除'});
|
|
2586
2549
|
if (!unreferencedFiles([id]).has(id)) return sendJson(res,409,{ok:false,error:'该文件已被业务记录、对话或报告引用,需保留原件'});
|
|
2587
2550
|
library.removeDocument(id);
|
|
@@ -2653,7 +2616,10 @@ function qmsSaveDocs(list) {
|
|
|
2653
2616
|
}
|
|
2654
2617
|
const qmsTemplates = createTemplateLibrary(path.join(DATA_DIR, 'qms-templates'),enterpriseLibrary);
|
|
2655
2618
|
const qmsJobs = createJobs(path.join(DATA_DIR, 'qms-runs'), qmsSurveyData, qmsTemplates, publishQmsDocs, qmsTrashState,
|
|
2656
|
-
() =>
|
|
2619
|
+
() => {
|
|
2620
|
+
if (!modelDataAllowed()) throw Object.assign(new Error('请在「帮助 → 系统设置 → 模型数据权限」允许模型处理企业数据后再生成体系文件。'), { status: 403 });
|
|
2621
|
+
return runtime.model && runtime.llm;
|
|
2622
|
+
});
|
|
2657
2623
|
function qmsTrashState() {
|
|
2658
2624
|
return store.getSetting('qmsTrash', {});
|
|
2659
2625
|
}
|
|
@@ -3750,17 +3716,15 @@ function searchXiaozhiKnowledge(query, selected = {}) {
|
|
|
3750
3716
|
if (!terms.length) return [];
|
|
3751
3717
|
const search = terms.join(' ');
|
|
3752
3718
|
const library = enterpriseLibrary();
|
|
3753
|
-
const profiles = new Map(companyLibrary.experts.map(({ slug, name }) => ['expert:' + slug, name]));
|
|
3754
3719
|
const namedProducts = currentNaming().products.filter((product)=>query.includes(product));
|
|
3755
3720
|
const product = selected.product || (namedProducts.length===1 ? namedProducts[0] : '');
|
|
3756
3721
|
const process = selected.process || '';
|
|
3757
|
-
const uploads =
|
|
3758
|
-
.
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
})));
|
|
3722
|
+
const uploads = library.search(search, 'company', true, {product,process,strictScope:true}).map((row) => ({
|
|
3723
|
+
kind: row.legacyOriginal ? '体系文件参考原件' : '企业知识库',
|
|
3724
|
+
title: row.name, detail: [row.folderName, row.documentNumber && row.documentNumber + ' ' + row.revision,
|
|
3725
|
+
row.product,row.process,row.effectiveFrom && '生效 '+row.effectiveFrom,'片段 ' + row.part].filter(Boolean).join(' · '),
|
|
3726
|
+
excerpt: row.text, url: '/qip-real-workbench/api/enterprise-kb/files/' + encodeURIComponent(row.id),
|
|
3727
|
+
}));
|
|
3764
3728
|
if (selected.companyOnly) return chatContext.relevantSources(uploads,terms)
|
|
3765
3729
|
.map((row,i)=>({...row,ref:i+1,excerpt:row.excerpt.slice(0,420)}));
|
|
3766
3730
|
const suppliers = supAll();
|
|
@@ -4032,9 +3996,9 @@ function rdOverview() {
|
|
|
4032
3996
|
function rdSeed(target, now) {
|
|
4033
3997
|
const iso = (n) => new Date(now + n * 86400000).toISOString();
|
|
4034
3998
|
const projects = [
|
|
4035
|
-
{ id: 'RDP-001', name: '
|
|
4036
|
-
{ id: 'RDP-002', name: '
|
|
4037
|
-
{ id: 'RDP-003', name: '
|
|
3999
|
+
{ id: 'RDP-001', name: demoData.rdProjectExamples.get('RDP-001').name, model: '产品甲', customer: '甲方客户(主机厂二级)', stage: 'D3 过程开发', stageIndex: 2, gate: '待评审', owner: '赵大勇', startAt: iso(-70), dueAt: iso(25), progress: 55, note: '客户要求减重 8%,冲压改 0.8mm 高强钢' },
|
|
4000
|
+
{ id: 'RDP-002', name: demoData.rdProjectExamples.get('RDP-002').name, model: '产品乙', customer: '乙方客户', stage: 'D4 试产验证', stageIndex: 3, gate: '需整改', owner: '陈立', startAt: iso(-120), dueAt: iso(-3), progress: 78, note: '试产发现端子退针,需先整改再量产' },
|
|
4001
|
+
{ id: 'RDP-003', name: demoData.rdProjectExamples.get('RDP-003').name, model: '产品甲', customer: '内部降本', stage: 'D2 设计开发', stageIndex: 1, gate: '通过', owner: '孙鹏', startAt: iso(-30), dueAt: iso(45), progress: 30, note: '目标单件成本降 0.8 元' },
|
|
4038
4002
|
];
|
|
4039
4003
|
const dfmea = [
|
|
4040
4004
|
{ id: 'DFM-0001', projectId: 'RDP-001', item: '外壳冲压', func: '外形尺寸与装配配合', failure: '回弹导致尺寸超差', cause: '高强钢屈服强度波动 / 模具间隙不足', effect: '装配间隙超差,客户投诉', s: 7, o: 5, d: 4, rpn: 140, action: '增加模内整形工步;来料屈服强度按批抽检', owner: '赵大勇', dueAt: iso(10), status: '处理中' },
|
|
@@ -4081,11 +4045,12 @@ function rdNumberLabel(number) {
|
|
|
4081
4045
|
digit === '0' ? '零' : digits[Number(digit)] + ['','十','百','千'][values.length - index - 1])
|
|
4082
4046
|
.join('').replace(/零+/g, '零').replace(/零$/, '').replace(/^一十/, '十');
|
|
4083
4047
|
}
|
|
4048
|
+
const rdProjectName = (number) => '研发项目' + rdNumberLabel(number);
|
|
4084
4049
|
function nextRdName() {
|
|
4085
4050
|
const names = new Set(rdP().map(({name}) => name));
|
|
4086
4051
|
let number = Number(store.getSetting('rdqProjectNumber', 0)) || 0;
|
|
4087
4052
|
let name;
|
|
4088
|
-
do { name =
|
|
4053
|
+
do { name = rdProjectName(++number); } while (names.has(name));
|
|
4089
4054
|
return { name, number };
|
|
4090
4055
|
}
|
|
4091
4056
|
function rdLibraryKey(id) {
|
|
@@ -4613,7 +4578,8 @@ function init() {
|
|
|
4613
4578
|
qmsJobs.recover();
|
|
4614
4579
|
const firstRun = store.needsInitialization();
|
|
4615
4580
|
const interrupted = store.col('pendingActions').find((row) => row.status === 'executing');
|
|
4616
|
-
if (firstRun || store.needsMigration || !store.db.meta.countsValidated || !store.db.meta.demoRecords ||
|
|
4581
|
+
if (firstRun || store.needsMigration || !store.db.meta.countsValidated || !store.db.meta.demoRecords ||
|
|
4582
|
+
!store.db.meta.rdExampleNamesNumbered || interrupted.length) store.transaction(() => {
|
|
4617
4583
|
if (firstRun) {
|
|
4618
4584
|
const defaults = require('./src/data/seed').defaultSettings();
|
|
4619
4585
|
defaults.org = { company: DEFAULT_NAMING.company, dept: DEFAULT_NAMING.dept };
|
|
@@ -4641,6 +4607,7 @@ function init() {
|
|
|
4641
4607
|
store.db.meta.countsValidated = 1;
|
|
4642
4608
|
}
|
|
4643
4609
|
store.db.meta.demoRecords ||= firstRun ? {} : demoData.legacyMatches(store.db, scale, addSampleModules);
|
|
4610
|
+
migrateRdExampleNames();
|
|
4644
4611
|
for (const action of interrupted) {
|
|
4645
4612
|
store.col('pendingActions').update(action.id, { status: 'failed', result: '应用重启,执行结果需人工核对' });
|
|
4646
4613
|
}
|